Mam dziwny problem na swoim systemie. Nie mogę się zalogować na niektóre urządzenia w sieci. Sytuacja wygląda tak, że np na ip 172.16.1.95 loguje się bez problemu czy to z kluczem czy też bez a np na 172.16.1.78 już niestety nie mogę. Adres nie jest dodany nigdzie do blokady,ping do urządzenia jest, nawet z innego serwera się mogę zalogować czy to nawet przez putty a z tego konkretnego nie moge.
Gdzie szukać przyczyny ?
Wersja debiana to
root@jaszczur:~# ssh admin@172.16.1.78 -p 60022
^C
root@jaszczur:~# ssh -v admin@172.16.1.78 -p 60022
OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t 3 May 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 172.16.1.78 [172.16.1.78] port 60022.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/identity type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/identity-cert type -1
debug1: identity file /root/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
root@jaszczur:~# ssh -v ubnt@172.16.1.111 -p 60022
OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t 3 May 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 172.16.1.111 [172.16.1.111] port 60022.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/identity type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/identity-cert type -1
debug1: identity file /root/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
XM.v5.5.4# grep -vE '^[[:space:]]*(#|$)' /etc/ssh/ssh_config
grep: /etc/ssh/ssh_config: No such file or directory
XM.v5.5.4# grep -vE '^[[:space:]]*(#|$)' ~/.ssh/config
grep: /etc/persistent/.ssh/config: No such file or directory
XM.v5.5.4#
Widzę, że zaszło nieporozumienie. Jak widzę, jaszczur to komputer kliencki i to zawartość jego plików konfiguracyjnych (/etc/ssh/ssh_config i ~/.ssh/config) chciałem zobaczyć. Interesuje mnie także konfiguracja usługi ssh na serwerze, z którym nie możesz się połączyć. Jeśli jest to system uniksowy (Linux, BSD, inny), to pokaż plik /etc/ssh/sshd_config (skorzystaj z podanej przez mnie składni grepa, aby wyciąć komentarze i puste linie), a jeżeli mikrotik lub inny system wbudowany, to spróbuj ją wyeksportować do pliku tekstowego lub pokaż zrzut ekranu.
XM.v5.5.4# grep -vE '^[[:space:]]*(#|$)' /etc/ssh/sshd_config
grep: /etc/ssh/sshd_config: No such file or directory
W mikrotiku nie wiem ze bardzo gdzie jest konfiguracja ssh. To raczej usługa która wbudowana, jest możliwość tylko zmiany portu.
Według mnie to coś jest z serwerem jaszczur ponieważ na te urządzenia które on sie nie chce zalogować ja normalnie przez putty czy z innej maszyny bez problemu się loguje