Changes between Version 6 and Version 7 of MonsoonSshAgent


Ignore:
Timestamp:
09/02/15 14:13:27 (5 years ago)
Author:
annette
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • MonsoonSshAgent

    v6 v7  
    3030 1. Generate the authentication key on PUMA: 
    3131{{{ 
    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" 
    3333    Generating public/private rsa key pair. 
    3434    Enter passphrase(empty for no passphrase): [TYPE_YOUR_PASSPHRASE] 
    3535    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. 
    3838    The key fingerprint is: 
    3939    md5 1024 [String of characters] ‹userid›@puma.nerc.ac.uk 
     
    4343 2. Add the public key to the ~/.ssh/authorized_keys file on PUMA: 
    4444{{{ 
    45     puma$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys 
     45    puma$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys 
    4646}}} 
    4747 
     
    6262{{{ 
    6363    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] 
    6565}}} 
    6666 
     
    8383If 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: 
    8484{{{ 
    85 puma$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys 
     85puma$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys 
    8686}}} 
    8787 
    8888Otherwise 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: 
    8989{{{ 
    90 puma$ cat ~/.ssh/id_dsa.pub | ssh ‹userid›@puma.nerc.ac.uk 'mkdir -p .ssh ; cat - >> ~/.ssh/authorized_keys' 
     90puma$ cat ~/.ssh/id_rsa.pub | ssh ‹userid›@puma.nerc.ac.uk 'mkdir -p .ssh ; cat - >> ~/.ssh/authorized_keys' 
    9191}}} 
    9292 
    9393{{{#!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` 
     94Note: 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` 
    9595}}} 
    9696