sshkey
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
sshkey [2011/04/05 14:04] – cangiani | sshkey [2011/04/05 14:08] – cangiani | ||
---|---|---|---|
Line 2: | Line 2: | ||
You can connect to the servers using the SSH protocol without the need to insert the password every time you connect. The trick is to generate a encripted key that can be used by the systems to recognize yourself and allow your access to local resources. | You can connect to the servers using the SSH protocol without the need to insert the password every time you connect. The trick is to generate a encripted key that can be used by the systems to recognize yourself and allow your access to local resources. | ||
This behaviour can be used when you are using the Servers from the Epfl Network, but also when you connect to the server from outside the Epfl. | This behaviour can be used when you are using the Servers from the Epfl Network, but also when you connect to the server from outside the Epfl. | ||
+ | ===== Setup ===== | ||
- | ===== Ssh without password from local workstation ===== | ||
==== Generate the public/ | ==== Generate the public/ | ||
Line 27: | Line 27: | ||
From now, every time you connet to a server, the server will recognize your workstation automatically (it read the ~/ | From now, every time you connet to a server, the server will recognize your workstation automatically (it read the ~/ | ||
- | |||
- | ==== Setup ssh-agent ==== | ||
In fact, since your private key is encrypted, you need to type the password that can decrypt it each time you want to use it. Seems like we didn't gain anything till now. | In fact, since your private key is encrypted, you need to type the password that can decrypt it each time you want to use it. Seems like we didn't gain anything till now. | ||
- | 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 (or the password) in memory is considered safer than letting the key file un-encrypted. | + | 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 (or the password) in memory is considered safer than letting the key file un-encrypted. |
+ | |||
+ | ==== Setup ssh-agent ==== | ||
- | Let's set it up. | ||
sshkey.txt · Last modified: 2022/08/05 11:20 by admin