Responsive Remote CompletionPosted on April 23, 2014
I have been using remote completion from remote boxes for a long time, as it is available in both zsh and bash. However because establishing an SSH connection is slow, the completion is not terribly useful, you spend more time waiting for it to complete than it saves in typing. However if you set up a few SSH options to keep a master connection alive and for subsequent SSH connections to use the master connection it then is very snappy.
First you need to set up password-less authentication, the easiest way is to use ssh-copy-id.
then make a
controlmasters directory in your
.ssh directory, which will store the controlmaster session information.
Lastly add the following lines to your
Then use your now snappy ssh completions!