WaZaRWiki : SSHTips

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

Revision [247]

Most recent edit made on 2008-12-18 12:03:33 by GaelReignier

Additions:
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




Revision [191]

Edited on 2008-08-14 18:06:36 by GaelReignier

Deletions:
%%.ssh:




Revision [190]

The oldest known version of this page was edited on 2008-08-14 18:06:04 by GaelReignier
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
.ssh:
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0642 seconds