ssh -V
and you should get the OpenSSH_5.1
(or greater) version.ls -la
. You should see a .ssh
folder. If you don't, type mkdir .ssh
and chmod 755 .ssh
.cd .ssh
ssh-keygen
ls -la
. Your permissions for id_rsa
should be -rw------
. If it's not, type chmod 600 id_rsa
.id_rsa
is your private key. PROTECT this file! DO NOT give it out!id_rsa.pub
is your public key. You can give this out freely.cp id_rsa.pub ..
to copy your public key out of the hidden .ssh
folder..ssh
, create the file config
and paste this content in:Host * User = <username> Host = dev.tova Hostname = dev.tovacompany.com