Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###Generate an SSH keypair for passwordless SSH###
- ```
- #on your computer
- cd ~/.ssh
- #you might need to make the .ssh directory
- ssh-keygen -C "my@email.com"
- #hit enter a few times to generate key
- #copy the file contents to the clipboard
- cat id_rsa.pub
- #log into your machine
- ssh user@mydomain.com
- #make the .ssh directory and get in it
- mkdir .ssh
- cd .ssh
- #open authorized_keys in nano and paste the contents in
- nano authorized_keys
- #paste contents in and save by hitting ctrl+x
- #exit and you can now ssh without a password!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement