PuTTY stores information about sessions you have created to connect to a particular host in the Windows Registry at
HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Sessions
.
If you want to view the SSH tunnels configured for a particular host, i.e.,
the port forwarding
settings for that host, you can navigate to
HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Sessions\SessionName\PortForwardings
where SessionName is the name you have given to the session
associated with the host. E.g., suppose you regularly establish an
SSH
connection to www.example.com and have named a session for that site
MySite
. You could navigate to
HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Sessions\MySite\PortForwardings
to find the port forwardings settings. If you had named the session
My Site
, there would be a %20
in the session name
stored in the registry as %20
is an HTML representation for the
space character. You can doubleclick on the PortForwardings
key
in the right pane of the registry window to see the values stored in the key.
You might see something like the following:
L22011=192.168.0.11:22,L33018=192.168.0.18:33018
[ More Info ]