2

I have followed Jeffrey Way's instructions and I am continuously getting the same SSH error within Terminal.

I am wanting to connect through Sequel Pro and upon digging further into it, this is the most accurate log description:

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).

I generate my SSH key this way:

ssh-keygen -t rsa -C "your_email@example.com"

Then copy it into Laravel Forge by:

cat ~/.ssh/id_rsa.pub | pbcopy

It saves without error. But then I try forge@ip_address and it returns the Permission denied error, always.

Any help would be hugely appreciated.

4

2 回答 2

2

按照说明,我遇到了同样的问题。

尝试:

pbcopy < ~/.ssh/id_rsa.pub
于 2015-02-02T15:32:08.353 回答
1

我通过在 Forge 上重新创建服务器解决了这个问题。pbcopy也没有工作。

于 2015-02-03T09:53:48.367 回答