zwx
zwx

Reputation: 589

ssh -vT [email protected] get " No such file or directory" error

enter image description here

I have alareay add id_rsa.pub file content into my Github Account Setting.

My OS is Windows10.

Upvotes: 0

Views: 9337

Answers (1)

VonC
VonC

Reputation: 1326716

First, make sure to answer yes when asked about the authenticity of GitHub host: you need to have your %USERPROFILE%\.ssh\known_hosts updated.

Second, you have re-generated and overwritten your %USERPROFILE%\.ssh\id_rsa.pubpublic key: make sure that new key is indeed registered (as one line) in your GitHub profile.

Third, check that you can read that same public key from your bash session:

cat /c/Users/lijp/.ssh/id_rsa.pub

Check also your public key fingerprint with the one recorded on GitHub:

ssh-keygen -E md5 -lf /c/Users/lijp/.ssh/id_rsa.pu

Upvotes: 3

Related Questions