Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
student:utilities:start:keypairs [2019/02/15 17:14] – bernstdh | student:utilities:start:keypairs [2020/02/06 10:13] – Fix typo morrispj |
---|
=== Creating a Key-Pair === | === Creating a Key-Pair === |
| |
You can create a key-pair using the ''%%ssh-keygen%%'' utility from the command shell. (In versions of MS-Windows prior to 10 you should use the PuTTY Key Generator or the MSYS/MINGW shell, instead, both of which are available for free.) | You can create a key-pair using the ''%%ssh-keygen%%'' utility from the command shell. (In versions of MS-Windows prior to 10 you will need to use the PuTTY Key Generator or the MSYS/MINGW shell, both of which are available for free.) |
| |
To do so, enter the command: | To do so, enter the command: |
=== Copying your Public Key to a Linux Server === | === Copying your Public Key to a Linux Server === |
| |
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: | 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.edu%%'' 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> |