Speed up SSH connection in your Linux Server

Speed up SSH connection in your Linux Server

Have you ever experience lag when you’re connecting to your Linux server using ssh?

In this simple step you’ll learn how to speed up SSH connection in your Linux server.

1. Enable IPv4 only

Either for the given SSH client

$ ssh -4 login@hostname

Or globally in ssh client conffiguration in /etc/ssh/ssh_config

In youretc/ssh/ssh_configfind and change AddressFamily to inet and unhash it if is in hash,

$ sudo nano /etc/ssh/ssh_configAddressFamily inet

2. Disable DNS lookup on the server

In yoursshd_configfind and change UseDNS to no if value is yes and unhash it if is in hash,

$ sudo nano /etc/ssh/sshd_config

# Disable DNS lookups
UseDNS no

That’s All, Try to login again and see the difference.

Clap and Share my story on how to Speed up SSH connection in your Linux Server

Thanks!

Tutorial: How to install LEMP stack and deploy your Laravel application in DigitalOcean (Ubuntu 18.04)

Part 1: Register in DigitalOcean

Part 2: Set up our server

Part 3: Set up now the LEMP stack (Linux, Nginx, MySQL, PHP).

Part 4 (The last part): Deploy our Laravel application in our server.

--

--

--

Software Engineer, Web Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

3 Common reasons why outsourced software projects fail

Host your Portfolio using Github Pages in 5 Steps!

Bot Framework : Creating your first chat bot with code [in 15 easy steps]

BotCreatNew

How I Passed the AWS Certified Security-Specialty Exam

Debunking “Purpose-Built Data Systems”: Enter the Universal Database

Type Systems in Programming Languages: Static vs. Dynamic and Strong Vs. Weak

Male facing the wall, frustrated. Wall has multiple squares and bricks

JMeter Live Changes Config (v0.0.3)

On Prometheus

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arnolfo Federis

Arnolfo Federis

Software Engineer, Web Developer

More from Medium

How to Fork a Repository with GitHub

Running OpenSSH in Windows PowerShell

Running Redis with resilience in Linux containers on Windows — Part 1

docker search redis

How to Reset MySQL root password in Ubuntu