From 4e88c1635a6b4b234756dba64180646f04598e86 Mon Sep 17 00:00:00 2001 From: Matt Troutman Date: Thu, 29 Aug 2024 11:36:20 -0500 Subject: [PATCH] added instructions on how to get key file. --- key_install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/key_install.sh b/key_install.sh index cc85bbf..ec7e7ca 100755 --- a/key_install.sh +++ b/key_install.sh @@ -1,5 +1,10 @@ #! /bin/sh +# Run the following command to install the public key to the authorized_keys file: +# /bin/bash -c "$(curl -fsSL https://git.trtmn.io/trtmn/public-key/raw/branch/main/key_install.sh)" + + + # Check for .ssh directory if [ ! -d ~/.ssh ]; then mkdir ~/.ssh @@ -13,8 +18,7 @@ if [ ! -f ~/.ssh/authorized_keys ]; then fi # Add public key to authorized_keys file -echo $"(curl https://git.trtmn.io/trtmn/public-key/raw/branch/main/id_rsa.pub)" >> ~/.ssh/authorized_keys - +echo "$(curl https://git.trtmn.io/trtmn/public-key/raw/branch/main/id_rsa.pub)" >> ~/.ssh/authorized_keys # Exit