-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add note about overwriting authorized_keys.
- Loading branch information
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,6 +144,10 @@ You can also do all this in a single command _from your own machine_: | |
$ cat ~/.ssh/uob.pub | ssh [email protected] 'cat >> .ssh/authorized_keys' | ||
``` | ||
|
||
**Note**: Make sure you use **two** angle brackets (`>>`), **not one** (`>`), since you want to _append_ to `authorized_keys`, not _overwrite_. | ||
If you accidentally overwrite this file, your jobs will fail to create the output file and it will appear as if there is no output. | ||
To fix this, read the answer under [_The queueing system_ in the FAQ](https://github.com/UoB-HPC/hpc-course-getting-started/blob/master/FAQ.md#the-queueing-system). | ||
|
||
Finally, configure SSH to use the key. | ||
To do this, open the `~/.ssh/config` file (creating if it does not exist) and add a configuration for BlueCrystal: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters