On Fri, Jul 23, 2010 at 04:50:10PM +0200, Joachim Schipper wrote: > On Fri, Jul 23, 2010 at 10:43:36AM -0400, Michael W. Lucas wrote: > > Hi, > > > > I'm running 4.7 GENERIC.MP#0 amd64 with the cwm window manager. Read > > the man pages and searched, but no answer to this. > > > > My employer runs SSH on a specific non-standard port. (Yes, I know, > > but that's the rule and it's my paycheck.) I've noticed that cwm's > > ssh autocompletion doesn't include known_hosts entries on nonstandard > > ports. Presumably, this is because the hostname is in square > > brackets and cwm can't parse it. > > > > Is there a way to make cwm's ssh autocompletion work when SSH is used > > on an off port? Or is this just the penalty I pay for living with > > this policy? > > > > Thanks for any suggestions, > > Can't you just use the machine name, and then put something like > > Host *.myemployer.com > Port 222 > > in ~/.ssh/config? > > Joachim
Tried this config file: Host * ForwardAgent yes ForwardX11 yes Port 222 ForwardX11Trusted yes Removed the entry for the host from known_hosts and tried again. I connected to the correct port, but the known_hosts entry is still recorded in brackets. No autocompletion. I don't see any other option in ssh_config(5) that seems appropriate. Thanks, ==ml -- Michael W. Lucas mwlu...@blackhelicopters.org http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/ New book available: Network Flow Analysis http://www.networkflowanalysis.com/