Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
help:general_linux:sshkeys [2016/10/27 19:55]
csintern
help:general_linux:sshkeys [2022/12/26 14:05]
dfrey
Line 1: Line 1:
 ====== Setting up SSH Keys ====== ====== Setting up SSH Keys ======
  
-** Note **: this tutorial assumes that you are running a linux-based operating system.  While it may be possible to set up ssh keys on a Windows or OS X machine, we have yet to explore and document these capabilities. +** Note **: This tutorial assumes that you are running a linux-based operating system.  The procedure for setting up keys on an Apple Mac OS X machine is similar to this procedurebut you may need to make some minor adjustments. There is a separate [[help:general_linux:sshkeysmswindows|page]] for setting up SSH keys on Microsoft Windows using the PuTTY utility.
 ====About==== ====About====
  
Line 10: Line 9:
  
   * **Step 1**: Open up a terminal.  On many systems, you can do this by hitting Control-Alt-t.     * **Step 1**: Open up a terminal.  On many systems, you can do this by hitting Control-Alt-t.  
-  * **Step 2**: Type in "ssh-keygen -t rsa" Hit enter+  * **Step 2**: Check for exisitng ssh key.  "ls -l ~/.ssh/" if it shows //id_rsa.pub// skip to step 4. 
-  * **Step 3**: You will now be prompted for a file in which to save the key.  Without typing anything, hit enter. +  * **Step 3**: Type in "ssh-keygen -t rsa"Press [Enter]. 
-  * **Step 4**: You will be prompted to enter a passphrase.  Again, without typing anything hit enter, and then when asked to enter the same passphrase again, hit enter again. +(Note that you can choose another format like "ecdsa" which will create the id_ecdsa and id_ecdsa.pub files. 
-  * **Step 5**: Your screen should now look like the screenshot below. Now it's time to copy a key over to mote.  Enter the command "ssh-copy-id myUsername@mote.cs.vassar.edu", where "myUsername" has been replaced with the username associated with your cs account. Hit enter.+  * **Step 4**: You will now be prompted for a file in which to save the key.  Without typing anything, hit enter. 
 +  * **Step 5**: You will be prompted to enter a passphrase.  Again, without typing anything hit enter, and then when asked to enter the same passphrase again, press [Enter] again. 
 +  * **Step 6**: Your screen should now look like the screenshot below. Now it's time to copy a key over to mote.  Enter the command "ssh-copy-id myUsername@mote.cs.vassar.edu", where "myUsername" has been replaced with the username associated with your CS account. Hit enter.
  
-https://www.cs.vassar.edu/?ns=help%3Ageneral_linux%3A&image=help%3Ageneral_linux%3Aalldone.png&do=media+{{ help:general_linux:alldone.png?1100}} 
 +\\
  
-  *  **Step 6**: You should see a message that says "Number of key(s) added: 1 ..." If you see this message, everything should have worked correctly!   +  * **Step 7**: You should see a message that says "Number of key(s) added: 1 ..." If you see this message, everything should have worked correctly!   
-  * **Step 7**: Verify that everything worked correctly.  Type in "ssh myUsername@mote.cs.vassar.edu", where again, "myUsername" has been replaced with your CS username.  You should log in automatically, without needing to enter a password!+  * **Step 8**: Verify that everything worked correctly.  Type in "ssh myUsername@mote.cs.vassar.edu", where again, "myUsername" has been replaced with your CS username.  You should log in automatically, without needing to enter a password!