Changes between Version 6 and Version 7 of MonsoonSshAgent
- Timestamp:
- 09/02/15 14:13:27 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MonsoonSshAgent
v6 v7 30 30 1. Generate the authentication key on PUMA: 31 31 {{{ 32 puma$ ssh-keygen -f ~/.ssh/id_ dsa -C "‹userid›@puma.nerc.ac.uk"32 puma$ ssh-keygen -f ~/.ssh/id_rsa -C "‹userid›@puma.nerc.ac.uk" 33 33 Generating public/private rsa key pair. 34 34 Enter passphrase(empty for no passphrase): [TYPE_YOUR_PASSPHRASE] 35 35 Enter same passphrase again: [TYPE_YOUR_PASSPHRASE] 36 Your identification has been saved in ~/.ssh/id_ dsa.37 Your public key has been saved in ~/.ssh/id_ dsa.pub.36 Your identification has been saved in ~/.ssh/id_rsa. 37 Your public key has been saved in ~/.ssh/id_rsa.pub. 38 38 The key fingerprint is: 39 39 md5 1024 [String of characters] ‹userid›@puma.nerc.ac.uk … … 43 43 2. Add the public key to the ~/.ssh/authorized_keys file on PUMA: 44 44 {{{ 45 puma$ cat ~/.ssh/id_ dsa.pub >> ~/.ssh/authorized_keys45 puma$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys 46 46 }}} 47 47 … … 62 62 {{{ 63 63 puma$ ssh-add 64 Enter passphrase for ~/.ssh/id_ dsa (‹userid›@puma.nerc.ac.uk): [Type Passphrase]64 Enter passphrase for ~/.ssh/id_rsa (‹userid›@puma.nerc.ac.uk): [Type Passphrase] 65 65 }}} 66 66 … … 83 83 If the search is successful, then you are running the agent on PUMA and you need to run the following command to add your PUMA public key to the `~/.ssh/authorized_keys` file on PUMA: 84 84 {{{ 85 puma$ cat ~/.ssh/id_ dsa.pub >> ~/.ssh/authorized_keys85 puma$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys 86 86 }}} 87 87 88 88 Otherwise the ssh-agent is being forwarded from another machine. You now need to determine which machine that is, most likely to be the one you logged into PUMA from and copy the public key from that machine to the `~/.ssh/authorized_keys` file on PUMA. This can be achieved in a secure manner by running the following command: 89 89 {{{ 90 puma$ cat ~/.ssh/id_ dsa.pub | ssh ‹userid›@puma.nerc.ac.uk 'mkdir -p .ssh ; cat - >> ~/.ssh/authorized_keys'90 puma$ cat ~/.ssh/id_rsa.pub | ssh ‹userid›@puma.nerc.ac.uk 'mkdir -p .ssh ; cat - >> ~/.ssh/authorized_keys' 91 91 }}} 92 92 93 93 {{{#!box type=note 94 Note: Depending on the type of public key you have previously generated, you may find it is in a file called `~/.ssh/id_ rsa.pub` rather than `id_dsa.pub`94 Note: Depending on the type of public key you have previously generated, you may find it is in a file called `~/.ssh/id_dsa.pub` rather than `id_rsa.pub` 95 95 }}} 96 96