lampra Posted January 17, 2019 Posted January 17, 2019 Hi, Updated to 5.70 next on Opi pc and after 2 days I cant login via ssh and i get: ssh_exchange_identification: Connection closed by remote host Some times ssh login just hangs. As I am not near the machine, is there any way to remotely reboot the Opi pc without ssh access? ps: I am sure that the machine is working as wireguard is working fine and I can ping the machine as well as telnet port 22!
martinayotte Posted January 17, 2019 Posted January 17, 2019 1 minute ago, lampra said: as well as telnet port 22! Euuh ! Telnet is usually on 23, and 22 is the SSH port ... Do you have messed some configs ?
lampra Posted January 17, 2019 Author Posted January 17, 2019 1 minute ago, martinayotte said: Telnet is usually on 23, and 22 is the SSH port .. No, i use telnet just to check that port 22 is open
martinayotte Posted January 17, 2019 Posted January 17, 2019 7 minutes ago, lampra said: is there any way to remotely reboot the Opi pc without ssh access? No ! Except if you've have install Webadmin or something similar ...
lampra Posted January 17, 2019 Author Posted January 17, 2019 1 minute ago, martinayotte said: No ! Except if you've have install Webadmin or something similar ... ok thank you. By the way, On a similar installation on cubietruck I see that kernel sysrq(-trigger) is not present. Do you know if this is the intended kernel build behaviour?
martinayotte Posted January 17, 2019 Posted January 17, 2019 18 minutes ago, lampra said: kernel sysrq(-trigger) is not present Do you mean /proc/sysrq-trigger ? This is some functionality to help kernel debugging ... Personally, I've never used it ... https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/sysrq.rst
sfx2000 Posted January 17, 2019 Posted January 17, 2019 1 hour ago, lampra said: Updated to 5.70 next on Opi pc and after 2 days I cant login via ssh and i get: ssh_exchange_identification: Connection closed by remote host Some times ssh login just hangs. As I am not near the machine, is there any way to remotely reboot the Opi pc without ssh access? Sort out the openssh problem - wonder if you're getting heavy bruteforce login attempts... the error you're getting suggests that openssh is actually running, but has run out of resources to service the connection request. ufw limiting can help here, or twirl the knobs on iptables directly... and it doesn't hurt to run OpenSSH on an alternate port other than 22
Recommended Posts