tirenweb
tirenweb

Reputation: 31709

Cannot connect to GitHub through SSH: host not known

What is the format for SSH URLs in GitHub?

I'm trying with:

ssh [email protected]:Ziiweb/home

but I get

ssh: Could not resolve hostname github.com:Ziiweb/home: Name or service not known

Upvotes: 0

Views: 2535

Answers (1)

MariuszS
MariuszS

Reputation: 31567

Github is not accessible by SSH, this is protocol used by git for authentication by SSH Keys, so the command is

git clone [email protected]:Ziiweb/home

From GitHub docs Set Up Git:

If you use the SSH repository URL (...), SSH keys are used for authentication.

More: Generating SSH Keys

Upvotes: 1

Related Questions