PuTTY alternatives – AlternativeTo.net

Sometimes after hours of searching you find a link so good that it needs no introductions and neither any writeup. I found one such page today :

http://alternativeto.net/desktop/putty/

\"Reblog

PuTTY export client display on login for opening X application and terminal.

export DISPLAY=$(echo $SSH_CLIENT |awk \'{print $1\”:0.0\”}\’)

Explanation:

SSH_CLIENT contains the IP and the port of the client machine. So we need to export (Client IP):0.0 for the display on the client machine. If the above is put in .bashrc or .bash_profile or .profile, then the DISPLAY variable will be set based on the client machine.

Setting the title of PuTTY window.

Setting the title for PuTTY window is quite a simple trick. The trick is to set the PS1 with a escape sequence. When the PS1 is set with the escape sequence the variable will set the title window also. And not only can this trick be used in PuTTY but even on gnome-terminal to set the title dynamically. You can use this in the .bashrc or .bash_profile file to do it whenever you are starting the terminal.

export PS1=\”\\[\\033]0;$1 – \\u@\\h:\\w\\007\\]$PS1\”

Sometimes this does not work and then you can use the PROMPT_COMMAND to do this:

export PROMPT_COMMAND=\’echo -ne \”\\033]0;`pwd`\”; echo -ne \”\\007\”\’