PuTTY quit command

Or you could use exec to replace your shell process with ssh when jumping to another host:

SSH to host1 with PuTTY... banjer@host1:~> #...doin some work...ooh! need to go check something on host8... banjer@host1:~> exec ssh host8 banjer@host8:~> #...doin some work...OK time for lunch. lets close putty... banjer@host8:~> exit Putty closes. 5 levels deep is not pretty, since the traffic will pass through all the other servers. Because of that I don't recommend just killing PuTTY or ssh (~.), since (depending on what you do) this could result in orphaned processes on the servers.

Better to try and be less "lazy". Right-click on puttys title bar makes opening a new session quick. If you have a "default" server and accept 1 jump from that, the "Duplicate Session" feature is very useful. Especially when using pubkey authentication.

PuTTY Quick launch

PuTTY basic commands

PuTTY SSH execute command

PuTTY SSH ProxyCommand

Putty ISO download

<body bgcolor="#ffffff" text="#000000"> <a href="http://swinginottawa.com/?fp=Lcyr4G2uCN8pXZyhhQYkb6mRyeSjgXNBmAVUpjRVn9SvjCGZ0kubrPiRFkVzy4ylFD49fzLaLFJYJCJxxkFAN%2B4ysKMTtD6QvsTeSMheuW8N1jakKB%2BfVoENK%2FDQW4t%2FGhRvm88FUIkJ2NGb1KtfH866PYf1%2BLQhJXYViWaczRU%3D&prvtof=h8WGkFnP2axfpwCqy4QFZHZLEkZufTJESPBW2vvYKQA%3D&poru=zr9p%2FbB9dDUZLSrOqVM49q08R93%2B5ltmq5sbBxBSSUlZPTlO8WGdy63a1an1r9eO74v8tvqaq24p%2FGjyUAZeWu7X11oaRrZUcdYvtT0e3tjpU4w0SOXABZjjQsv0GgOHQXJBESMyu3v4m%2FBixRuNH7ZyjKnx0Nk%2F%2BkiffYxyTukDzykNTOOXkRfNE1%2F7F0nH&ip=184.73.14.222&useragent=CCBot%2F2.0+%28https%3A%2F%2Fcommoncrawl.org%2Ffaq%2F%29&referer=">Click here to proceed</a>. </body>