DevOps Discussion Security

Keep SSH connection over Outline connection.

As most of you are already familiar with, Outline is a good ShadowSocks client, which provides tunneling for all traffic on computer.

But there is one big draw back, when we are doing server related works over SSH connection.
Somehow, Outline app automatically detects and disconnects SSH connection after around 15 seconds of idle time.

We can keep the connection with this simple SSH configuration.

Host *
ServerAliveInterval 10

First line specifies which servers to apply this option, while second line specifies time interval to send keep alive packets.

This option will make SSH connection to send keep alive signal every 10 seconds, which will prevent connection from idle time dropping.

You can put this in your computer (client side, not server side)’s SSH config file. (~/.ssh/config)
If you don’t have this file, you can simply create one and give proper permission with this command.

chmod 600 ~/.ssh/config

Hope this will help anyone using Outline client app.

Stan

Stan is an experienced full-stack developer and software engineer who is focused on web and game development. He is enthusiastic about new technologies. Stan is highly skilled in many programming languages and frameworks, and he always tries to deliver the best approach.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *