Differences

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

Link to this comparison view

Next revisionBoth sides next revision
student:utilities:start:keypairs [2019/02/15 17:11] – created bernstdhstudent:utilities:start:keypairs [2019/02/15 17:14] bernstdh
Line 30: Line 30:
 === Copying your Public Key to a Linux Server === === Copying your Public Key to a Linux Server ===
  
-On Linux server's, a user's public keys are stored in the file ''%%~/.ssh/authorized_keys%%''. If you have ''%%ssh-copy-id%%'' on your operating system, you can use it to upload your public key to a Linux server and append it to this file. If not, you will need to upload the file manually (e.g., using SCP) and then append it tothis file as follows:+On Linux servers, a user's public keys are stored in the file ''%%~/.ssh/authorized_keys%%''. If you have ''%%ssh-copy-id%%'' on your computer, you can use it to upload your public key to a Linux server (e.g., ''%%stu.cs.jmu.edy%%'' and append it to this file. If not, you will need to upload the file manually (e.g., using SCP) and then append it to this file as follows:
  
 <code bash> <code bash>
 cat id_rsa.pub >> ~/.ssh/authorized_keys cat id_rsa.pub >> ~/.ssh/authorized_keys
 </code> </code>
 +
 +=== Logging-In using the Key-Pair ===
 +
 +At this point, you should be able to use SSH (either directly or indirectly) to login to the Linux server without providing an ID and/or password.