Mohit Ranka

Superfast lag-free SSH

| Comments

A tip to speed up commands on ssh significantly, especially for long running sessions. (Note – All the instructions are only for Ubuntu 12.04)

  1. Put the following in ~/.ssh/config
1
2
3
4
 Host *
    ControlMaster auto
    ControlPath ~/.ssh/auth/%r@%h:%p
    ControlPersist yes
  1. chmod 600 ~/.ssh/config
  2. mkdir ~/.ssh/auth

and Voila!

In my testing, the ssh connect and exit time to a test instance, dropped from 5.25-5.28 sec to 0.84-0.87 sec.

If you read this far you should probably follow me

linux,, productivity, tip,

« RDBMS vs. NOSQL?

Comments