sshs
sshs copied to clipboard
SSH config parse error with global parameters
% sshs
2022/06/14 17:48:46 /home/shreps/.ssh/config:0: config variable before Host variable
% head .ssh/config
AddressFamily inet
Host bitbucket.org
Hostname bitbucket.org
User git
ControlMaster no
Host github.com
StrictHostKeyChecking no
User git
sshs seems not understand / don't ignore the AddressFamily
parameter in my ssh config file.
I don't believe allowed top-level directives contains anything else than Host
or Include
. Are you sure it's a valid configuration ?
According to man: http://man.openbsd.org/OpenBSD-current/man5/ssh_config.5#AddressFamily It seems legit, and never had problem using this (it forces to use IPv4 instead of IPv6)
Agree with Sh3ps, I have the directive : ForwardAgent yes And same error :)
I had the same issue as mentioned here and had to comment the global directive ServerAliveInterval 10
I defined in my ~/.ssh/config
file to make it work.
Is there some workaround to make those global config elements to be taken into account in another way or is it a bug/limitation in the current design of sshs ?
Thanks for this great tool ✨ otherwise, happy I could find it from korben's website ;)
It needs to be implemented in mikkeloscar/sshconfig. As things continues it seems more clever to rewrite it entirely as it doesn't support a lot of features.
Hey! There is now a custom ssh config parser in 4.0.0, give it a try!