What happens to an ssh process if the local IP address changes? [closed]
Yes, that's expected behavior. Your connection was physically interrupted, after all.
If an interruption in your connection may cause a failure of a long running remote process, consider running it in a tmux
session.
If you do not want to run ssh commands in the background (manually) you may give mosh
(mobile shell) a try. It's available for probably any distribution and system including various BSD, Android, Windows and macOS.
Yes, it's normal.
A TCP server identifies a connection by the combination of local address, local port, remote address and remote port.
Since you talk about "the local public IP address changes" I presume your workplace uses some form of NAT to map the private addresses on your LAN to one or more public addresses on the current internet connection.
Depending on how exactly the NAT is implemented there are several possibilities for what exactly might happen at the packet level, but for regular TCP all of them end up with the TCP connection failing.
There is an extension called "multipath TCP" which (among other things) allows connections to be maintained across network changes, but afaict using it between linux boxes still requires third party kernel modules at this time.