Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssh-keygen -t rsa
- ssh morty@192.168.0.1 mkdir -p .ssh
- cat .ssh/id_rsa.pub | ssh morty@192.168.0.11 'cat >> .ssh/authorized_keys'
- ssh morty@192.168.0.11 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
- ssh morty@192.168.0.11
- keygen one-liner:
- ssh-keygen -t dsa -N "my passphrase" -C "test key" -f mykey
- OR
- HOSTNAME=`hostname` ssh-keygen -t rsa -C "$HOSTNAME" -f "$HOME/.ssh/id_rsa" -P "" && cat ~/.ssh/id_rsa.pub
- OR
- ssh-keygen -f id_rsa -t rsa -N ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement