gibuu is hosted by Hepforge, IPPP Durham
GiBUU

Changes between Initial Version and Version 1 of HowToSSHWithoutPassword


Ignore:
Timestamp:
Feb 8, 2007, 10:53:01 AM (17 years ago)
Author:
oliver
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToSSHWithoutPassword

    v1 v1  
     1== Using a ssh key pair ==
     2
     3
     4Sometimes it's irritating that you are always asked for your password while using SVN. Therefore, it can be useful to use a encrypted key-pair (public key+private key) to do the job for you.
     5
     6(1) Create the key pair by typing
     7
     8
     9{{{
     10ssh-keygen -t dsa
     11}}}
     12
     13
     14Now you are prompted for a password for the private key. You can choose an empty password, which means that you can use your private key without a password. However, if somebody steals your private key, then he can do this too...
     15
     16If you decide to use a password, then you also have to follow point (3) below.
     17
     18
     19
     20(2)  Copy the public key to the remote system, i.e. the subversion server:
     21
     22{{{
     23ssh-copy-id -i ~/.ssh/id_dsa.pub user@remote-system
     24}}}
     25
     26
     27
     28
     29
     30(3) If you have chosen a non-empty password:
     31
     32Type in your shell
     33
     34
     35{{{
     36exec ssh-agent bash
     37}}}
     38
     39
     40and
     41
     42
     43{{{
     44ssh-add
     45}}}
     46
     47
     48to start a ssh-key-agent. After doing this once, you can use the shell without password for the rest of its lifetime.
     49
     50
     51----
     52
     53see also [http://www.schlittermann.de/doc/ssh]