Re: [Fish-users] ssh host completion from .ssh/config
Status: Beta
Brought to you by:
liljencrantz
From: Stefan H. <hel...@pc...> - 2014-01-24 14:15:19
|
Juhu! Good advice, but not the right one ;-) It was simlar. There was a tab between the host and the name: host<---tab--->name Don't know why, the sgrep command works: sgrep -Eoi '^ *host[^*]*$' ~/.ssh/config | cut -d '=' -f 2 | tr ' ' '\n' I can see all names. But the ssh command didn't work. May be anyone can build a fix for this. -- Greetings Stefan Hellmann hel...@pc... http://www.pcspinnt.de On Fri, Jan 24, 2014 at 10:38:44AM +0100, Yvon Thoraval wrote: >I'm using fish and ssh on Mac OS X Mountain Lion and Mavericks without any >prob as U've mentionned. >and also the addresses are IPV6. > >my ~/.ssh/config : > >.-[yt@d620.local:~]-[10:34:51] > > >'->$ cat .ssh/config >Host Gericom >User yt >Hostname 2a01:< ... >:a07b > >Host iMac >User yt >Hostname 2a01::< ... >:721d > >Host iMac-wifi >User yt >Hostname 2a01::< ... >:2559 > >may be your prob would be only due to indentation ? > > > > > >2014/1/23 Stefan Hellmann <hel...@pc...> > >> On Thu, Jan 23, 2014 at 02:09:20PM +0000, Michael Stillwell wrote: >> >>> Hostname completion on ~/.ssh/config should work. e.g. >>> >>> $ ssh br[tab] >>> >>> >> Jep and thats the problem. This ist my .ssh/config: >> >> host homeserver >> Hostname 192.168.1.2 >> User shellmann >> IdentityFile ~/.ssh/id_rsa_work >> >> host publicserver >> Hostname 75.39.47.2 >> User root >> IdentityFile ~/.ssh/id_rsa_work >> >> >> The completion only tooks the hostname. The host is ignored. >> >> The bash completion for example uses the host. My .ssh/config file >> contains round about 100 entries. So it's hard to remember these IPs and >> cryptical hostnames. >> >> >> I'm not entirely sure how it's all hooked together, but you might like >>> to check that >>> >>> $ __fish_print_hostnames >>> >>> outputs hostnames (or aliases) from your ~/.ssh/config? It's defined in >>> >>> /usr/local/share/fish/functions/__fish_print_hostnames.fish >>> >>> (This function is used by completions/ssh.fish.) >>> >>> >>> >>> >>> Michael >>> >>> On Thu, Jan 23, 2014 at 1:12 PM, Stefan Hellmann <hel...@pc...> >>> wrote: >>> >>>> Hello everyone, >>>> >>>> i wonder that fish only completes hostnames and ignores my .ssh/config >>>> with the ssh command. >>>> >>>> Is there a way to force fish to read my .ssh/config ? >>>> >>>> I'm new to fish and did some google search but didn't found anything. >>>> >>>> -- >>>> Mit freundlichen Grüßen >>>> >>>> Stefan Hellmann >>>> >>>> hel...@pc... >>>> http://www.pcspinnt.de >>>> >>>> ------------------------------------------------------------ >>>> ------------------ >>>> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >>>> Learn Why More Businesses Are Choosing CenturyLink Cloud For >>>> Critical Workloads, Development Environments & Everything In Between. >>>> Get a Quote or Start a Free Trial Today. >>>> http://pubads.g.doubleclick.net/gampad/clk?id=119420431& >>>> iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Fish-users mailing list >>>> Fis...@li... >>>> https://lists.sourceforge.net/lists/listinfo/fish-users >>>> >>>> >> -- >> Mit freundlichen Grüßen >> >> Stefan Hellmann >> >> hel...@pc... >> http://www.pcspinnt.de >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Fish-users mailing list >> Fis...@li... >> https://lists.sourceforge.net/lists/listinfo/fish-users >> >> > > >-- >Yvon@48.871651804,2.384858688 |