Skip to content

Instantly share code, notes, and snippets.

@tangar76
Last active August 10, 2018 11:57
Show Gist options
  • Save tangar76/83e37c519b6ad5594d126ce60f70bb28 to your computer and use it in GitHub Desktop.
Save tangar76/83e37c519b6ad5594d126ce60f70bb28 to your computer and use it in GitHub Desktop.
Too many authentication failures for *username*
# connect to SSH
ssh -o IdentitiesOnly=yes username@hostname -p NN
# transfer file via terminal
scp -i ~/.ssh/key_file -P NN -o IdentitiesOnly=yes /home/user/file username@hostname:/home/target/dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment