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:15] – bernstdh | student:utilities:start:keypairs [2023/09/13 10:40] – Typos morrispj |
---|
| |
===== Using SSH with a Key-Pair ===== | ===== Using SSH with a Key-Pair ===== |
| |
Secure shell (i.e., ''%%ssh%%'') normally prompts you for an ID and password when you login, however, it's possible to "sidestep" this process using a public/private key pair for authentication. This is particaulrly convenient when using some other protocol (e.g., SVN, Git) on top of SSH. To take advantage of this feature you must first create such a pait and then provide the server with your public key. | Secure shell (i.e., ''%%ssh%%'') normally prompts you for an ID and password when you login, however, it's possible to "sidestep" this process using a public/private key pair for authentication. This is particularly convenient when using some other protocol (e.g., SVN, Git) on top of SSH. To take advantage of this feature you must first create such a pair and then provide the server with your public key. |
| |
=== Checking for an Existing Key-Pair === | === Checking for an Existing Key-Pair === |
=== 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> |