added instructions on how to get key file.
This commit is contained in:
parent
e86467996f
commit
4e88c1635a
|
@ -1,5 +1,10 @@
|
||||||
#! /bin/sh
|
#! /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
|
# Check for .ssh directory
|
||||||
if [ ! -d ~/.ssh ]; then
|
if [ ! -d ~/.ssh ]; then
|
||||||
mkdir ~/.ssh
|
mkdir ~/.ssh
|
||||||
|
@ -13,8 +18,7 @@ if [ ! -f ~/.ssh/authorized_keys ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add public key to authorized_keys file
|
# 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
|
# Exit
|
||||||
|
|
Loading…
Reference in New Issue
Block a user