Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

github.com is always an unknown host #290

Open
brandonkal opened this issue Dec 4, 2019 · 7 comments
Open

github.com is always an unknown host #290

brandonkal opened this issue Dec 4, 2019 · 7 comments

Comments

@brandonkal
Copy link

Git push is painful with this app as it is always an unknown host. It has to be approved twice likely due to github's SSH load balancing.

There are other cases where the host appears to be unknown as well.

@FernandoMiguel
Copy link

Github has a known key
It shouldn't be showing a different one per connection.
Have you tried adding it to your known keys?

Personally I prefer to use github with https and personal tokens

@brandonkal
Copy link
Author

brandonkal commented Dec 4, 2019

This is a bug in Krypton. It always reports an ssh request to GitHub as an unknown host (twice)

For instance my development server is simply Dev

The push notification on my Android reads
"dev @ unknown host" SSH request.

After git push, the Android app shows it in the logs as "git @ github.com"

The host is known on the server and pinned in the Krypton app.

@agrinman
Copy link
Contributor

agrinman commented Dec 4, 2019

What’s the output of ssh git@github.com -vv

@FernandoMiguel
Copy link

for reference

debug1: Server host key: ssh-rsa SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8
debug1: Host 'github.com' is known and matches the RSA host key.
debug1: Found key in /Users/fernando/.ssh/known_hosts:5
[...]
debug1: Server accepts key: /Users/fernando/.ssh/id_krypton ED25519 SHA256:95QKUNIcIP9Ccj6L4Ot5XP7x/lFU85dI1E/jcy+Wyu4 explicit agent
Krypton ▶ Requesting SSH authentication from phone
Krypton ▶ Phone approval required. Respond using the Krypton app
Krypton ▶ Success. Request Allowed ✔
debug1: Authentication succeeded (publickey).
Authenticated to github.com (via proxy).

@brandonkal
Copy link
Author

See now that I open this issue it starts mysteriously working. I'll keep this open for a while to see if this pops up again. Output is essentially what is above, i.e. Host 'github.com' is known.

@brandonkal
Copy link
Author

I'm seeing a similar issue now with another host.
When connecting with Forklift to a local server that is already known "dev" the phone prompts with "unknown host"

@brandonkal brandonkal reopened this Dec 16, 2019
@lekv
Copy link

lekv commented Jul 3, 2020

I'm also seeing this behavior with gitlab.com :(

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

No branches or pull requests

4 participants