Skip to content
Discussion options

You must be logged in to vote

You're welcome @Saltsmart! Feel free to accept my answer above so other users with the same problem can easily find it.

As for your other question: actually, ssh [email protected] is not matching your Host Server entry. It's just connecting directly to the IP without using your config at all. SSH doesn't need a config file to connect to an address.

The Host directive only matches what you type in the command. From the manual: "matched against the host name given on the command line".

To use your Host Server config, you'd need to run ssh Server (then it applies the HostName, User, etc.).

Both GitHub and your IP work the same way: Host is always a pattern matcher for what you type, never…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ellebrink
Comment options

Answer selected by Saltsmart
@Saltsmart
Comment options

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