Search:  
Gentoo Wiki

Speed_up_SSH

Image:OpenSSH-logo.png

SSH Basics

Tips & Tricks

Other Gentoo-wiki SSH

edit

About

Each time SSH connects it reauthenticates with the server, by using a socket it will only need to connect once then all the other connections will go through the socket. Its easy to setup and runs transparently improving connection speeds for multiple ssh connections.

Add the following 3 lines to your /etc/ssh/ssh_config:

File: /etc/ssh/ssh_config
 Host *
        ControlMaster auto
        ControlPath ~/.ssh/socket-%r@%h:%p

If you want to set this for a specific user, edit:

File: ~/.ssh/config
 Host *
        ControlMaster auto
        ControlPath ~/.ssh/socket-%r@%h:%p

See also

Retrieved from "http://www.gentoo-wiki.info/Speed_up_SSH"

Last modified: Sat, 06 Sep 2008 13:42:00 +0000 Hits: 7,641