Portál AbcLinuxu, 10. května 2025 03:10
Zdravim , nedari se mi prihlasit pres ssh . Nechal jsem si zridit na mou IP domenu 3 tridy a ssh server me nechce pustit .
Řešení dotazu:
Zadna chybova hlaska neni , nemuzu se na nej dostat . Pres nmap vsak ssh server bezi , stejne tak web atd .. . Jen , kdyz se chci pripojit tak me vykopne
ssh_exchange_identification: Connection closed by remote host
Stalo se tak hned co muj provider prevedl mou verejnou IP na domenu .
Ano , jak jsem psal web a jine funguji i pres nmap server ssh 22 bezi . A prihlaseni nefunguje jak pres ip tak pres domenu .
Zadna chybova hlaska neni , nemuzu se na nej dostatA co třeba sniff sítě?
$(which sshd) -Ddp 10222Zkouknout i .ssh/known_hosts.
Nevim , nedostanu se na nej . Pozadam o docasne vypnuti domeny . Chyba bude asi v
/etc/hosts.allow
root@raspberrypi:~# ssh -vvv xxxx@www.xxxx.cz
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 *
debug2: ssh_connect: needpriv 0
debug1: Connecting to www.xxxx.cz [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: Connection closed by remote host
root@raspberrypi:~# ssh -vvv xxxx@www.xxxx.cz
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 *
debug2: ssh_connect: needpriv 0
debug1: Connecting to www.xxxx.cz [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: Connection closed by remote host
Kez bych mel telnet Know host byla hned prvni moznost .
sshd
se to žádným způsobem nedozví a s tím problémem to nijak nesouvisí. Spíš to vypadá na nějaký problém s konfigurací sshd
, třeba že máte povolené spojení jen z vybraných IP adres a vaše IP adresa se změnila, nebo něco takového.
Budete se muset na ten server přihlásit přes terminál - VPS i hostingy obvykle mají KVM, pokud to je fyzický server bez vzdáleného přístupu, budete se k němu muset dostavit osobně.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.