OpenWRT Failsafe-Modus SSH Port 22: Connection refused beheben

English Deutsch

Problem:

Sie versuchen, sich im Failsafe-Modus mit Ihrem OpenWRT-Router über SSH mit ssh 192.168.1.1 zu verbinden, aber Sie sehen diese Fehlermeldung:

output.txt
ssh: connect to host 192.168.1.1 port 22: Connection refused

Lösung

Überprüfen Sie zuerst, ob Sie die korrekte IP-Konfiguration haben:

Pingen Sie 192.168.1.1, um Ihre IP-Konfiguration zu überprüfen:

ping.sh
ping 192.168.1.1

Beispielausgabe:

ping_output.txt
uli@uli-computer:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=63 time=1.20 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=63 time=1.35 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=63 time=1.14 ms

Versuchen Sie dann, sich erneut über SSH zu verbinden:

ssh_connect.sh

Wenn Sie immer noch eine

output.txt
ssh: connect to host 192.168.1.1 port 22: Connection refused

erhalten, führen Sie eine alte OpenWRT-Version aus. SSH im Failsafe-Modus wird erst seit OpenWRT 15.05 unterstützt. Für ältere Versionen verwenden Sie telnet zum Verbinden:

telnet.sh
telnet 192.168.1.1

und Sie sollten eine Root-Shell sehen:

telnet_output.txt
elnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.

 === IMPORTANT ============================
    Use 'passwd' to set your login password
    this will disable telnet and enable SSH
 ------------------------------------------


BusyBox v1.19.4 (2013-03-14 11:28:31 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.

    _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
                    |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (12.09, r36088)
 -----------------------------------------------------
    * 1/4 oz Vodka      Pour all ingredients into mixing
    * 1/4 oz Gin        tin with ice, strain into glass.
    * 1/4 oz Amaretto
    * 1/4 oz Triple sec
    * 1/4 oz Peach schnapps
    * 1/4 oz Sour mix
    * 1 splash Cranberry juice
 -----------------------------------------------------
root@(none):/#

Check out similar posts by category: Networking