Created
June 22, 2019 23:26
-
-
Save cryptozeny/da9d49d06db0b659e5444a6055bc439f to your computer and use it in GitHub Desktop.
ssh without password
This file contains hidden or 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
| targetUSER="root" && \ | |
| targetIP="149.28.43.9" && \ | |
| ssh ${targetUSER}@${targetIP} mkdir -p .ssh && \ | |
| cat ~/.ssh/id_rsa.pub | ssh ${targetUSER}@${targetIP} 'cat >> .ssh/authorized_keys' | |
| enter password twice |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
on AWS