Skip to content

Commit

Permalink
ssh-clone-id
Browse files Browse the repository at this point in the history
  • Loading branch information
biocoderh committed Sep 29, 2023
1 parent e52caa7 commit 59dd35b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .local/bin/ssh-clone-id
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ssh-copy-id -i "$KEY_PATH.pub" "$REMOTE"

scp "$KEY_PATH" "$KEY_PATH.pub" "$REMOTE:$HOME/.ssh/"

# shellcheck disable=SC2016
CMD='eval $(ssh-agent -s)'
CMD="$CMD ; chmod 400 $REMOTE_KEY_PATH $REMOTE_PUBKEY_PATH"
CMD="$CMD ; ssh-add $REMOTE_KEY_PATH"
Expand Down

0 comments on commit 59dd35b

Please sign in to comment.