Putty is a great ssh client for windows user, it is easy to use and lightweight too. Do you expect to see a tutorial or an examples on how to use in windows? No way, it is too many of them, the tutorial is everywhere on the net, google it and i find this.
So, what is this post about?
Well, putty on linux, you can find it at your repository. Apt-get, yum anything. When I try to run putty on windows msdos prompt, I couldn’t find any command line option
putty.exe --help putty.exe /?
No! Nothing at all on windows, but you have options on putty linux.
It allows you to adjust your font, background color etc. You can do it in GUI settings anyway, it is a X client.
One thing I like about putty is it allow me to store the remote host IP address, username and its port. So that I can double click the sessions i have saved and directly it prompts me to enter the password. It is really convenient for system admin, because we can’t really remember all the server IP and it is waste of time to always type a long command line to access a ssh server and you have to remember all of them.
Long ssh command line can be like this:
ssh firstname.lastname@example.org -p 8088
Where putty store the sessions information?
In windows, they store it in the registry. It really inconvenient to copy reg from one place to another. But for putty linux, the information is stored at ~/.putty/sessions
The config file is in text format, looks like this:
Present=1 HostName=myserverdomainnameis.long LogFileName=putty.log LogType=0 LogFileClash=-1 LogFlush=1 SSHLogOmitPasswords=1 SSHLogOmitData=0 Protocol=ssh PortNumber=8088 CloseOnExit=2 WarnOnClose=1 PingInterval=0 PingIntervalSecs=0 TCPNoDelay=1 TCPKeepalives=0 TerminalType=xterm TerminalSpeed=38400,38400 AddressFamily=0 ProxyExcludeList= ProxyDNS=1 ProxyLocalhost=0 ProxyMethod=0 .... UserName=mysurface ...
Okay that is nice, it makes me think of creates a simple ssh GUI wrapper uses bash script that can call zenity to allow me insert my username, port, host address and also I can call the GUI wrapper to allow me to choose from which ssh server to access. Just like this:
xssh -c //to trigger a X dialog to create a new sessions xssh //to trigger a X dialog that allow you to choose from
Is this already exist? Tell me if already have one.
Differences between putty in windows and putty in linux/unix.
1. Copy is still done by highlighting in linux, but pasting is middle click instead of right click.
2. To trigger a dialog box where you can duplicate and open a new sessions is done by pressing down ctrl and right click instead of right click on the windows title bar.