Created
June 30, 2017 07:37
-
-
Save SRJ9/2df2bfc2b74d6fe406ed8d76a116e846 to your computer and use it in GitHub Desktop.
ssh-copy-id in one line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sshpass -p "$PASS" ssh-copy-id $DEST_SERVER -o "StrictHostKeyChecking no" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment