Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| student:utilities:start:keypairs [2024/02/08 10:50] – brickhtr | student:utilities:start:keypairs [2024/04/12 11:29] (current) – stewarmc | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| <code bash> | <code bash> | ||
| cat id_rsa.pub >> ~/ | cat id_rsa.pub >> ~/ | ||
| + | </ | ||
| + | |||
| + | If the ~/.ssh directory does not exist you can create it. SSH has strict permission requirements on these files: | ||
| + | < | ||
| + | mkdir ~/.ssh | ||
| + | chmod 700 ~/.ssh | ||
| + | touch ~/ | ||
| + | chmod 600 ~/ | ||
| </ | </ | ||
| Line 47: | Line 55: | ||
| AddKeysToAgent yes # https:// | AddKeysToAgent yes # https:// | ||
| IdentitiesOnly yes | IdentitiesOnly yes | ||
| - | + | Host github.com | |
| - | # macOS only? V | + | IdentityFile / |
| Host stu | Host stu | ||
| HostName stu.cs.jmu.edu | HostName stu.cs.jmu.edu | ||
| Line 60: | Line 68: | ||
| # Port 23 # is typically for telnet, but people can do what they want with their servers | # Port 23 # is typically for telnet, but people can do what they want with their servers | ||
| </ | </ | ||
| + | |||
| + | Test the github one: | ||
| + | ssh -T git@github.com | ||
