Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generate your SSH key pair with the RSA algorithm
- ssh-keygen -t rsa -C user@example.com
- # Add they key pair to ssh-agent
- ssh-add
- # Copy public key to SSH destination
- ssh-copy-id login@destination
- # Show your public key
- ssh-add -L
- # SSH to remote host and confirm presence of public key
- ssh login@destination
- cat .ssh/authorized_keys
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement