PASSPORT Knowledge Base
Configuration

Date Published: February 4, 2010

Title

Automatically Pass User ID and Password to an SSH Session in PASSPORT

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

VT, SCO ANSI, Wyse 60

Issue

Is it possible to automatically pass the User ID and Password to an SSH session without having to input it manually?

Solution

Please perform the following steps below to automatically pass the User ID and Password to a PASSPORT SSH session:

  1. If you do not have a set of public/private key pairs, generate one using Puttygen.exe which can be downloaded here.

  2. Launch Puttygen.exe
  3. Click the Generate button
  4. Copy the text to a file called: authorized_keys (no file extension)
  5. Click the Save private key button to save the private key to a file of some name, e.g. auto.ppk

Upload the authorized_keys to the host:

  1. You may need to have a command prompt to do the following, so just login to your SSH host using a password
  2. FTP or copy the file authorized_keys to your host under subfolder .ssh
  3. Type ls –la to list all files at the host
  4. If the .ssh folder does not exist at the host, create one and type chmod 700 .ssh
  5. Also, type the following to set the proper file permissions for the file, authorized_keys:

    chmod 600 $HOME/.ssh/authorized_keys

Configure PASSPORT to use the private key:

 

 

Specify the private key auto.ppk that was created and include the user name. You should now be able to connect to the SSH host without getting prompted for a password.

More Information

Keywords

automatically, pass, user, id, password, ssh, session