First you need to generate a public/private key pair to identify yourself, use 'ssh-keygen -t rsa'
Then you need to add the generated public key to the remote host, here is how I do it
At Local Machine
At Remote Machine:scp id_rsa.pub yjpark@exobox:
ssh-add
That's Allmkdir .ssh
chmod 600 .ssh
cd .ssh
cat ../id_rsa.pub >> authorized_keys
chmod 600 authorized_keys
make sure that .ssh and authorized_keys is not accessed by anyone except the owner, otherwise it will not work
No comments:
Post a Comment