Home
[RDK Central Wiki]
CMF
[Code Releases]
I'm using broadcom reference board with docsis3.1. and facing connection timeout issue during the ssh the docsis gateway on host machine.
Also refererd the the below links to run dropbear in docsis gateway device.
How to enable SSH service to connect from LAN IP?
The dropbear service is running on both LAN IP and WAN IP address. Please find the details below which captured in the docsis gateway
root@Docsis-Gateway:~# ps | grep drop
8662 root 2112 S dropbear -R -E -a -r /tmp/.dropbear/dropcfg18617 -r /tmp/.dropbear/dropcfg28617 -p [192.168.29.154]:22 -p [10.0.0.1]:22 -P /var/run/dropbear.pid -B
18312 root 1640 S grep drop
root@Docsis-Gateway:~#
root@Docsis-Gateway:~# netstat -lntp | grep dropbear
tcp 0 0 10.0.0.1:22 0.0.0.0:* LISTEN 8662/dropbear
tcp 0 0 192.168.29.154:22 0.0.0.0:* LISTEN 8662/dropbear
root@Docsis-Gateway:~#
root@Docsis-Gateway:~# ifconfig brlan0
brlan0 Link encap:Ethernet HWaddr FC:4A:E9:E2:63:C7
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::fe4a:e9ff:fee2:63c7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16094 errors:0 dropped:1 overruns:0 frame:0
TX packets:852 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2693655 (2.5 MiB) TX bytes:141799 (138.4 KiB)
root@Docsis-Gateway:~#
root@Docsis-Gateway:~# cat /etc/version
20220312122718
root@Docsis-Gateway:~#
The connection timeout happened on both wan and lan ip.
spanidea166@spanidea166-ThinkPad-E15-Gen-2:~$ ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=5.38 ms
64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=3.37 ms
64 bytes from 10.0.0.1: icmp_seq=3 ttl=64 time=3.20 ms
^C
--- 10.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 3.197/3.980/5.379/0.991 ms
spanidea166@spanidea166-ThinkPad-E15-Gen-2:~$ ssh -vvv root@10.0.0.1
OpenSSH_8.2p1 Ubuntu-4ubuntu0.4, OpenSSL 1.1.1f 31 Mar 2020
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 *
debug2: resolve_canonicalize: hostname 10.0.0.1 is address
debug2: ssh_connect_direct
debug1: Connecting to 10.0.0.1 [10.0.0.1] port 22.
debug1: connect to address 10.0.0.1 port 22: Connection timed out
ssh: connect to host 10.0.0.1 port 22: Connection timed out
spanidea166@spanidea166-ThinkPad-E15-Gen-2:~$