-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't suggest copying private key to server
- Loading branch information
Showing
1 changed file
with
4 additions
and
5 deletions.
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 |
---|---|---|
|
@@ -190,15 +190,14 @@ If you do not have an SSH key pair already, you will need to create one. | |
|
||
$ ssh-keygen -t rsa -b 4096 -C "[email protected]" | ||
|
||
**Cluster only:** Copy an SSH key pair for your user to the control | ||
machine. For example, if the key pair you want to copy is | ||
``~/.ssh/id_rsa`` and ``~/.ssh/id_rsa.pub``, then the commands to copy | ||
the SSH key pair would be | ||
Copy your user's SSH public key to the control | ||
machine. For example, if the public key you want to copy is | ||
``~/.ssh/id_rsa.pub``, then you would run the following: | ||
|
||
:: | ||
|
||
$ ssh-copy-id -i ~/.ssh/id_rsa.pub jbloggs@control1 | ||
$ scp ~/.ssh/id_rsa{,.pub} control1:.ssh/ | ||
$ scp ~/.ssh/id_rsa.pub control1:.ssh/ | ||
|
||
You can now log in using your SSH key: | ||
|
||
|