Portál AbcLinuxu, 4. května 2025 22:58
Řešení dotazu:
ssh -vvv SERVER OpenSSH_7.9p1, OpenSSL 1.1.0i-fips 14 Aug 2018 debug1: Reading configuration data /home/XXX/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 25: Applying options for * debug2: resolving "SERVER" port 22 debug2: ssh_connect_direct debug1: Connecting to SERVER [10.6.1.16] port 22. debug1: Connection established. debug1: identity file /home/XXX/.ssh/id_rsa type 0 debug1: identity file /home/XXX/.ssh/id_rsa-cert type -1 debug1: identity file /home/XXX/.ssh/id_dsa type -1 debug1: identity file /home/XXX/.ssh/id_dsa-cert type -1 debug1: identity file /home/XXX/.ssh/id_ecdsa type -1 debug1: identity file /home/XXX/.ssh/id_ecdsa-cert type -1 debug1: identity file /home/XXX/.ssh/id_ed25519 type -1 debug1: identity file /home/XXX/.ssh/id_ed25519-cert type -1 debug1: identity file /home/XXX/.ssh/id_xmss type -1 debug1: identity file /home/XXX/.ssh/id_xmss-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.9 ssh_exchange_identification: read: Connection reset by peer ping SERVER PING SERVER.net1 (10.6.1.16) 56(84) bytes of data. 64 bytes from SERVER.net1 (10.6.1.16): icmp_seq=1 ttl=63 time=0.734 ms 64 bytes from SERVER.net1 (10.6.1.16): icmp_seq=2 ttl=64 time=0.358 ms 64 bytes from SERVER.net1 (10.6.1.16): icmp_seq=3 ttl=64 time=0.547 ms ^C --- SERVER.net1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2025ms rtt min/avg/max/mdev = 0.358/0.546/0.734/0.154 ms ssh -vvv SERVER OpenSSH_7.9p1, OpenSSL 1.1.0i-fips 14 Aug 2018 debug1: Reading configuration data /home/XXX/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 25: Applying options for * debug2: resolving "SERVER" port 22 debug2: ssh_connect_direct debug1: Connecting to SERVER [10.6.1.16] port 22. debug1: Connection established. debug1: identity file /home/XXX/.ssh/id_rsa type 0 debug1: identity file /home/XXX/.ssh/id_rsa-cert type -1 debug1: identity file /home/XXX/.ssh/id_dsa type -1 debug1: identity file /home/XXX/.ssh/id_dsa-cert type -1 debug1: identity file /home/XXX/.ssh/id_ecdsa type -1 debug1: identity file /home/XXX/.ssh/id_ecdsa-cert type -1 debug1: identity file /home/XXX/.ssh/id_ed25519 type -1 debug1: identity file /home/XXX/.ssh/id_ed25519-cert type -1 debug1: identity file /home/XXX/.ssh/id_xmss type -1 debug1: identity file /home/XXX/.ssh/id_xmss-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.9 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002 debug2: fd 3 setting O_NONBLOCK debug1: Authenticating to SERVER:22 as 'XXX' debug3: hostkeys_foreach: reading file "/dev/null" debug3: send packet: type 20 debug1: SSH2_MSG_KEXINIT sent debug3: receive packet: type 20 debug1: SSH2_MSG_KEXINIT received debug2: local client KEXINIT proposal ...
nc 10.6.1.16 22Mělo by ti to vrátit jeden řádek s verzí ssh serveru.
nc 10.6.1.16 22openSUSE Leap 15.1 (spojení nejde):
nc -v 10.6.1.16 22 Connection to 10.6.1.16 22 port [tcp/ssh] succeeded!Debian 11 (spojení v pořádku):
nc -v 10.6.1.16 22 SERVER [10.6.1.16] 22 (ssh) open SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7
arpwatch: bogon 10.6.1.160 10:fe:ed:07:c9:67 ens18Maxi, moc děkuji. Taková blbost a několik dní v čudu...
Connection to 10.6.1.16 22 port [tcp/ssh] succeeded!Ale, neco ti do toho spojeni leze, SSH to neni.. Co posloucha na serveru na portu 22 za sluzbu? Klidne si na tom serveru pust paralelne jeste tcpdump at mame jistotu, ze to neni nekde mezi.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.