sshkey
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
sshkey [2019/11/06 11:00] – admin | sshkey [2022/08/05 13:20] (current) – admin | ||
---|---|---|---|
Line 12: | Line 12: | ||
* Execute this command | * Execute this command | ||
- | $ ssh-keygen -t dsa | + | $ ssh-keygen -t ed25519 |
- | * When the system ask a name for the file **id_dsa** just press enter | + | * When the system ask a name for the file **id_ed25519**, just press enter |
- | * 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 strong password. | + | * The system will ask your for a password. This is the password that is used to encrypt your private key file (id_ed25519) so, even if the file gets stolen, it cannot be used. Try to generate a strong password. |
- | * Now you have to append the content of your public key file '' | + | * Now you have to append the content of your public key file '' |
- | $ cat ~/ | + | $ ssh-copy-id <USERNAME>@lth.epfl.ch |
* In our cluster, all the machines have access to the same home directory. Therefore you can use standard local copy: | * In our cluster, all the machines have access to the same home directory. Therefore you can use standard local copy: | ||
- | $ cat ~/.ssh/id_dsa.pub >> ~/ | + | $ cat ~/.ssh/id_ed25519.pub >> ~/ |
- | From now, every time you connet | + | From now, every time you connect |
In fact, since your private key is encrypted, you need to type the password to decrypt it each time you want to use it. Seems like we have just replaced the "enter remote machine password" | In fact, since your private key is encrypted, you need to type the password to decrypt it each time you want to use it. Seems like we have just replaced the "enter remote machine password" | ||
Line 45: | Line 45: | ||
$ eval `ssh-agent -s` | $ eval `ssh-agent -s` | ||
- | * ask '' | + | * ask '' |
- | $ ssh-add [-t time_in_seconds] ~/.ssh/id_dsa | + | $ ssh-add [-t time_in_seconds] ~/.ssh/id_ed25519 |
* before logging out you have to remember to kill the ssh-agent: | * before logging out you have to remember to kill the ssh-agent: |
sshkey.1573034422.txt.gz · Last modified: 2019/11/06 11:00 by admin