This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
wiki:advanced:authentication:passwordless-ssh [2011/01/12 15:30] dali |
wiki:advanced:authentication:passwordless-ssh [2013/03/08 13:31] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Passwordless authentication using ssh-keys | ====== Passwordless authentication using ssh-keys | ||
| - | ===== Linux ===== | + | ===== Linux client |
| You'll need to generate a SSH key via the ssh-keygen command. Please choose which key you want to generate (we recommend dsa): | You'll need to generate a SSH key via the ssh-keygen command. Please choose which key you want to generate (we recommend dsa): | ||
| < | < | ||
| - | $ ssh-keygen -t rsa'' | + | $ ssh-keygen -t rsa |
| </ | </ | ||
| Line 36: | Line 36: | ||
| After the transfer you can add the path to the private part of the key to the session preferences inside x2goclient. x2goclient should now establish the connection without asking for a password by simply clicking on the session card view. | After the transfer you can add the path to the private part of the key to the session preferences inside x2goclient. x2goclient should now establish the connection without asking for a password by simply clicking on the session card view. | ||
| - | ===== Windows ===== | + | ===== Windows |
| Start a command prompt and navigate to the x2goclient folder, in this example it is **C: | Start a command prompt and navigate to the x2goclient folder, in this example it is **C: | ||
| Line 50: | Line 50: | ||
| <code dos> | <code dos> | ||
| - | C:\Program Files\x2goclient> | + | C:\Program Files\x2goclient> |
| </ | </ | ||
| Line 58: | Line 58: | ||
| </ | </ | ||
| - | Go to your .ssh folder, add the contents of the public key file to your authorized_keys2 | + | Go to your .ssh folder, add the contents of the public key file to your authorized_keys |
| <code bash> | <code bash> | ||
| cd ~/.ssh | cd ~/.ssh | ||
| - | cat id_dsa.pub >> | + | cat ~/id_dsa.pub >> |
| - | rm id_dsa.pub | + | rm ~/id_dsa.pub |
| </ | </ | ||