PuTTY Fatal Error dialog - Can it be suppressed? [closed]
Solution 1:
You can't really suppress these dialogs directly in Putty, I'm afraid. You can, however, work around the issue by using the command-line version of putty (plink) instead of the windowed version.
Another option would be to download the source code and either simply suppress the message or add support for a new /quiet switch that will do that (after all, putty is open source).
Edit: if you open the "WINDOWS\WIDNOWS.C" file and comment line 1111 (on my version anyway), that error message will be suppressed (not very elegant, but quick and easy). Here is the result:
/*
* Print a message box and close the connection.
*/
void connection_fatal(void *frontend, char *fmt, ...)
{
va_list ap;
char *stuff, morestuff[100];
va_start(ap, fmt);
stuff = dupvprintf(fmt, ap);
va_end(ap);
sprintf(morestuff, "%.70s Fatal Error", appname);
//MessageBox(hwnd, stuff, morestuff, MB_ICONERROR | MB_OK);
sfree(stuff);
if (conf_get_int(conf, CONF_close_on_exit) == FORCE_ON)
PostQuitMessage(1);
else {
must_close_session = TRUE;
}
}
Solution 2:
I would log out before going home in the evening, rather than the next morning.
Solution 3:
To avoid this issue, I am using a Linux server as a jump point. Here I run screen
or tmux
and all remote connections I am creating from screen
or tmux
. If the server has byobu
package, I preffer to start screen
or tmux
from byobu
.
Solution 4:
No, this is the server killing your connection because you were idle. You could prevent this by sending keepalives, perhaps once every hour (3600 seconds)