Not finding hosts in .ssh/config
Closed this issue · 2 comments
xstrex commented
Hi, just installed your awesome workflow, excited to use it!
Followed all the instructions, got it installed and updated. But it's not finding any hosts in ~/.ssh/config. I've disabled all other includes, and left ~/.ssh/config active, to eliminate any false-positives.
Here's an excerpt from the log:
6:30:17 ------------------- 7.658127ms -------------------
16:30:17 -------- Secure SHell/0.8.0 (AwGo/0.14.0) --------
16:30:17 [bind] unbindable kind: ptr
16:30:17 options=
&{Check:false Config:false Demo:false Forget:false Open:false Print:false PrintDataDir:false PrintCacheDir:false PrintDistName:false PrintLogFile:false Remember:false Search:true Toggle:false RawInput:tn RawURL: VarName: DisableConfig:false DisableEtcConfig:true DisableEtcHosts:true DisableHistory:true DisableKnownHosts:true ExitOnSuccess:true MoshCmd:mosh SFTPApp: SSHApp: SSHCmd: query:tn url:<nil> username: port:0 historyPath:/Users/Strex/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred-ssh/history.json}
16:30:17 15.685030974s since last check for update
16:30:17 query=tn, username=, port=0
16:30:17 [source/load/config] 0 host(s) in '~/.ssh/config'
16:30:17 0 host(s) loaded in 304.401µs
16:30:17 0/0 hosts match `tn`
16:30:17 Sent 1 result(s) to Alfred
And hers's proof that hosts exist in my local config file:
[Strex@host]: grep host ~/.ssh/config |wc -l
9
The hosts are in the following format:
host foo
Hostname foo.bar.com
User foo
IdentityFile ~/.ssh/id_foo
I've already uninstalled / reinstalled the workflow. Any suggestions?
deanishe commented
host foo
Try changing that to Host
:
Host foo
ssh
doesn't care about the case, but the parsing library I'm currently using does.