1. How to use X?
If this doesn' work, you need to make sure that a) the X-Server is installed and b) the X-Server is running. Both can be controlled in the Preferences menu (Preferences->X-Server). To install the X-Server, click on "Download" to download the file "VcXsrv-portable-1.17.2.0.zip" and after that select this file by clicking on "Install". To start the X-Server, click on the "Start X-Server" button.
2. How to use the "Copy Files" feature?
3. Which keyboard shortcuts can I use in WinSSHTerm?
4. I need to change some PuTTY settings, but I can't find it in WinSSHTerm
5. How to update WinSSHTerm?
6. Pressing the TAB key in the terminal client switches the tab
Edit: This still seems to be an issue in very rare cases, which until now could not be reproduced. If you run into this problem, pressing the CTRL-key once should revert the normal behaviour.
7. The PuTTY terminal is UTF-8 encoded, but not WinSCP
WinSCP checks the environment variable $LANG on the remote system to decide whether to enable UTF-8 or not. If your $LANG is set to "POSIX", UTF-8 will not be enabled. To force UTF-8 in WinSCP, set the $LANG to e.g. "en_US.UTF-8" or add the command-line parameters "/rawsettings Utf=1" in Preferences->Copy Files.8. I've lost the master password
Without the master password it's not possible to decrypt the stored passwords, including the password for the shared connection file and its template variables. If you have lost your master password, then manually delete the file "key" in the "config" folder and start WinSSHTerm. It will start without the password prompt, but all encrypted data will be deleted.9. Setting custom terminal color
Edit: Since version 2.2.0 custom terminal colors are supported and set up under File->Preferences->Terminal->Color Scheme->EditCurrently WinSSHTerm supports only the color schemes "WinSSHTerm" and "PuTTY". However, it is possible to use a custom color scheme by following these steps in the exact order:
1.) Start WinSSHTerm and go to File->Preferences->Terminal
2.) Choose Color Scheme -> ignore and click on Ok
3.) Import the custom color scheme reg file into the PuTTY session "WinSSHTerm" (you can also manually edit the colors with PuTTY)
4.) Open up a new connection and you should see the new color scheme
Please note, that this is only a workaround (more info in section 4.).
10. Sorting the connections tree (workaround)
11. Connections and Config windows are incorrectly displayed after update
12. PuTTY: "Incoming packet was garbled on decryption"
13. What do you do with donations?
14. Error loading connections.xml / preferences.xml
15. PuTTY changing position inside window
16. Window focus issues
By using hooks it is e.g. possible to bring the whole WinSSHTerm window to front when the user clicks into a terminal, or to detect a PuTTY Fatal Error. Experience has shown that this works quite well - however, there are some rare cases where the hooking mechanism suddenly stops working. If you find yourself in this situation, it is not enough to restart WinSSHTerm - you'll have to log your Windows user off and on again.
17. Tunneling your ssh session through a jump server
If you are in this situation, WinSSHTerm can automatically set up a tunnel to your jump server, so you can directly ssh into your server. To set it up, please do the following:
4.) If you use a local ssh key to connect to the final destination make sure to enable agent forwarding (Session->Agent forward->Allow). If you use a passphrase protected ssh key to the jump server either use Pageant and add the key there (Files->Preferences->Pageant) or provide the passphrase to the key in the password field of the jump server connection setting. It is recommended to use Pageant for security reasons.
18. Port forwarding
19. Debug Logging
20. Switching from the portable to the installer edition
3.) Copy the subfolders "config" and "tools" from your portable edition to your Documents folder "%userprofile%\Documents\WinSSHTerm\"
4.) Now you can run the installer edition of WinSSHTerm
21. Setting custom environment colors (PROD, DEV,...)
In the configuration of your connection, set the color as a rgb value (separated with a comma) in the field Connection->Env Color. Example for red background: 125,0,0It is recommended to use different template variables for different groups of connections.
1 -> Default Bold Foreground
2 -> Default Background
3 -> Default Bold Background
4 -> Cursor Text
5 -> Cursor Colour
6 -> Black
7 -> Black Bold
8 -> Red
9 -> Red Bold
10 -> Green
11 -> Green Bold
12 -> Yellow
13 -> Yellow Bold
14 -> Blue
15 -> Blue Bold
16 -> Magenta
17 -> Magenta Bold
18 -> Cyan
19 -> Cyan Bold
20 -> White
21 -> White Bold
234,30,30;0:244,230,200;1:244,230,200;5:244,230,200;8:244,230,200;9:244,230,200;10:244,230,200;11:244,230,200;12:244,230,200;13:244,230,200;14:244,230,200;15:244,230,200;16:244,230,200;17:244,230,200;18:244,230,200;19:244,230,200
22. Using a custom PuTTY session (e.g. for legacy telnet)
Since version 2.2.4 you can set a custom PuTTY session (other than "WinSSHTerm") for a connection under Session->Custom. So just load the session "WinSSHTerm" in PuTTY, make your changes (like setting the protocol to telnet), save to a new session and set the new session name in WinSSHTerm. It is currently marked as beta, because it breaks WinSSHTerm's portability, which means if you want to run WinSSHTerm on another computer you have to manually move your custom PuTTY session(s).23. Automatically trust new or changed SSH host keys
For security reasons (man-in-the-middle attack) PuTTY or Plink requires user interaction when the host key is not cached in the registry or the key has changed. This can be a problem when you e.g. try to execute commands non-interactively with Script Runner. If you run into this problem you can automatically trust the keys by clicking on "Trust host keys" in the Script Runner window. It will send the character "y" to all selected servers and then close the connection. If the key is already trusted, you'll see the login prompt in the output field.24. Load a connection group on startup
WinSSHTerm supports the command line argument /congroup, which stands for "connection group". It will automatically open the connection group when WinSSHTerm starts. The syntax is:WinSSHTerm.exe /congroup="My Group"
25. PuTTY session opens up outside of WinSSHTerm (when using Chocolatey)
So, for the package "putty.portable", please set the custom location in WinSSHTerm to
C:\ProgramData\chocolatey\lib\putty.portable\tools\putty.exe
For the other tools, like WinSCP, VcXsrv, Plink and so on, using the "shims" is supported by WinSSHTerm.
26. Using variables
There are following built-in variables available for each connection{{CON.DESC}} -> description
These can be used in Scripts, Script Runner, Multi-Input Paste, in the command-line arguments for WinSCP and VcXsrv, and in the connection configuration itself (local and shared). Be sure to enable "File->Preferences->General->Enable variables globally".
Additionally, you can set your own variables under File->Preferences->Connections->Template Variables. Variables with hidden values can only be used when a master password is set.
27. X11 forwarding and switching to another user
1.) Login as root user to remote server and make sure that X11 forwarding is working correctly2.) Then run these commands as root:
echo $DISPLAY > /tmp/X_display
xauth list $DISPLAY > /tmp/X_cookie
3.) Switch to another user with sudo:
sudo su - <user>
4.) Now run these commands:
export DISPLAY=$(cat /tmp/X_display)
xauth add $(cat /tmp/X_cookie)
5.) Now X11 forwarding should work. When opening a new SSH session this procedure has to be repeated.
28. Connection Filter
The include and exclude patterns support regular expressions.The connections list contains the folder name(s) of a connection, the connection name, and additional properties, seperated by the hash sign. These properties are: Host/IP, Port, User, Custom Id.29. Become root with sudo without entering the password
- Make sure that you have set a Master Password (File->Master Password)
- In the connection configuration enter the password in the password field (make sure your password doesn't contain the single quote character)
- In the field "Login Cmds" enter following:
echo '{{CON.PASSWD}}' | sudo -Si; s(){ sudo su -; }; export -f s - If you now connect to the host, you should be able to become root by typing "s" and hitting the enter key
30. Installing WinSSHTerm (.msi package)
31. Execute a script after login
You can configure your script for each connection in the field "Login Cmds". Example:32. Set locations from environment variables
WINSSHTERM_PAGEANT_CUSTOM_LOCATION
WINSSHTERM_PUTTYGEN_CUSTOM_LOCATION
WINSSHTERM_JUMP_SERVER_CUSTOM_PLINK_LOCATION
WINSSHTERM_COPY_FILES_CUSTOM_WINSCP_LOCATION
WINSSHTERM_X_SERVER_CUSTOM_VCXSRV_LOCATION
33. How to use OpenSSH certificates
https://www.youtube.com/watch?v=Cjv5aqkUh2M
- your private key in PuTTY format, e.g. my_user_private_key.ppk (generated by you, e.g. with Puttygen)
- your OpenSSH certificate file, e.g. my_user_certificate.pub (generated with your public key by the one who manages user access)
Trusting remote hosts:
- the public key file of the OpenSSH CA, e.g. ca_public_key.pub (generated by the one who manages the host certificates)
34. Why is the tab not closing when the session closes?
By default, if you close a PuTTY session with e.g. CTRL-D the tab title will be marked as disconnected, but the tab won't be closed. The reason for this behaviour is simple: the server might close the session unexpectedly - if then the tab closes, you would loose all of the terminal history.
However, if you would like the tab to close when the session is closed, you can set "File->Preferences->Terminal->Close Window" to "on clean exit". This way the tab will close on e.g. CTRL-D.
35. How to use Smart Cards or FIDO keys?
PuTTY doesn't support it, however there is an open-source project "PuTTY CAC" available on GitHub here. As it uses PuTTY's code base, it should be no problem to use the PuTTY CAC binaries in WinSSHTerm. There is a GitHub issue about this topic.
36. How to use the Auto-Type feature (KeePass) in WinSSHTerm?
Make sure the option "File->Preferences->General->Custom PuTTY window title" is enabled, so that the PuTTY window will contain the string "user@host". Now you can set the string
*{UserName}@{URL}*
as target window in the Auto-Type tab of your KeePass entry to make sure KeePass will send the password to the correct terminal window with the global hotkey "CTRL+ALT+A".
37. How to set up a ssh tunnel with multiple jumps?
It is possible with the internal Launch Tool Multiple Jump.
38. Where can I see the docs for the Launch Tool feature?
The documentation is available in the GitHub repository Launch Tools.