I had sshtunnel package running fine on my Slate v3 (openwrt 19.07) but recently I’ve upgraded my Slate router firmware to 4.3.7 which uses openwrt 22.03 and sshtunnel fails to work. (nothing else is installed on this router as the upgrade removed everything) If I manually ssh from the terminal, it works but sshtunnel fails. syslog show this:
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug1: Reading configuration data /etc/ssh/ssh_config
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug2: resolve_canonicalize: hostname x.x.x.x is address
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/root/.ssh/known_hosts'
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/root/.ssh/known_hosts2'
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: ssh_connect_direct: entering
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug1: Connecting to x.x.x.x [x.x.x.x] port 22.
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: set_sock_tos: set socket 3 IP_TOS 0x48
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug1: Connection established.
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug1: identity file /root/.ssh/id_rsa type 0
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug1: identity file /root/.ssh/id_rsa-cert type -1
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug1: Local version string SSH-2.0-OpenSSH_8.9
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3ubuntu0.3
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3ubuntu0.3 pat OpenSSH* compat 0x04000000
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug2: fd 3 setting O_NONBLOCK
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug1: Authenticating to x.x.x.x:22 as 'someuser'
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: record_hostkey: found key type ED25519 in file /root/.ssh/known_hosts:1
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: record_hostkey: found key type RSA in file /root/.ssh/known_hosts:2
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: record_hostkey: found key type ECDSA in file /root/.ssh/known_hosts:3
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: load_hostkeys_file: loaded 3 keys from x.x.x.x
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: record_hostkey: found key type ED25519 in file /root/.ssh/known_hosts2:1
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: record_hostkey: found key type RSA in file /root/.ssh/known_hosts2:2
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: record_hostkey: found key type ECDSA in file /root/.ssh/known_hosts2:3
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: load_hostkeys_file: loaded 3 keys from x.x.x.x
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: order_hostkeyalgs: have matching best-preference key type ssh-ed25519-cert-v01@openssh.com, using HostkeyAlgorithms verbatim
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug3: send packet: type 20
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: debug1: SSH2_MSG_KEXINIT sent
Mon Aug 28 14:47:06 2023 daemon.err ssh[19254]: Connection to x.x.x.x port 22 timed out
I think the timed out error at the end is false. I get all those errors altogether there’s no waiting.
Any idea why it’s failing or why it working fine on the previous version?
below is my sshtunnel config
config server disney
option user someuser
option hostname x.x.x.x
option port 22
option retrydelay 5
option IdentityFile /root/.ssh/id_rsa
option LogLevel DEBUG3
option ServerAliveCountMax 30
option ServerAliveInterval 30
config tunnelD proxy
option server disney
option localaddress *
option localport 4055