1

I often jump from one network to another and leave behind Putty ssh sessions that pop-up

enter image description here

Is there a way to force such windows to close automatically when the connection is down? (I do not care about the popup)

I tried two settings, but none of them fix the issue:


enter image description here

I that added to the Default profile but I do not think it applies to existing profiles (?)


enter image description here

WoJ
  • 3,123

1 Answers1

-3

You can Ctrl+Alt+Delete,

Or go into Activity Monitor or your App Processes in Task Manager -> 'Apps' then right click on app to get 'Properties' on what should be something like PuTTY.exe and any of the other Putty programs...ie. Puttygen, etc.

Set it to Manual startup or Disabled and on restart settings caused by errors configure your preferences of whether you want the program to close indefinitely (or until next open, while shutting down the processes associated as well, or if you want it to auto-restart). All those settings are in there. Task manager's one of the easiest ways to get there.

You could also do some sort of scripting similar to that of VPNs where if network has disruptions or anything but success, especially errored responses then close program. Look into open source VPNs on Github in Powershell, C#, PHP, Python. You would have to have it as a process that was triggered on launch or startup of application.

Nick
  • 1
  • 1
    What are you even talking about? Putty is not a service, it’s just a regular desktop application. – Daniel B Dec 23 '21 at 10:37
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center. – Community Dec 23 '21 at 10:38
  • My bad I meant to say Apps tab. – Nick Dec 23 '21 at 10:41
  • Do you want to close the ssh connection or the program? – Nick Dec 23 '21 at 10:48
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. – Community Dec 23 '21 at 11:25
  • The question is about closing the putty window if a connection is down. It pops up an information window that needs to be acknowledged for the main window to close. – WoJ Dec 23 '21 at 13:29