|Lots of tasks, like scripting, can be done over SSH from your Windows desktop. Here are a few steps to help you customize your PuTTY terminal to work faster.|
Configuring a PuTTY Session
When you double click on the PuTTY icon and it launches, you can start customizing your session preferences. We'll name this session jedtest
Let's default the window to something large, like 120 columns and 56 rows.
The Fixed font can be replaced with the Consolas font.
Let's turn on TCP Keep-alive and set IPv4 as the default networking protocol.
We login to LANforge resources with user lanforge
Generating a SSH keypair is not difficult. Let's enter the path to our public key file.
We have done our PuTTY config. Now back to the top Session screen, and click Save
Configure Pagent with your public key
Create your own public ssh key.
For more information see WinScp Net
Start Pagent. Configure it to load on startup.
In the System Tray you will see the Pagent icon.
Right-click the Pagent icon and click Add Key to select your key
You will need to provide your pass-phrase to load your key
We see a loaded key
Here is our key, we will view the .pub file to copy out the public key.
In a putty window you will log into your LANforge server and edit /home/lanforge/.ssh/authorized_keys
Copy the text and place the "Comment" section at the end when you paste it into your ssh
Here is the public key string, with newlines and spaces removed. The Comment text goes at the end.
Check the permissions of the authorized_keys file. You might need to use the command
chmod 600 authorized_keysto correct the permissions.
The next time we load the jedtest PuTTY session we should not be prompted for our password.