...
An easy way to copy the contents of your pub file and then protect them by removing world read permissions is to use the following commandscommand:
Code Block |
---|
language | text |
---|
theme | FadeToGrey |
---|
|
$ cat *.pub >> authorized_keys
$ chmod 650
authorized_keys |
Now, when you ssh between COE machines, your ssh key will be used, instead of password authentication. .
Info |
---|
|
Please be aware that you want your keys to be as secure as possible. Some operating systems create files with world read permissions that have to be removed before use |
example commands to set world permissions to "0" no read, write, or execute permissions.
Code Block |
---|
language | text |
---|
theme | FadeToGrey |
---|
|
$ chmod 650 authorized_keys
$ chmod 600 id_rsa |
Info |
---|
|
If you are a TA who needs access to a class account via SSH keys, please see SSH Access to CS Class accounts for Teaching Assistants |
...