Skip to content

Commit

Permalink
make setup_passwordless really work
Browse files Browse the repository at this point in the history
  • Loading branch information
kgyrtkirk committed Dec 5, 2019
1 parent 1fd7648 commit c7e0b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scripts/setup_passwordless_ssh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function pwd_auth() {
echo "trying pwd: $1"
if sshpass -p "$1" ssh "$HOST" echo ok;then
echo "install"
sshpass -p "$1" ssh "$HOST" "grep -qxF '$MY_KEY' foo.bar || echo '$MY_KEY' >> foo.bar"
sshpass -p "$1" ssh "$HOST" "mkdir .ssh;grep -qxF '$MY_KEY' .ssh/authorized_keys || echo '$MY_KEY' >> .ssh/authorized_keys"

banner "ok"
exit 0
Expand Down

0 comments on commit c7e0b0e

Please sign in to comment.