32

I like Putty, a lot. However, I open and close a huge number of Putty windows each day and every time I close a window I get a popup box with

Are you sure you want to close this session?

It's incredibly annoying. Yes, Putty, I would like to close the session. That's why I clicked the freaking close button!

Is there any way to prevent this popup in Putty?

EDIT: I'm running Windows 7 x64 and Putty 0.63.

Nate
  • 1,595

2 Answers2

53

Use this option on the Window -> Behaviour page

enter image description here

and don't forget to save this as Default Settings on the Session page to make it permanent.

mpy
  • 27,793
  • 5
    I can't believe it. I looked all through the settings and somehow missed this. Thanks! – Nate Feb 13 '15 at 18:25
  • 2
    Yes you have to do it for every single (pre-existing) session!!! (Contrary to what @mpy just said.) For each session, you must: 1) click ONCE on the session, 2) click "Load" 3) Click Window->Behavior to uncheck "Warn before closing window" 4) click Session, 5) click Save – James Bowery Sep 18 '19 at 18:05
  • @JamesBowery: It seems we use different wording: I meant with session a new connection to an arbitrary host (default profile is used). Otherwise you are right, every (already saved) profile you have to edit once. – mpy Sep 18 '19 at 18:25
4

As @mpy correctly answered, go to Window > Behavior > Warn before closing window.


Alternatively, particularly if you are keyboard-centric, use Ctrl+D keyboard shortcut. On *nix systems, it's an equivalent of logout command and will take your PuTTY window with it (if Close window on exit is set to its default value of Only on clean exit).

  • 1
    Good to know! Though, this might not work on other connections than SSH, e.g. COM, depending on the target you are connected with :) – bully Sep 09 '15 at 09:04