1

I have used the linux desktop for many years, but I rarely get into its networking aspects. I run a personal fileserver (primarily running owncloud on Ubuntu 14.04), and to perform regular maintainence and log-checking I ssh into the machine. I find myself leaving a ssh connection open from my desktop to the fileserver from time-to-time, simply out of convienince.

My question is two fold:

  1. {What are} / {are there} security implications of leaving a ssh connection perpetually open?

  2. {What are} / {are there} practicality implications? I.e. network usage, etc...

    I realize that from the traffic viewpoint, there will be an occasional 'keep alive' packet to maintain the connection, but otherwise I don't expect much overhead. Correct?

2 Answers 2

1

{What are} / {are there} security implications of leaving a ssh connection perpetually open?

The session key is renegotiated periodically so there aren't many confidentiality issues. You can configure the time between renegotiates with RekeyLimit (second parameter to that directive) if that's a concern for you.

As shadowbq kind of alluded, the security issues are basically the same as running any other remote control client perpetually. Meaning it potentially increases the attack surface of your internal network in a way that's dependent on the physical security of the workstation.

{What are} / {are there} practicality implications? I.e. network usage, etc...

Next to nil. The server and client will occasionally rekey the session but outside of that it's just the normal SSH-level and TCP-level keepalives that get sent. We're probably talking about a few KB worth of network packets over the span of half an hour though.

0
  1. Leaving connect established poses a security threat during these situations

    • You have reverse tunnels / forwarded ports that compromise the enterprise Firewall Network restrictions.
    • Your sessions can be monitored for data transfer rates, but no more than an SSL VPN connection
    • You have other services that could be compromised leading to a pivot to the target server (ie. Hosting external web servers, tmux connections,etc.)
    • Physical Security of the computer, keyboard, or remote KVM capabilities.
    • Secondary Users on the desktop. (Unsecured TTY's etc.)
    • Having unsecured SSH private identity keys.
  2. There are two types of keep alives sent during SSH communications. Each of these are tunable. Minimal traffic is sent to maintain the keep alives.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .