Passwordless SSH

From HW wiki
Jump to: navigation, search

Creating keys to passwordless SSH login

Linux:

 ssh-keygen -t rsa
 ssh-copy-id -i ~/.ssh/id_rsa.pub <login>@rtime.felk.cvut.cz

You will be asked for a password. Use the password you normally use in most labs at Karlovo namesti (password for the Novell account).

Test it:

 ssh <login>@rtime.felk.cvut.cz

Windows:

  • Use puttygen to generate a key. Then save your private key and copy the public key from "Public key for pasting into OpenSSH authorized_key file" box.
  • Login to rtime (probably using PuTTY)
  • Run
 mkdir .ssh
 chmod 700 .ssh
 echo "<paste you key here>" >> .ssh/authorized_keys
 chmod 600 .ssh/authorized_keys

TortoiseSVN

  • In PuTTY create a session containing the address of the server, port and in section SSH-Auth choose the location of your private key file saved with puttygen
  • Save the session under some name, lets say 'mysession'
  • In TortoiseSVN, use the session name instead of server address, i.e. instead of
svn+ssh://user@servername.com/home/svn/repo

use

svn+ssh://user@mysession/home/svn/repo