小编fre*_*inn的帖子

如何修复警告:无法访问身份文件 github:没有这样的文件或目录?

Host github.com git 
  HostName github.com
  User git
  IdentityFile ~/.ssh/github # I've tried also /home/freinn/.shh/github
Run Code Online (Sandbox Code Playgroud)

没有/home/freinn/github创建文件,我必须创建它吗?

这是完整的警告:

Warning: Identity file /home/freinn/github not accessible: No such file or directory.
Hi freinn! You've successfully authenticated, but GitHub does not provide shell access.

[freinn@freinn ruby]$ ssh -v git@github
OpenSSH_5.9p1, OpenSSL 1.0.0j-fips 10 May 2012
debug1: Reading configuration data /home/freinn/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 50: Applying options for *
ssh: Could not resolve hostname github: Name or service not …
Run Code Online (Sandbox Code Playgroud)

ssh git github

8
推荐指数
1
解决办法
1万
查看次数

标签 统计

git ×1

github ×1

ssh ×1