semaphoreui / semaphore

Modern UI and powerful API for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools.
https://semaphoreui.com
MIT License
10.65k stars 1.07k forks source link

Problem: After updating to v2.10.2: "Permission denied (publickey,password)" #2098

Closed johnyb0y closed 5 months ago

johnyb0y commented 5 months ago

Issue

Hello everyone, this is just to let you know that I ran into this issue after updating to v2.10.2:

Please let me know if there's anything else I can do to debug this.

Thank you!

Impact

Ansible (task execution)

Installation method

Docker

Database

Postgres

Browser

No response

Semaphore Version

v2.10.2-cc91501-1718257299

Ansible Version

No response

Logs & errors


 9:23:43 AM
PLAY [Update AdGuardHome] ******************************************************
9:23:44 AM
9:23:44 AM
TASK [Go to the folder and execute command] ************************************
9:23:44 AM
task path: /semaphore-data/repository/adguard_update.yml:6
9:23:44 AM
<192.168.1.3> ESTABLISH SSH CONNECTION FOR USER: johnyb0y
9:23:44 AM
<192.168.1.3> SSH: EXEC sshpass -d12 ssh -vvv '-o BatchMode=yes' -o StrictHostKeyChecking=no -o 'User="johnyb0y"' -o ConnectTimeout=10 192.168.1.3 '/bin/sh -c '"'"'echo ~johnyb0y && sleep 0'"'"''
9:23:44 AM
<192.168.1.3> (255, b'', b"OpenSSH_9.6p1, OpenSSL 3.1.5 30 Jan 2024\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 22: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug2: resolve_canonicalize: hostname 192.168.1.3 is address\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/semaphore/.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/semaphore/.ssh/known_hosts2'\r\ndebug3: channel_clear_timeouts: clearing\r\ndebug3: ssh_connect_direct: entering\r\ndebug1: Connecting to 192.168.1.3 [192.168.1.3] port 22.\r\ndebug3: set_sock_tos: set socket 3 IP_TOS 0x48\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: identity file /home/semaphore/.ssh/id_rsa type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_rsa-cert type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_ecdsa type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_ecdsa-cert type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_ecdsa_sk type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_ecdsa_sk-cert type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_ed25519 type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_ed25519-cert type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_ed25519_sk type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_ed25519_sk-cert type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_xmss type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_xmss-cert type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_dsa type -1\r\ndebug1: identity file /home/semaphore/.ssh/id_dsa-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_9.6\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_9.2p1 Debian-2+deb12u2\r\ndebug1: compat_banner: match: OpenSSH_9.2p1 Debian-2+deb12u2 pat OpenSSH* compat 0x04000000\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: Authenticating to 192.168.1.3:22 as 'johnyb0y'\r\ndebug1: load_hostkeys: fopen /home/semaphore/.ssh/known_hosts2: No such file or directory\r\ndebug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory\r\ndebug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory\r\ndebug3: order_hostkeyalgs: no algorithms matched; accept original\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-v00@openssh.com\r\ndebug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256\r\ndebug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,zlib@openssh.com,zlib\r\ndebug2: compression stoc: none,zlib@openssh.com,zlib\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,kex-strict-s-v00@openssh.com\r\ndebug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,zlib@openssh.com\r\ndebug2: compression stoc: none,zlib@openssh.com\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug3: kex_choose_conf: will use strict KEX ordering\r\ndebug1: kex: algorithm: sntrup761x25519-sha512@openssh.com\r\ndebug1: kex: host key algorithm: ssh-ed25519\r\ndebug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC:  compression: none\r\ndebug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC:  compression: none\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: SSH2_MSG_KEX_ECDH_REPLY received\r\ndebug1: Server host key: ssh-ed25519 SHA256:SMEjFZnSYTxigIF3xLXu+LmejhYzLSNG+W1yxizUyiI\r\ndebug1: load_hostkeys: fopen /home/semaphore/.ssh/known_hosts2: No such file or directory\r\ndebug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory\r\ndebug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory\r\nWarning: Permanently added '192.168.1.3' (ED25519) to the list of known hosts.\r\ndebug1: check_host_key: hostkey not known or explicitly trusted: disabling UpdateHostkeys\r\ndebug3: send packet: type 21\r\ndebug1: ssh_packet_send2_wrapped: resetting send seqnr 3\r\ndebug2: ssh_set_newkeys: mode 1\r\ndebug1: rekey out after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: ssh_packet_read_poll2: resetting read seqnr 3\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: ssh_set_newkeys: mode 0\r\ndebug1: rekey in after 134217728 blocks\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug3: kex_input_ext_info: extension server-sig-algs\r\ndebug1: kex_ext_info_client_parse: server-sig-algs=\r\ndebug3: kex_input_ext_info: extension publickey-hostbound@openssh.com\r\ndebug1: kex_ext_info_check_ver: publickey-hostbound@openssh.com=<0>\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,password\r\ndebug3: start over, passed a different list publickey,password\r\ndebug3: preferred publickey\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: \r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Will attempt key: /home/semaphore/.ssh/id_rsa \r\ndebug1: Will attempt key: /home/semaphore/.ssh/id_ecdsa \r\ndebug1: Will attempt key: /home/semaphore/.ssh/id_ecdsa_sk \r\ndebug1: Will attempt key: /home/semaphore/.ssh/id_ed25519 \r\ndebug1: Will attempt key: /home/semaphore/.ssh/id_ed25519_sk \r\ndebug1: Will attempt key: /home/semaphore/.ssh/id_xmss \r\ndebug1: Will attempt key: /home/semaphore/.ssh/id_dsa \r\ndebug2: pubkey_prepare: done\r\ndebug1: Trying private key: /home/semaphore/.ssh/id_rsa\r\ndebug3: no such identity: /home/semaphore/.ssh/id_rsa: No such file or directory\r\ndebug1: Trying private key: /home/semaphore/.ssh/id_ecdsa\r\ndebug3: no such identity: /home/semaphore/.ssh/id_ecdsa: No such file or directory\r\ndebug1: Trying private key: /home/semaphore/.ssh/id_ecdsa_sk\r\ndebug3: no such identity: /home/semaphore/.ssh/id_ecdsa_sk: No such file or directory\r\ndebug1: Trying private key: /home/semaphore/.ssh/id_ed25519\r\ndebug3: no such identity: /home/semaphore/.ssh/id_ed25519: No such file or directory\r\ndebug1: Trying private key: /home/semaphore/.ssh/id_ed25519_sk\r\ndebug3: no such identity: /home/semaphore/.ssh/id_ed25519_sk: No such file or directory\r\ndebug1: Trying private key: /home/semaphore/.ssh/id_xmss\r\ndebug3: no such identity: /home/semaphore/.ssh/id_xmss: No such file or directory\r\ndebug1: Trying private key: /home/semaphore/.ssh/id_dsa\r\ndebug3: no such identity: /home/semaphore/.ssh/id_dsa: No such file or directory\r\ndebug2: we did not send a packet, disable method\r\ndebug1: No more authentication methods to try.\r\njohnyb0y@192.168.1.3: Permission denied (publickey,password).\r\n")
9:23:44 AM
fatal: [192.168.1.3]: UNREACHABLE! => changed=false 
9:23:44 AM
  msg: |-
