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

fail with error config variable before Host variable #1

Closed
jumanjiman opened this issue Feb 4, 2022 · 1 comment
Closed

fail with error config variable before Host variable #1

jumanjiman opened this issue Feb 4, 2022 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@jumanjiman
Copy link

@quantumsheep

This looks pretty useful!

It fails for me on MacOS:

❯ sshs -v
sshs version 1.3.1

❯ sshs
2022/02/04 14:36:43 config variable before Host variable

❯ echo $?
1

My ~/.ssh/config looks something like this:

# ~/.ssh/config

# Jump comes first.
Include ~/.ssh/jump.conf

# Then Group A.
Include ~/.ssh/group_a.conf

# Then Group B.
Include ~/.ssh/group_b.conf

# My own stuff goes here.
Include ~/.ssh/myhosts.conf

# Defaults MUST be LAST.
Include ~/.ssh/defaults.conf
# ~/.ssh/defaults.conf

# Default host * and !<other_host> for exceptions.
host * !github.com !gitlab.com
    # My username
    user redacted

    # Use bastion by default
    Proxycommand ssh redacted@jump -YW %h:%p

    # Default identity
    IdentityFile /Users/redacted/.ssh/id_jump

    # Do not leak identities to the remote host
    IdentitiesOnly yes

    # Use pubkey, not password, by default
    PubkeyAuthentication yes
    PasswordAuthentication no

    # Ask on first connection and remember
    stricthostkeychecking ask

    # Other defaults
    port 22
    TCPkeepalive yes
    ServerAliveInterval 60

    # Uncomment next line on MacOS.
    UseKeychain no
@quantumsheep
Copy link
Owner

Seems like https://github.com/mikkeloscar/sshconfig doesn't support Include directives at the moment. I will try to implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants