WaZaRWiki : SSHTips

GaelReignier :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register :: Hosted by: eNiX
ITTips


To turn on the key authentication:
vim /etc/ssh/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys


And in your home directory you have to set up the following permission on:
drwx------ 2 gael gael 4096 Aug 14 17:56 .ssh
-rw-r--r-- 1 gael gael 409 Aug 14 17:57 /home/gael/.ssh/authorized_keys




Password-less SSH login

Tutorial for SSH password less authentication: http://www.hackinglinuxexposed.com/articles/20021211.html

Creation of private/public keys using SSH2 and uploading it to the appropriate server so I will not be prompted for my password any time I want to get there.
ssh-keygen -t dsa
ssh-copy-id -i /home/gael/.ssh/id_dsa.pub gael@the-doors.enix.org : this will put the public key in ~/.ssh/authorized_keys

ssh $remoteHost "{ cd $remoteBackupFolder; md5sum $i; }"


$SSH_ORIGINAL_COMMAND is the environment variable which is sent by SSH when using any SSH client

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1707 seconds