Skip to content

Instantly share code, notes, and snippets.

@emjayess
Last active May 22, 2019 17:09
Show Gist options
  • Save emjayess/5463489 to your computer and use it in GitHub Desktop.
Save emjayess/5463489 to your computer and use it in GitHub Desktop.
Permission denied (public key) even tho my deploy key is evidently recognized...

Permission denied (public key) even tho my deploy key is evidently recognized...

ubuntu@news:~$ ssh -T [email protected]
Warning: Permanently added the RSA host key for IP address '207.223.240.182' to the list of known hosts.
conq: authenticated via a deploy key.

You can use git or hg to connect to Bitbucket. Shell access is disabled.
ubuntu@news:~$ sudo git clone [email protected]:example/example.git /var/www/sites/news
Cloning into '/var/www/sites/news'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
@leezicai
Copy link

OpenSSH_5.9p1 version is too old, it only use rsa file with -----BEGIN RSA PRIVATE KEY----- begin and with -----END RSA PRIVATE KEY-----, but your rsa begin with -----BEGIN OPENSSH PRIVATE KEY----- and end with -----END RSA PRIVATE KEY-----.
you need update your OpenSSH version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment