Set up public private keys for ssh

/ Published in: Bash
Save to your folder(s)

So you don't have to type the password everytime you log in to that remote ssh server. Don't enter a passphrase when prompted, just hit enter. This example is for Mac OS X but is likely to work on *nix plats too.

Copy this code and paste it in your HTML
  1. ssh-keygen -t rsa
  2. cat ~/.ssh/ | ssh username@remoteserver "cat - >> /home/username/authorized_keys"

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.