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:
- If you do not have a set of public/private key pairs, generate one using Puttygen.exe which can be downloaded here.
- Launch Puttygen.exe
- Click the Generate button
- Copy the text to a file called: authorized_keys (no file extension)
- 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:
- You may need to have a command prompt to do the following, so just login to your SSH host using a password
- FTP or copy the file authorized_keys to your host under subfolder .ssh
- Type ls –la to list all files at the host
- If the .ssh folder does not exist at the host, create one and type chmod 700 .ssh
- 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