SSH always 'access denied'

Having some real issues with the SSH addon. I have reinstalled it and set my password. However, no matter what account I try to use using Putty on my PC, I am greeted with access denied.

The log just says:

[INFO] Setup password login
[INFO] Restore host keys
debug1: Set /proc/self/oom_score_adj from 0 to -1000

debug1: Bind to port 22 on 0.0.0.0.

Server listening on 0.0.0.0 port 22.

debug1: Bind to port 22 on ::.

Server listening on :: port 22.

debug1: Forked child 21.

debug1: Set /proc/self/oom_score_adj to 0

debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8

debug1: inetd sockets after dupping: 3, 3

Connection from 192.168.10.51 port 59694 on 172.30.33.0 port 22

debug1: Client protocol version 2.0; client software version PuTTY_Release_0.70

debug1: no match: PuTTY_Release_0.70

debug1: Local version string SSH-2.0-OpenSSH_7.7

debug1: permanently_set_uid: 22/22 [preauth]

debug1: ssh_sandbox_child: prctl(PR_SET_SECCOMP): Invalid argument [preauth]

debug1: list_hostkey_types: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]

debug1: SSH2_MSG_KEXINIT sent [preauth]

debug1: SSH2_MSG_KEXINIT received [preauth]

debug1: kex: algorithm: [email protected] [preauth]

debug1: kex: host key algorithm: ssh-ed25519 [preauth]

debug1: kex: client->server cipher: aes256-ctr MAC: hmac-sha2-256 compression: none [preauth]

debug1: kex: server->client cipher: aes256-ctr MAC: hmac-sha2-256 compression: none [preauth]

debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]

debug1: rekey after 4294967296 blocks [preauth]

debug1: SSH2_MSG_NEWKEYS sent [preauth]

debug1: expecting SSH2_MSG_NEWKEYS [preauth]

debug1: SSH2_MSG_NEWKEYS received [preauth]

debug1: rekey after 4294967296 blocks [preauth]

debug1: KEX done [preauth]

debug1: userauth-request for user hassio service ssh-connection method none [preauth]

debug1: attempt 0 failures 0 [preauth]

Invalid user hassio from 192.168.10.51 port 59694

debug1: Unable to open the btmp file /var/log/btmp: No such file or directory

debug1: userauth-request for user hassio service ssh-connection method keyboard-interactive [preauth]

debug1: attempt 1 failures 0 [preauth]

debug1: keyboard-interactive devs  [preauth]

debug1: auth2_challenge: user=hassio devs= [preauth]

debug1: kbdint_alloc: devices '' [preauth]

debug1: userauth-request for user hassio service ssh-connection method password [preauth]

debug1: attempt 2 failures 1 [preauth]

Could not get shadow information for NOUSER

Failed password for invalid user hassio from 192.168.10.51 port 59694 ssh2

debug1: Unable to open the btmp file /var/log/btmp: No such file or directory

Anyone have any ideas as I am pulling my hair out with this? Thanks

What’s your SSH config look like?

Mine is simply:

{
  "authorized_keys": [],
  "password": "raspberry"
}

Same:

{
  "authorized_keys": [],
  "password": "<redacted>"
}

Ahhh ignore me - being an utter idiot. Used the wrong username, was not using ‘root’! DOH!

3 Likes

The ‘SSH and web terminal’ addon does support a username now, however it cannot be upper case. It has to be all lowercase :

Cannot connect via ssh unless username with capital letters - it is misleading · Issue #395 · hassio-addons/addon-ssh (github.com)

2 Likes

Thank you that was my problem. It cannot to be UPPER CASE!!!