How to generate an RSA ssh key on a Linux based system - Astaro Security Gateway

  • Article ID: 115708
  • Rating:
  • 1 customers rated this article 1.0 out of 6
  • Updated: 25 May 2012

How to generate an RSA ssh key on a Linux based system.

Known to apply to the following Sophos product(s) and version(s)


Sophos UTM Software Appliance

Operating systems

V7, V8, V9

What To Do

  1. Use the tool ssh-keygen generate a ssh keypair:
    • Enter a name for the keyfile:
      ~/.ssh$ssh-keygen
    • Generate public/private rsa key pair.
      Enter file in which to save the key (/home/user/.ssh/id_rsa): my_ssh_key
    • Enter passphrase (empty for no passphrase): **********
      Your identification has been saved in my_ssh_key.
      Your public key has been saved in my_ssh_key.pub.

    The key fingerprint is:
    ec:28:11:e0:61:f9:54:84:8b:5e:f0:61:9c:d0:80:15 user@workstation
    The key's randomart image is:
    +--[ RSA 2048]----+
    |oET =o          |
    |.oooO            |
    |  .B.o           |
    |  . =. .         |
    | . ..   S        |
    |  .  . l         |
    |    . . .        |
    |     .           |
    |                 |
    +-----------------+

  2. Save the SSH key in your home directory in .ssh/ .

Configuration on the ASG side 

Apply the public key which can be found in /home/username/.ssh/my_ssh_key.pub
to the ASG in
WebAdmin | Management | System Settings | Shell Access | Authentication | Authorized keys for loginuser / Authorized keys for root

Ensure you tick the checkbox "Allow public key authentication"

 
If you need more information or guidance, then please contact technical support.

Rate this article

Very poor Excellent

Comments