Skip to content

Instantly share code, notes, and snippets.

@SRJ9
Created June 30, 2017 07:37
Show Gist options
  • Save SRJ9/2df2bfc2b74d6fe406ed8d76a116e846 to your computer and use it in GitHub Desktop.
Save SRJ9/2df2bfc2b74d6fe406ed8d76a116e846 to your computer and use it in GitHub Desktop.
ssh-copy-id in one line
#!/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