以下是我的 ~/.ssh/config 内容
ForwardAgent yes
# Default PHP Fog user (name)
Host phpfog
HostName git01.phpfog.com
User git
IdentityFile /Users/Pk_2/.ssh/id_rsa_phpfog
# Default github
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile /Users/Pk_2/.ssh/id_rsa
但是当我尝试对 phpfog repo 文件夹执行 git push 时,它给了我
Permission denied(public key)
fatal:the remote end hung up unexpectedly
但除非我将 id_rsa_phpfog 重命名为 id_rsa,否则我无法推送到 phpfog。那么我可以指定密钥文件吗
PHPFog 配置 - http://docs.phpfog.com/getting-started/ssh/