Monday, January 21, 2013

Setting Up SSH Public/Private Key

Creating keys, if don't have it yet
ssh-keygen -t dsa
or
ssh-keygen -t rsa -b 4096

Copy public file content (id_dsa.pub) to ~/.ssh/authorized_keys on REMOTE site

ssh client uses id_rsa as private key
ssh server use authroized_keys as public key of client to check validity



  • The file $HOME/.ssh/authorized_keys  lists  the public keys that are permitted for logging in.
  • PuTTY key file formats seems not match with linux/solaris ssh, or need change to make it compatible



No comments: