Good morning/afternoon.
I am unable to connect via ssh to pi zero 2W.
When it connects, it hang and never gets a prompt. if i connect a monitor everything works locally.
I am attaching the log i get. I have already deleted the hosts files in the ssh directory.
When i ssh to the pi whit -v it hangs for a while here
[b]debug1: update_known_hosts: known hosts file /home/jorge/.ssh/known_hosts2 does not exist[/b]
after that nothing happends.
Can someone help me.
Thanks
ssh -v jorgeg73@192.168.30.113
OpenSSH_8.9p1 Ubuntu-3ubuntu0.11, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /home/jorge/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to 192.168.30.113 [192.168.30.113] port 22.
debug1: Connection established.
debug1: identity file /home/jorge/.ssh/id_rsa type -1
debug1: identity file /home/jorge/.ssh/id_rsa-cert type -1
debug1: identity file /home/jorge/.ssh/id_ecdsa type -1
debug1: identity file /home/jorge/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/jorge/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/jorge/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/jorge/.ssh/id_ed25519 type -1
debug1: identity file /home/jorge/.ssh/id_ed25519-cert type -1
debug1: identity file /home/jorge/.ssh/id_ed25519_sk type -1
debug1: identity file /home/jorge/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/jorge/.ssh/id_xmss type -1
debug1: identity file /home/jorge/.ssh/id_xmss-cert type -1
debug1: identity file /home/jorge/.ssh/id_dsa type -1
debug1: identity file /home/jorge/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.11
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.4p1 Debian-5+deb11u3
debug1: compat_banner: match: OpenSSH_8.4p1 Debian-5+deb11u3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.30.113:22 as 'jorgeg73'
debug1: load_hostkeys: fopen /home/jorge/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:nsJcnvSKwLm0F9NH641Kd77KtgcAUjXiPr8cM4nDrC8
debug1: load_hostkeys: fopen /home/jorge/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '192.168.30.113' is known and matches the ED25519 host key.
debug1: Found key in /home/jorge/.ssh/known_hosts:1
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 2 keys
debug1: Will attempt key: jorge@piscisHP RSA SHA256:OyCWucVLddDJHQHWvEXZ5L8lehtyPqnKav1CvzNY3Ug agent
debug1: Will attempt key: Gitea Host Key RSA SHA256:iqSq9iUd0l56/k1taMYmM9t6z+o4y9x+zb0ysJvKc7Q agent
debug1: Will attempt key: /home/jorge/.ssh/id_rsa
debug1: Will attempt key: /home/jorge/.ssh/id_ecdsa
debug1: Will attempt key: /home/jorge/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/jorge/.ssh/id_ed25519
debug1: Will attempt key: /home/jorge/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/jorge/.ssh/id_xmss
debug1: Will attempt key: /home/jorge/.ssh/id_dsa
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: jorge@piscisHP RSA SHA256:OyCWucVLddDJHQHWvEXZ5L8lehtyPqnKav1CvzNY3Ug agent
debug1: Server accepts key: jorge@piscisHP RSA SHA256:OyCWucVLddDJHQHWvEXZ5L8lehtyPqnKav1CvzNY3Ug agent
Authenticated to 192.168.30.113 ([192.168.30.113]:22) using "publickey".
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
[b]debug1: client_input_hostkeys: searching /home/jorge/.ssh/known_hosts for 192.168.30.113 / (none)
debug1: client_input_hostkeys: searching /home/jorge/.ssh/known_hosts2 for 192.168.30.113 / (none)[/b]
debug1: client_input_hostkeys: hostkeys file /home/jorge/.ssh/known_hosts2 does not exist
debug1: Remote: /home/jorgeg73/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /home/jorgeg73/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Sending environment.
debug1: channel 0: setting env LC_ADDRESS = "es_MX.UTF-8"
debug1: channel 0: setting env LC_NAME = "es_MX.UTF-8"
debug1: channel 0: setting env LC_MONETARY = "es_MX.UTF-8"
debug1: channel 0: setting env LC_PAPER = "es_MX.UTF-8"
debug1: channel 0: setting env LANG = "en_US.UTF-8"
debug1: channel 0: setting env LC_IDENTIFICATION = "es_MX.UTF-8"
debug1: channel 0: setting env LC_TELEPHONE = "es_MX.UTF-8"
debug1: channel 0: setting env LC_MEASUREMENT = "es_MX.UTF-8"
debug1: channel 0: setting env LC_NUMERIC = "es_MX.UTF-8"
debug1: client_global_hostkeys_private_confirm: server used untrusted RSA signature algorithm ssh-rsa for key 0, disregarding
[b]debug1: update_known_hosts: known hosts file /home/jorge/.ssh/known_hosts2 does not exist[/b]
Linux solar 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
I am unable to connect via ssh to pi zero 2W.
When it connects, it hang and never gets a prompt. if i connect a monitor everything works locally.
I am attaching the log i get. I have already deleted the hosts files in the ssh directory.
When i ssh to the pi whit -v it hangs for a while here
[b]debug1: update_known_hosts: known hosts file /home/jorge/.ssh/known_hosts2 does not exist[/b]
after that nothing happends.
Can someone help me.
Thanks
ssh -v jorgeg73@192.168.30.113
OpenSSH_8.9p1 Ubuntu-3ubuntu0.11, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /home/jorge/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to 192.168.30.113 [192.168.30.113] port 22.
debug1: Connection established.
debug1: identity file /home/jorge/.ssh/id_rsa type -1
debug1: identity file /home/jorge/.ssh/id_rsa-cert type -1
debug1: identity file /home/jorge/.ssh/id_ecdsa type -1
debug1: identity file /home/jorge/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/jorge/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/jorge/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/jorge/.ssh/id_ed25519 type -1
debug1: identity file /home/jorge/.ssh/id_ed25519-cert type -1
debug1: identity file /home/jorge/.ssh/id_ed25519_sk type -1
debug1: identity file /home/jorge/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/jorge/.ssh/id_xmss type -1
debug1: identity file /home/jorge/.ssh/id_xmss-cert type -1
debug1: identity file /home/jorge/.ssh/id_dsa type -1
debug1: identity file /home/jorge/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.11
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.4p1 Debian-5+deb11u3
debug1: compat_banner: match: OpenSSH_8.4p1 Debian-5+deb11u3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.30.113:22 as 'jorgeg73'
debug1: load_hostkeys: fopen /home/jorge/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:nsJcnvSKwLm0F9NH641Kd77KtgcAUjXiPr8cM4nDrC8
debug1: load_hostkeys: fopen /home/jorge/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '192.168.30.113' is known and matches the ED25519 host key.
debug1: Found key in /home/jorge/.ssh/known_hosts:1
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 2 keys
debug1: Will attempt key: jorge@piscisHP RSA SHA256:OyCWucVLddDJHQHWvEXZ5L8lehtyPqnKav1CvzNY3Ug agent
debug1: Will attempt key: Gitea Host Key RSA SHA256:iqSq9iUd0l56/k1taMYmM9t6z+o4y9x+zb0ysJvKc7Q agent
debug1: Will attempt key: /home/jorge/.ssh/id_rsa
debug1: Will attempt key: /home/jorge/.ssh/id_ecdsa
debug1: Will attempt key: /home/jorge/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/jorge/.ssh/id_ed25519
debug1: Will attempt key: /home/jorge/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/jorge/.ssh/id_xmss
debug1: Will attempt key: /home/jorge/.ssh/id_dsa
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: jorge@piscisHP RSA SHA256:OyCWucVLddDJHQHWvEXZ5L8lehtyPqnKav1CvzNY3Ug agent
debug1: Server accepts key: jorge@piscisHP RSA SHA256:OyCWucVLddDJHQHWvEXZ5L8lehtyPqnKav1CvzNY3Ug agent
Authenticated to 192.168.30.113 ([192.168.30.113]:22) using "publickey".
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
[b]debug1: client_input_hostkeys: searching /home/jorge/.ssh/known_hosts for 192.168.30.113 / (none)
debug1: client_input_hostkeys: searching /home/jorge/.ssh/known_hosts2 for 192.168.30.113 / (none)[/b]
debug1: client_input_hostkeys: hostkeys file /home/jorge/.ssh/known_hosts2 does not exist
debug1: Remote: /home/jorgeg73/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /home/jorgeg73/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Sending environment.
debug1: channel 0: setting env LC_ADDRESS = "es_MX.UTF-8"
debug1: channel 0: setting env LC_NAME = "es_MX.UTF-8"
debug1: channel 0: setting env LC_MONETARY = "es_MX.UTF-8"
debug1: channel 0: setting env LC_PAPER = "es_MX.UTF-8"
debug1: channel 0: setting env LANG = "en_US.UTF-8"
debug1: channel 0: setting env LC_IDENTIFICATION = "es_MX.UTF-8"
debug1: channel 0: setting env LC_TELEPHONE = "es_MX.UTF-8"
debug1: channel 0: setting env LC_MEASUREMENT = "es_MX.UTF-8"
debug1: channel 0: setting env LC_NUMERIC = "es_MX.UTF-8"
debug1: client_global_hostkeys_private_confirm: server used untrusted RSA signature algorithm ssh-rsa for key 0, disregarding
[b]debug1: update_known_hosts: known hosts file /home/jorge/.ssh/known_hosts2 does not exist[/b]
Linux solar 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Statistics: Posted by jorgeg73 — Tue Mar 04, 2025 5:52 am — Replies 3 — Views 35