linuxnutzer
Captain
- Registriert
- Dez. 2011
- Beiträge
- 3.488
Ich habe ein bisschen rumgetrickst beim Netzwerk, aber sollte nichts verändert haben.
Ich wollte einen openwrt-Router flashen und die WLAN-Verbindung funktionierte nur, wenn ich das Ethernetkabel absteckte, aber ok der Router war für was ganz anderes konfiguriert. Hauptsache ich hatte ssh-Zugriff auf den Router.
Ich musste Zugang zu einem openwrt-Router in einem anderen Netzwerk erreichen. Das nur als Vorabinfo und es sollte keinen Einfluss haben, außer es hat was automatisch geändert.
Alle anderen ssh-Verbindungen funktionieren wie sie sollen.
Funktioniert grundsätzlich, auch wenn langsam.
Da hängt es also, im Vergleich funktioniert das:
Ich habe keine Ahnung was ich machen könnte um eine ssh Verbindung aufzuabuen.
Ich wollte einen openwrt-Router flashen und die WLAN-Verbindung funktionierte nur, wenn ich das Ethernetkabel absteckte, aber ok der Router war für was ganz anderes konfiguriert. Hauptsache ich hatte ssh-Zugriff auf den Router.
Ich musste Zugang zu einem openwrt-Router in einem anderen Netzwerk erreichen. Das nur als Vorabinfo und es sollte keinen Einfluss haben, außer es hat was automatisch geändert.
Alle anderen ssh-Verbindungen funktionieren wie sie sollen.
Code:
$ ping -c4 192.168.178.146
PING 192.168.178.146 (192.168.178.146) 56(84) bytes of data.
64 bytes from 192.168.178.146: icmp_seq=1 ttl=64 time=253 ms
64 bytes from 192.168.178.146: icmp_seq=2 ttl=64 time=214 ms
64 bytes from 192.168.178.146: icmp_seq=3 ttl=64 time=32.2 ms
64 bytes from 192.168.178.146: icmp_seq=4 ttl=64 time=56.9 ms
--- 192.168.178.146 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 32.177/139.052/252.829/95.873 ms
Funktioniert grundsätzlich, auch wenn langsam.
Code:
$ ssh -v 192.168.178.146
OpenSSH_9.6p1 Ubuntu-3ubuntu13.16, OpenSSL 3.0.13 30 Jan 2024
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to 192.168.178.146 [192.168.178.146] port 22.
debug1: Connection established.
debug1: identity file /home/ab/.ssh/id_rsa type 0
debug1: identity file /home/ab/.ssh/id_rsa-cert type -1
debug1: identity file /home/ab/.ssh/id_ecdsa type -1
debug1: identity file /home/ab/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/ab/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/ab/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/ab/.ssh/id_ed25519 type -1
debug1: identity file /home/ab/.ssh/id_ed25519-cert type -1
debug1: identity file /home/ab/.ssh/id_ed25519_sk type -1
debug1: identity file /home/ab/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/ab/.ssh/id_xmss type -1
debug1: identity file /home/ab/.ssh/id_xmss-cert type -1
debug1: identity file /home/ab/.ssh/id_dsa type -1
debug1: identity file /home/ab/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.16
debug1: Remote protocol version 2.0, remote software version OpenSSH_10.2p1 Ubuntu-2ubuntu3.2
debug1: compat_banner: match: OpenSSH_10.2p1 Ubuntu-2ubuntu3.2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.178.146:22 as 'ab'
debug1: load_hostkeys: fopen /home/ab/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
Da hängt es also, im Vergleich funktioniert das:
Code:
$ ssh -v root@192.168.178.14
OpenSSH_9.6p1 Ubuntu-3ubuntu13.16, OpenSSL 3.0.13 30 Jan 2024
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to 192.168.178.14 [192.168.178.14] port 22.
debug1: Connection established.
debug1: identity file /home/ab/.ssh/id_rsa type 0
debug1: identity file /home/ab/.ssh/id_rsa-cert type -1
debug1: identity file /home/ab/.ssh/id_ecdsa type -1
debug1: identity file /home/ab/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/ab/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/ab/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/ab/.ssh/id_ed25519 type -1
debug1: identity file /home/ab/.ssh/id_ed25519-cert type -1
debug1: identity file /home/ab/.ssh/id_ed25519_sk type -1
debug1: identity file /home/ab/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/ab/.ssh/id_xmss type -1
debug1: identity file /home/ab/.ssh/id_xmss-cert type -1
debug1: identity file /home/ab/.ssh/id_dsa type -1
debug1: identity file /home/ab/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.16
debug1: Remote protocol version 2.0, remote software version dropbear
debug1: compat_banner: no match: dropbear
debug1: Authenticating to 192.168.178.14:22 as 'root'
debug1: load_hostkeys: fopen /home/ab/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: sntrup761x25519-sha512@openssh.com
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:......
debug1: load_hostkeys: fopen /home/ab/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '192.168.178.14' is known and matches the ED25519 host key.
debug1: Found key in /home/ab/.ssh/known_hosts:46
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,rsa-sha2-256>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 1 keys
debug1: Will attempt key: /home/ab/.ssh/id_rsa RSA SHA256:VCbGdk0T3Y8ORrIfVZOg5QvQfpyO29nMrQtL/NvU9Eg agent
debug1: Will attempt key: /home/ab/.ssh/id_ecdsa
debug1: Will attempt key: /home/ab/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/ab/.ssh/id_ed25519
debug1: Will attempt key: /home/ab/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/ab/.ssh/id_xmss
debug1: Will attempt key: /home/ab/.ssh/id_dsa
debug1: Offering public key: /home/ab/.ssh/id_rsa RSA SHA256:VCbGdk0T3Y8ORrIfVZOg5QvQfpyO29nMrQtL/NvU9Eg agent
debug1: Server accepts key: /home/ab/.ssh/id_rsa RSA SHA256:VCbGdk0T3Y8ORrIfVZOg5QvQfpyO29nMrQtL/NvU9Eg agent
Authenticated to 192.168.178.14 ([192.168.178.14]:22) using "publickey".
debug1: channel 0: new session [client-session] (inactive timeout: 0)
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: Sending environment.
debug1: channel 0: setting env LC_ADDRESS = "C.UTF-8"
debug1: channel 0: setting env LC_NAME = "C.UTF-8"
debug1: channel 0: setting env LC_MONETARY = "C.UTF-8"
debug1: channel 0: setting env LC_PAPER = "C.UTF-8"
debug1: channel 0: setting env LANG = "de_DE.UTF-8"
debug1: channel 0: setting env LC_IDENTIFICATION = "C.UTF-8"
debug1: channel 0: setting env LC_TELEPHONE = "C.UTF-8"
debug1: channel 0: setting env LC_MEASUREMENT = "C.UTF-8"
debug1: channel 0: setting env LC_TIME = "C.UTF-8"
debug1: channel 0: setting env LC_NUMERIC = "C.UTF-8"
BusyBox v1.37.0 (2026-06-30 07:11:43 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 25.12.5, r33051-f5dae5ece4 Dave's Guitar
-----------------------------------------------------
Ich habe keine Ahnung was ich machen könnte um eine ssh Verbindung aufzuabuen.