Linux – Closing the terminal with an open SSH session

linuxsshterminal

I closed the terminal while still being logged in to a remote server during an SSH session (I didn't exit before closing the terminal).

Could this damage the server? What consequences could there possibly be?

Best Answer

It won't damage anything just so long as you weren't running something that was making changes to the system (updates, fsck, etc).

If it was just an idle shell session nothing will be harmed.

In the future, if you need to make changes to a system that is destructive, you can use GNU Screen or tmux to keep your session running and be able to reattach to it later.