Key Generation

ssh-keygen -q -f ~/.ssh/id_rsa -t rsa
Enter passphrase (empty for no passphrase): …
Enter same passphrase again: …

Key Distribution

# first, upload public key from client to server

scp ~/.ssh/

# next, setup the public key on server

cat ~/ >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
rm ~/

Create Public Key From Private Key

ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/


Site Administrator

Leave a Reply

%d bloggers like this: