Permission denied (publickey).

Asked by Preben S

Got this for a couple of days, trying to update inkscape:

 bzr up
Permission denied (publickey).
ConnectionReset reading response for 'BzrDir.open_2.1', retrying
Permission denied (publickey).
bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.

I have had no rercent changes to ssh keys or software.

I have for some weeks had many "connection resets", maybe caused by "the great firewall of Thailand", which I live behind.

I had no problem updating a week (7-12-2015) ago.

Kind regards
Preben Soeberg

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Preben S
Solved:
Last query:
Last reply:

This question was originally filed as bug #1525834.

Revision history for this message
Preben S (prsodk) said :
#1

Got this for a couple of days, trying to update inkscape:

 bzr up
Permission denied (publickey).
ConnectionReset reading response for 'BzrDir.open_2.1', retrying
Permission denied (publickey).
bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.

I have had no rercent changes to ssh keys or software.

I have for some weeks had many "connection resets", maybe caused by "the great firewall of Thailand", which I live behind.

I had no problem updating a week (7-12-2015) ago.

Kind regards
Preben Soeberg

Revision history for this message
William Grant (wgrant) said :
#2

What does 'ssh -v <email address hidden>' say?

Revision history for this message
Preben S (prsodk) said :
#3

OpenSSH_7.1p1, OpenSSL 1.0.2e 3 Dec 2015

Revision history for this message
William Grant (wgrant) said :
#4

That's only one line of many. We need the full output.

Revision history for this message
Preben S (prsodk) said :
#5

I gave you the full output of ssh -V.
ssh -v gives:
usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-E log_file] [-e escape_char]
           [-F configfile] [-I pkcs11] [-i identity_file]
           [-L address] [-l login_name] [-m mac_spec]
           [-O ctl_cmd] [-o option] [-p port]
           [-Q cipher | cipher-auth | mac | kex | key]
           [-R address] [-S ctl_path] [-W host:port]
           [-w local_tun[:remote_tun]] [user@]hostname [command]

Revision history for this message
William Grant (wgrant) said :
#6

As I said in comment #2, we need the output of 'ssh -v <email address hidden>', not 'ssh -V' or 'ssh -v'. There'll be a whole lot of lines, including some that start with 'debug1:'; we need the whole lot to work out what's going wrong for you.

Revision history for this message
Preben S (prsodk) said :
#7

Oh, I think I need new glasses :-;

 ssh -v <email address hidden>
OpenSSH_7.1p1, OpenSSL 1.0.2e 3 Dec 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to bazaar.launchpad.net [91.189.95.84] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/user/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/user/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/user/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/user/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/user/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/user/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/user/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
debug1: Remote protocol version 2.0, remote software version Twisted
debug1: no match: Twisted
debug1: Authenticating to bazaar.launchpad.net:22 as 'prsodk'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-sha2-256 none
debug1: kex: client->server aes128-ctr hmac-sha2-256 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<8192<8192) sent
debug1: got SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: got SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: ssh-rsa SHA256:dS2DmMhdbMsWaFP4HOF7A/ut73ozMR/gDL2Xxs01/7A
debug1: Host 'bazaar.launchpad.net' is known and matches the RSA host key.
debug1: Found key in /home/user/.ssh/known_hosts:1
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: /home/user/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa
debug1: Trying private key: /home/user/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).

Revision history for this message
Preben S (prsodk) said :
#8

Changes the key pair and can connect now