...
Next, copy the contents of ~/.ssh/id_rsa.pub to the file ~/.ssh/authorized_keys
An easy way to copy the contents of your pub file is to use the following command:
Code Block | ||||
---|---|---|---|---|
| ||||
$ cat *.pub >> 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 | ||||
---|---|---|---|---|
| ||||
$ 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 |
...