9:23:44 AM
    Failed to connect to the host via ssh: OpenSSH_9.6p1, OpenSSL 3.1.5 30 Jan 2024
9:23:44 AM
    debug1: Reading configuration data /etc/ssh/ssh_config
9:23:44 AM
    debug1: /etc/ssh/ssh_config line 22: include /etc/ssh/ssh_config.d/*.conf matched no files
9:23:44 AM
    debug2: resolve_canonicalize: hostname 192.168.1.3 is address
9:23:44 AM
    debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/semaphore/.ssh/known_hosts'
9:23:44 AM
    debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/semaphore/.ssh/known_hosts2'
9:23:44 AM
    debug3: channel_clear_timeouts: clearing
9:23:44 AM
    debug3: ssh_connect_direct: entering
9:23:44 AM
    debug1: Connecting to 192.168.1.3 [192.168.1.3] port 22.
9:23:44 AM
    debug3: set_sock_tos: set socket 3 IP_TOS 0x48
9:23:44 AM
    debug2: fd 3 setting O_NONBLOCK
9:23:44 AM
    debug1: fd 3 clearing O_NONBLOCK
9:23:44 AM
    debug1: Connection established.
9:23:44 AM
    debug3: timeout: 10000 ms remain after connect
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_rsa type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_rsa-cert type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_ecdsa type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_ecdsa-cert type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_ecdsa_sk type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_ecdsa_sk-cert type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_ed25519 type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_ed25519-cert type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_ed25519_sk type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_ed25519_sk-cert type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_xmss type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_xmss-cert type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_dsa type -1
9:23:44 AM
    debug1: identity file /home/semaphore/.ssh/id_dsa-cert type -1
9:23:44 AM
    debug1: Local version string SSH-2.0-OpenSSH_9.6
9:23:44 AM
    debug1: Remote protocol version 2.0, remote software version OpenSSH_9.2p1 Debian-2+deb12u2
9:23:44 AM
    debug1: compat_banner: match: OpenSSH_9.2p1 Debian-2+deb12u2 pat OpenSSH* compat 0x04000000
9:23:44 AM
    debug2: fd 3 setting O_NONBLOCK
9:23:44 AM
    debug1: Authenticating to 192.168.1.3:22 as 'johnyb0y'
9:23:44 AM
    debug1: load_hostkeys: fopen /home/semaphore/.ssh/known_hosts2: No such file or directory
9:23:44 AM
    debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
9:23:44 AM
    debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
9:23:44 AM
    debug3: order_hostkeyalgs: no algorithms matched; accept original
9:23:44 AM
    debug3: send packet: type 20
9:23:44 AM
    debug1: SSH2_MSG_KEXINIT sent
9:23:44 AM
    debug3: receive packet: type 20
9:23:44 AM
    debug1: SSH2_MSG_KEXINIT received
9:23:44 AM
    debug2: local client KEXINIT proposal
9:23:44 AM
    debug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-v00@openssh.com
9:23:44 AM
    debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
9:23:44 AM
    debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
9:23:44 AM
    debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
9:23:44 AM
    debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
9:23:44 AM
    debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
9:23:44 AM
    debug2: compression ctos: none,zlib@openssh.com,zlib
9:23:44 AM
    debug2: compression stoc: none,zlib@openssh.com,zlib
9:23:44 AM
    debug2: languages ctos:
9:23:44 AM
    debug2: languages stoc:
9:23:44 AM
    debug2: first_kex_follows 0
9:23:44 AM
    debug2: reserved 0
9:23:44 AM
    debug2: peer server KEXINIT proposal
9:23:44 AM
    debug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,kex-strict-s-v00@openssh.com
9:23:44 AM
    debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
9:23:44 AM
    debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
9:23:44 AM
    debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
9:23:44 AM
    debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
9:23:44 AM
    debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
9:23:44 AM
    debug2: compression ctos: none,zlib@openssh.com
9:23:44 AM
    debug2: compression stoc: none,zlib@openssh.com
9:23:44 AM
    debug2: languages ctos:
9:23:44 AM
    debug2: languages stoc:
9:23:44 AM
    debug2: first_kex_follows 0
9:23:44 AM
    debug2: reserved 0
9:23:44 AM
    debug3: kex_choose_conf: will use strict KEX ordering
9:23:44 AM
    debug1: kex: algorithm: sntrup761x25519-sha512@openssh.com
9:23:44 AM
    debug1: kex: host key algorithm: ssh-ed25519
9:23:44 AM
    debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC:  compression: none
9:23:44 AM
    debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC:  compression: none
9:23:44 AM
    debug3: send packet: type 30
9:23:44 AM
    debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
9:23:44 AM
    debug3: receive packet: type 31
9:23:44 AM
    debug1: SSH2_MSG_KEX_ECDH_REPLY received
9:23:44 AM
    debug1: Server host key: ssh-ed25519 SHA256:SMEjFZnSYTxigIF3xLXu+LmejhYzLSNG+W1yxizUyiI
9:23:44 AM
    debug1: load_hostkeys: fopen /home/semaphore/.ssh/known_hosts2: No such file or directory
9:23:44 AM
    debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
9:23:44 AM
    debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
9:23:44 AM
    Warning: Permanently added '192.168.1.3' (ED25519) to the list of known hosts.
9:23:44 AM
    debug1: check_host_key: hostkey not known or explicitly trusted: disabling UpdateHostkeys
9:23:44 AM
    debug3: send packet: type 21
9:23:44 AM
    debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
9:23:44 AM
    debug2: ssh_set_newkeys: mode 1
9:23:44 AM
    debug1: rekey out after 134217728 blocks
9:23:44 AM
    debug1: SSH2_MSG_NEWKEYS sent
9:23:44 AM
    debug1: expecting SSH2_MSG_NEWKEYS
9:23:44 AM
    debug3: receive packet: type 21
9:23:44 AM
    debug1: ssh_packet_read_poll2: resetting read seqnr 3
9:23:44 AM
    debug1: SSH2_MSG_NEWKEYS received
9:23:44 AM
    debug2: ssh_set_newkeys: mode 0
9:23:44 AM
    debug1: rekey in after 134217728 blocks
9:23:44 AM
    debug3: send packet: type 5
9:23:44 AM
    debug3: receive packet: type 7
9:23:44 AM
    debug1: SSH2_MSG_EXT_INFO received
9:23:44 AM
    debug3: kex_input_ext_info: extension server-sig-algs
9:23:44 AM
    debug1: kex_ext_info_client_parse: server-sig-algs=
9:23:44 AM
    debug3: kex_input_ext_info: extension publickey-hostbound@openssh.com
9:23:44 AM
    debug1: kex_ext_info_check_ver: publickey-hostbound@openssh.com=<0>
9:23:44 AM
    debug3: receive packet: type 6
9:23:44 AM
    debug2: service_accept: ssh-userauth
9:23:44 AM
    debug1: SSH2_MSG_SERVICE_ACCEPT received
9:23:44 AM
    debug3: send packet: type 50
9:23:44 AM
    debug3: receive packet: type 51
9:23:44 AM
    debug1: Authentications that can continue: publickey,password
9:23:44 AM
    debug3: start over, passed a different list publickey,password
9:23:44 AM
    debug3: preferred publickey
9:23:44 AM
    debug3: authmethod_lookup publickey
9:23:44 AM
    debug3: remaining preferred:
9:23:44 AM
    debug3: authmethod_is_enabled publickey
9:23:44 AM
    debug1: Next authentication method: publickey
9:23:44 AM
    debug1: Will attempt key: /home/semaphore/.ssh/id_rsa
9:23:44 AM
    debug1: Will attempt key: /home/semaphore/.ssh/id_ecdsa
9:23:44 AM
    debug1: Will attempt key: /home/semaphore/.ssh/id_ecdsa_sk
9:23:44 AM
    debug1: Will attempt key: /home/semaphore/.ssh/id_ed25519
9:23:44 AM
    debug1: Will attempt key: /home/semaphore/.ssh/id_ed25519_sk
9:23:44 AM
    debug1: Will attempt key: /home/semaphore/.ssh/id_xmss
9:23:44 AM
    debug1: Will attempt key: /home/semaphore/.ssh/id_dsa
9:23:44 AM
    debug2: pubkey_prepare: done
9:23:44 AM
    debug1: Trying private key: /home/semaphore/.ssh/id_rsa
9:23:44 AM
    debug3: no such identity: /home/semaphore/.ssh/id_rsa: No such file or directory
9:23:44 AM
    debug1: Trying private key: /home/semaphore/.ssh/id_ecdsa
9:23:44 AM
    debug3: no such identity: /home/semaphore/.ssh/id_ecdsa: No such file or directory
9:23:44 AM
    debug1: Trying private key: /home/semaphore/.ssh/id_ecdsa_sk
9:23:44 AM
    debug3: no such identity: /home/semaphore/.ssh/id_ecdsa_sk: No such file or directory
9:23:44 AM
    debug1: Trying private key: /home/semaphore/.ssh/id_ed25519
9:23:44 AM
    debug3: no such identity: /home/semaphore/.ssh/id_ed25519: No such file or directory
9:23:44 AM
    debug1: Trying private key: /home/semaphore/.ssh/id_ed25519_sk
9:23:44 AM
    debug3: no such identity: /home/semaphore/.ssh/id_ed25519_sk: No such file or directory
9:23:44 AM
    debug1: Trying private key: /home/semaphore/.ssh/id_xmss
9:23:44 AM
    debug3: no such identity: /home/semaphore/.ssh/id_xmss: No such file or directory
9:23:44 AM
    debug1: Trying private key: /home/semaphore/.ssh/id_dsa
9:23:44 AM
    debug3: no such identity: /home/semaphore/.ssh/id_dsa: No such file or directory
9:23:44 AM
    debug2: we did not send a packet, disable method
9:23:44 AM
    debug1: No more authentication methods to try.
9:23:44 AM
    johnyb0y@192.168.1.3: Permission denied (publickey,password).
9:23:44 AM
  unreachable: true

Manual installation - system information

No response

Configuration

No response

Additional information

No response

johnyb0y commented 5 months ago

Something else I've noticed now: In my Environment "Global" I'm seeing this: image

I can then click on ANSIBLE_HOST_KEY_CHECKING=FALSE, which removes the Strikethrough. After saving it stays that way. image

But I'm still encountering the same issue. Thank you.

zzecool commented 5 months ago

I have the exact same problem,

if the server is using password ( the invertory is set properly as password ) ssh connection tries to connect using public key instead of password and fails as unreachable.

nullobsidian commented 5 months ago
Screenshot 2024-06-15 at 9 20 34 AM

The same happens when using ansible_ssh_pass or ansible_password as an argument and variable. Nothings is working

Goldenflamer commented 5 months ago

Same issue here

umiseaz commented 5 months ago

ya i same setup and encouter same problem too

9:04:18 AM TASK [Gathering Facts] ***** 9:04:20 AM fatal: [xxx]: UNREACHABLE! => changed=false 9:04:20 AM msg: 'Failed to connect to the host via ssh: xxx@xxx: Permission denied (publickey,password).' 9:04:20 AM unreachable: true

umiseaz commented 5 months ago

ya i same setup and encouter same problem too

9:04:18 AM TASK [Gathering Facts] ***** 9:04:20 AM fatal: [xxx]: UNREACHABLE! => changed=false 9:04:20 AM msg: 'Failed to connect to the host via ssh: xxx@xxx: Permission denied (publickey,password).' 9:04:20 AM unreachable: true

i downgrade back to v2.9.112 and it's back to normal

fiftin commented 5 months ago

Hi @johnyb0y , @umiseaz please try latest beta (2.10.5-beta).

johnyb0y commented 5 months ago

Hi @fiftin, thanks for your reply. Tested with 2.10.5-beta: image

Sadly, no change:

 12:57:32 PM
fatal: [192.168.1.6]: UNREACHABLE! => changed=false 
12:57:32 PM
  msg: 'Failed to connect to the host via ssh: johnyb0y@192.168.1.6: Permission denied (publickey,password).'
12:57:32 PM
  unreachable: true
Menschomat commented 5 months ago

Same here

fiftin commented 5 months ago

@johnyb0y , @Menschomat thank you! Reproduced the issue, fixing.

johnyb0y commented 5 months ago

@johnyb0y , @Menschomat thank you! Reproduced the issue, fixing.

@fiftin Confirmed working again with v2.10.6-beta. Thank you!

Goldenflamer commented 4 months ago

It is fixed in v2.10.6-beta but the issue reappears in v2.10.7

johnyb0y commented 4 months ago

@Goldenflamer Works fine for me on 2.10.7:

image

 1:09:39 PM
PLAY RECAP *********************************************************************
1:09:39 PM
192.168.1.6                : ok=6    changed=1    unreachable=0    failed=0
Goldenflamer commented 4 months ago

ah I think I didn't delete the old latest tag image, my bad sorry