sshkey
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
sshkey [2008/12/02 15:01] – cangiani | sshkey [2011/04/05 15:54] – cangiani | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Ssh without password from local workstation ===== | ===== Ssh without password from local workstation ===== | ||
- | |||
==== Apple Os X & Linux ==== | ==== Apple Os X & Linux ==== | ||
Line 13: | Line 12: | ||
* When the system ask a name for the file **id_dsa** just press enter | * When the system ask a name for the file **id_dsa** just press enter | ||
- | * Do the same for the **id_dsa.pub** | + | * The system will ask your for a password. This is the password that is used to encrypt your private key file (id_dsa) so that, even if the file gets stolen, it cannot be used. Try to generate a [[strongpass|strong password]]. |
- | * cd in your .ssh directory with | + | * Now you have to append the content of your public key file '' |
- | $ cd ~/.ssh | + | $ cat ~/.ssh/id_dsa.pub | ssh USERNAME@your.host.com 'cat - >> ~/ |
- | * Execute | + | * In our cluster, all the machines have access to the same home directory. Therefore you can use standard local copy: |
+ | $ cat ~/ | ||
+ | |||
+ | From now, every time you connet to a server, the server will recognize your workstation automatically (it read the ~/ | ||
+ | |||
+ | === ssh-agent === | ||
+ | |||
+ | Ssh-agent is a program that keeps in memory your decrypted private ssh key and serves it to ssh when it is needed. In this way you only have to type the decryption password only once. Keeping the decrypted key in memory is considered safer than letting the key file un-encrypted. | ||
+ | |||
+ | Let's set it up. | ||
- | $ cat id_dsa.pub >> authorized_keys | ||
- | From now, every time you connet to a server, the server will recognize your workstation automatically (it read the ~/ | ||
===== Ssh without password from laptop ===== | ===== Ssh without password from laptop ===== |
sshkey.txt · Last modified: 2022/08/05 13:20 by admin