Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh binding includes wildcard hosts #20

Open
con-f-use opened this issue Aug 17, 2021 · 0 comments
Open

ssh binding includes wildcard hosts #20

con-f-use opened this issue Aug 17, 2021 · 0 comments

Comments

@con-f-use
Copy link

The ssh-binding includes hosts from ~/.ssh/config that contain wildcards. These are useless in most circumstances.

$ cat ~/.ssh/config
Host *
    ServerAliveInterval 60
    PreferredAuthentications publickey,keyboard-interactive,password,hostbased,gssapi-with-mic
    VisualHostKey yes

Host *+*
    ProxyCommand ssh $(echo %h | sed 's/+[^+]*$//;s/\([^+%%]*\)%%\([^+]*\)$/\2 -l \1/;s/:/ -p /') exec nc -w1 $(echo %h | sed 's/^.*+//;/:/!s/$/ %p/;s/:/ /')

Host Normal_Host
  HostName host.example
  User confus

Here * and *+* are returned in addition to Normal_Host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant