Login with RSA-Keys

Instead of entering each time your login-credentials (username, password…), you can also user sa-keys. This allows you to securely log in to linux machines.

  1. Create keys
    To start, you need to create a private and public key.
    Ideal is to do this on a linux machine.
  • Open a session on a linux machine
  • Create the keys with the command ‘ssh-keygen’
  • Choose the proper file (default is OK), and if wanted a passphrase.

ssh-keygen

  1. Update key-server
  • Copy the public part
  • Open the file id_rsa.pub and copy the data in there.
  • Change key-server
    *Login to the keyserver portal and edit your profile
    (key-server > identity self-service > my profile > Edit your information)
    Past the public key in ‘ssh public keys’ and ‘Save changes’.
    *Test connection, connect through SSH
    Open a ssh session from the linux machine where you created the key.
    If everything went fine, you shouldn’t enter your DAS password.
  1. Linux Client
  • Copy the private key
  • Copy the content from the id_rsa file (not the public one!)
  • Paste the private key
  • Paste Copy the content in \home\a123456.ssh\id_rsa file
  • Change 123456 with your username
  • Change the file rights
  • Change the rights to user only (chmod 600 id_rsa)
  1. SecureCRT
  • Copy the private key
  • Copy the content from the id_rsa file (not the public one!)
  • Past the private key
  • Create a local file (pref id_rsa) on your windows machine. Remember the location!
  • Import the key in SecureCRT
  • Tools > Manage Agent Keys > Add
  • Change the order
  • Change the order of the authentication in the global options (if needed).
  • You can also add your username in this part so you don’t need to typ it each time.
  • Options > Global Options > General > Default Session > Edit Default Settings > Connection > SSH2
    Verify the properties of the PublicKey. Does it points to the correct rsa file?
    If you want to change existing configs, you can do this right now.
    Or you can select ‘folder by folder’ and change all nodes underneath with the options.