Accelerare le connessioni ssh con Controlmaster: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
No edit summary
 
(No difference)

Latest revision as of 19:06, 10 June 2006

Se si usa ssh versione 4 o superiore, si può velocizzare la filename completition o la connessione riutilinado le connessioni già utilizzate.

I set up the ControlMaster feature by adding the following lines to my ~/.ssh/config:

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

Note that the ControlPath expansion of the remote name (%r), host (%h), and path (%p) only works with OpenSSH 4.2 or newer.

To set up the master connection, run

ssh -M -S ~/.ssh/remote-host user@remotehost

Then, run ssh -S ~/.ssh/remote-host user@remotehost

for subsequent connections to the same host.


Vedi Linux.com | Accelerating OpenSSH connections with ControlMaster: