1
$ ssh -T [email protected]
/c/Users/user/.ssh/config line 1: no argument after keyword "host*"
/c/Users/user/.ssh/config line 5: no argument after keyword "identityfile~/.ssh/id_ed25519"
/c/Users/user/.ssh/config: terminating, 2 bad configuration options
3
  • It looks like you are missing some mandatory whitespace in your .ssh/config file. host * and identity file ~/.ssh/id_ed25519. Commented Oct 15, 2022 at 2:38
  • @chepner I agree, except for IdentityFile, which is indeed without space between Identity and File. Commented Oct 15, 2022 at 7:02
  • 1
    Oops, that's was autocorrect messing with me. I meant identityfile ~/.ssh/id_ed25519. Thanks for pointing that out. Commented Oct 15, 2022 at 13:26

1 Answer 1

2

The best way I found to do this was delete the config file from .SSH config (after making a copy), and then reconnect to the SSH you need. You can re-add them if you are using a tool like remote explorer in VScode and it will create a new config file for you. The ssh config file is overwriting the default ssh parameters when the connection is happening.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.