Skip to content

Commit

Permalink
Add note about overwriting authorized_keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreipoe committed Oct 11, 2018
1 parent e9de206 commit 1c87cfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions 1_Connecting_to_BlueCrystal.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ It is being constantly updated.
## The queueing system

**Q**: When I try to submit a job, there is no job output file and I get a `Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)` error in my UNIX mail. What went wrong? <br />
**A**: This normally happens when your `authorized_keys` file has been damaged. Try running the following command, then attempt your job again:
**A**: This normally happens when your `authorized_keys` file has been damaged. Try running the following command (note that there are _two_ angle brackets, _not one_!), then attempt your job again:
```
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
```
Expand Down

0 comments on commit 1c87cfd

Please sign in to comment.