User Tools

Site Tools


sshkey

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
sshkey [2011/04/05 16:04] cangianisshkey [2011/04/05 16:05] 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/private ssh key pair  ==== ==== Generate the public/private ssh key pair  ====
  
Line 35: Line 35:
  
 Let's set it up. Let's set it up.
- 
- 
- 
-==== Apple Os X & Linux ==== 
- 
-  * Open a terminal emulation window 
-  * Execute the command 
- 
-  $ ssh-keygen -t dsa 
- 
-  * When the system ask a name for the file **id_dsa** just press enter 
-  * Do the same for the **id_dsa.pub** file 
-  * cd in your .ssh directory with 
- 
-  $ cd ~/.ssh 
- 
-  * Execute this command 
- 
-  $ cat id_dsa.pub 
- 
-  * Open another window and from this connect to the public access server **lth.epfl.ch**. login as usual 
-  * cd in .ssh directory with 
- 
-  $ cd ~/.ssh 
- 
-  * Execute the command 
-   
-  $ cat >> authorized_keys 
- 
-  * Now copy & paste with the mouse the key you have in the first window (something that start with sh-dss AAAAB3NzaC1k....) to the second window. 
-  * press the "**Ctrl+d**" key combination to close the **cat** command 
-  * Try to connect to **lth.epfl.ch**, this time you can login without inserting the password. If you can't, something is wrong, so you have to recheck all the steps. 
sshkey.txt · Last modified: 2022/08/05 13:20 by admin