Error: Permission denied (publickey)

ssh -vT git@github.com

输出:
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /Users/you/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug1: Connecting to github.com [IP ADDRESS] port 22.

Always use the “git” user

ssh -T GITHUB-USERNAME@github.com

Permission denied (publickey).

换成用git用户:

ssh -T git@github.com

Hi username! You’ve successfully authenticated…

参考

你可能感兴趣的:(github)