我已经关注了Jeffrey Way的instructions,我在终端内不断收到相同的SSH错误。
我想通过Sequel Pro连接并进一步深入研究,这是最准确的日志描述:
debug1: Host 'IP ADDRESS' is known and matches the RSA host key.
debug1: Found key in /Users/ben/.ssh/known_hosts:17
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/ben/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Offering RSA public key: /Users/ben/.ssh/id_rsa.pub
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).
我以这种方式生成SSH密钥:
ssh-keygen -t rsa -C "your_email@example.com"
然后通过以下方式将其复制到Laravel Forge中:
cat ~/.ssh/id_rsa.pub | pbcopy
保存没有错误。但后来我尝试伪造@ ip_address并且它总是返回Permission denied错误。
非常感谢任何帮助。
答案 0 :(得分:2)
按照说明我有同样的问题。
陷阱>
pbcopy < ~/.ssh/id_rsa.pub
答案 1 :(得分:1)
我通过在Forge上重新创建服务器解决了这个问题。 pbcopy
也未能奏效。