This shows you the differences between two versions of the page.
wiki:advanced:authentication:passwordless-ssh [2010/01/15 19:21] h1 |
wiki:advanced:authentication:passwordless-ssh [2013/03/08 13:31] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | You'll need to generate a SSH key via the ssh-keygen command. Pleasen choose which key you wan't to generate (we recommend dsa): | ||
- | < | ||
- | $ ssh-keygen -t rsa'' | ||
- | </ | ||
- | |||
- | or | ||
- | |||
- | < | ||
- | $ ssh-keygen -t dsa | ||
- | </ | ||
- | |||
- | This will create following files inside your $HOME/.ssh/ directory: | ||
- | |||
- | < | ||
- | ~/ | ||
- | ~/ | ||
- | </ | ||
- | |||
- | You'll need to transfer the public part of the key to the wanted server. You can do this using the ssh-copy-id command: | ||
- | |||
- | < | ||
- | $ ssh-copy-id -i ~/ | ||
- | </ | ||
- | |||
- | or | ||
- | |||
- | < | ||
- | $ ssh-copy-id -i / | ||
- | </ | ||
- | |||
- | 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. |