This commit is contained in:
Luk Lu
2022-06-18 11:58:52 +08:00
parent a7e073853c
commit eb2bc570b7
5 changed files with 45 additions and 41 deletions

View File

@@ -6,7 +6,8 @@ if [ $1 ]
then
REMOTEHOST=$1
else
read -p "Enter user@remotehost >> " REMOTEHOST
echo "=== Enter << user@remotehost >> to connect to:"
read -p ">>> " REMOTEHOST
fi
scp ~/.ssh/id_rsa.pub $REMOTEHOST:~/tmp.pub