Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    trying to use ssh and get Permission denied (publickey)

    Having been using this since about August, but off it a couple of months. I don't think I've created any new keys, As I'm kind of reluctant to do so. However I'm going back into the hospital for a few days and need the ssh functionality again to be operational. I've attempted to use it as before but get the following:

    I am suing a backport of "3.14-0.bpo.2-amd64" on this laptop, but the other machine gets updated everytime a new one comes out. I will attempt to see that this is updated and try again. I am not optimistic.

    $ ssh -l jkwilborn
    Debian GNU/Linux 7
    Permission denied (publickey).
    jack@debian-laptop:~$ ssh -vl jkwilborn
    OpenSSH_6.0p1 Debian-4+deb7u2, OpenSSL 1.0.1e 11 Feb 2013
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: /etc/ssh/ssh_config line 19: Applying options for *
    debug1: Connecting to [] port 13.
    debug1: Connection established.
    debug1: identity file /home/jack/.ssh/id_rsa type 1
    debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
    debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
    debug1: identity file /home/jack/.ssh/id_rsa-cert type -1
    debug1: identity file /home/jack/.ssh/id_dsa type -1
    debug1: identity file /home/jack/.ssh/id_dsa-cert type -1
    debug1: identity file /home/jack/.ssh/id_ecdsa type -1
    debug1: identity file /home/jack/.ssh/id_ecdsa-cert type -1
    debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Debian-4~bpo70+1
    debug1: match: OpenSSH_6.6.1p1 Debian-4~bpo70+1 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-ctr hmac-md5 none
    debug1: kex: client->server aes128-ctr hmac-md5 none
    debug1: sending SSH2_MSG_KEX_ECDH_INIT
    debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
    debug1: Server host key: ECDSA b2:85:d9:3d:1c:42:d2:53:eb:2c:a5:4b:47:7b:f8:3a
    debug1: Host '[]:13' is known and matches the ECDSA host key.
    debug1: Found key in /home/jack/.ssh/known_hosts:1
    debug1: ssh_ecdsa_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
    Debian GNU/Linux 7
    debug1: Authentications that can continue: publickey
    debug1: Next authentication method: publickey
    debug1: Offering RSA public key: /home/jack/.ssh/id_rsa
    debug1: Authentications that can continue: publickey
    debug1: Trying private key: /home/jack/.ssh/id_dsa
    debug1: Trying private key: /home/jack/.ssh/id_ecdsa
    debug1: No more authentication methods to try.
    Permission denied (publickey).
    I had used this many times while in the hospital previously, but now it's complaining. Reading the output seems to indicate that it has OKd the 'key' yet goes on into an area I don't seem to understand. Why did it say it was ok then attempt to continue other validations on the code?

    Any help or explanation of this would be great news, but I do need it!

    I can't think of anything that has changed as I used it when I returned home also. It has been shelved for less than three months!



  2. #2
    Linux Guru
    Join Date
    Dec 2013
    Victoria, B.C. Canada
    Check that /etc/ssh/sshd_config has "HostbasedAuthentication" set to yes.

  3. #3
    Gregm:... Thanks, that was set to no, so I changed it. I will test it out at a later time. I'm getting ready to get my knee replaced today..



  4. $spacer_open
  5. #4
    Linux Guru
    Join Date
    Dec 2013
    Victoria, B.C. Canada
    Good luck with the knee.

  6. #5
    Gregm: Thanks, I've survived the left one done on the 14 Aug, now this one. It should be the end though. I hope I don't lose any more joints!



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts