This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ssh: connect to host 192.168.0.53 port 22: Connection refused

Other Parts Discussed in Thread: TDA4VM

Hi,

I am using TDA4VM (J721E) board with SDK 09_00_00_00.

I have been using the board remotely, with ssh from my computer (as instructed in documentation https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-edgeai/TDA4VM/09_00_00/exports/docs/devices/TDA4VM/linux/getting_started.html ). But now I am getting "ssh: connect to host 192.168.0.53 port 22: Connection refused" error. What is the reason? I can ping to the board's IP but could not establish ssh session. Sometimes I am able to connect through ssh but it gets disconnected abruptly. It is a confusing behavior as it never happened in the past but it is happening now persistently.

P.S. I can ping from my computer to the board but when I do the same from terminal of board, it is random, sometimes ping is established but sometimes there is very large delay. I observed that whenever there is smooth ping from board to my system, I can establish ssh swiftly from my system to board and if delay comes in ping from board to my system the ssh session is exited.

Thanks and regards,
Sourabh

  • I ran a ping statistics test from my laptop to my board and vice versa.
    From my system to the board there is 0 % packet loss.
    From board to my system there is 19 % packet loss.
    I also tried to install openssh-server using apt but as linux distribution on the board is arago which is specific for TI boards I suppose. Kindly let me know about the RCA and if not then flashing the SD card again will work?

    Regards,
    Sourabh

  • Hi,

    Can you dump CPSW statistics, just before ping test and after certain pin count (ex: after 50 pings) and share the log with us.

    Best Regards,
    Sudheer

  • Hi Sudheer,

    Sharing the stats after and before ping test for 100 packets.

    NIC statistics:
         p0_rx_good_frames: 424
         p0_rx_broadcast_frames: 4
         p0_rx_multicast_frames: 42
         p0_rx_crc_errors: 0
         p0_rx_oversized_frames: 0
         p0_rx_undersized_frames: 0
         p0_ale_drop: 0
         p0_ale_overrun_drop: 0
         p0_rx_octets: 67898
         p0_tx_good_frames: 1399
         p0_tx_broadcast_frames: 966
         p0_tx_multicast_frames: 9
         p0_tx_octets: 126366
         p0_tx_64B_frames: 859
         p0_tx_65_to_127B_frames: 610
         p0_tx_128_to_255B_frames: 290
         p0_tx_256_to_511B_frames: 43
         p0_tx_512_to_1023B_frames: 14
         p0_tx_1024B_frames: 7
         p0_net_octets: 194264
         p0_rx_bottom_fifo_drop: 0
         p0_rx_port_mask_drop: 0
         p0_rx_top_fifo_drop: 0
         p0_ale_rate_limit_drop: 0
         p0_ale_vid_ingress_drop: 0
         p0_ale_da_eq_sa_drop: 0
         p0_ale_block_drop: 0
         p0_ale_secure_drop: 0
         p0_ale_auth_drop: 0
         p0_ale_unknown_ucast: 0
         p0_ale_unknown_ucast_bytes: 0
         p0_ale_unknown_mcast: 0
         p0_ale_unknown_mcast_bytes: 0
         p0_ale_unknown_bcast: 0
         p0_ale_unknown_bcast_bytes: 0
         p0_ale_pol_match: 0
         p0_ale_pol_match_red: 0
         p0_ale_pol_match_yellow: 0
         p0_ale_mcast_sa_drop: 0
         p0_ale_dual_vlan_drop: 0
         p0_ale_len_err_drop: 0
         p0_ale_ip_next_hdr_drop: 0
         p0_ale_ipv4_frag_drop: 0
         p0_tx_mem_protect_err: 0
         p0_tx_pri0: 0
         p0_tx_pri1: 0
         p0_tx_pri2: 0
         p0_tx_pri3: 0
         p0_tx_pri4: 0
         p0_tx_pri5: 0
         p0_tx_pri6: 0
         p0_tx_pri7: 0
         p0_tx_pri0_bcnt: 0
         p0_tx_pri1_bcnt: 0
         p0_tx_pri2_bcnt: 0
         p0_tx_pri3_bcnt: 0
         p0_tx_pri4_bcnt: 0
         p0_tx_pri5_bcnt: 0
         p0_tx_pri6_bcnt: 0
         p0_tx_pri7_bcnt: 0
         p0_tx_pri0_drop: 0
         p0_tx_pri1_drop: 0
         p0_tx_pri2_drop: 0
         p0_tx_pri3_drop: 0
         p0_tx_pri4_drop: 0
         p0_tx_pri5_drop: 0
         p0_tx_pri6_drop: 0
         p0_tx_pri7_drop: 0
         p0_tx_pri0_drop_bcnt: 0
         p0_tx_pri1_drop_bcnt: 0
         p0_tx_pri2_drop_bcnt: 0
         p0_tx_pri3_drop_bcnt: 0
         p0_tx_pri4_drop_bcnt: 0
         p0_tx_pri5_drop_bcnt: 0
         p0_tx_pri6_drop_bcnt: 0
         p0_tx_pri7_drop_bcnt: 0
         rx_good_frames: 1586
         rx_broadcast_frames: 966
         rx_multicast_frames: 196
         rx_pause_frames: 0
         rx_crc_errors: 0
         rx_align_code_errors: 0
         rx_oversized_frames: 0
         rx_jabber_frames: 0
         rx_undersized_frames: 0
         rx_fragments: 0
         ale_drop: 187
         ale_overrun_drop: 0
         rx_octets: 196001
         tx_good_frames: 424
         tx_broadcast_frames: 4
         tx_multicast_frames: 42
         tx_pause_frames: 0
         tx_deferred_frames: 0
         tx_collision_frames: 0
         tx_single_coll_frames: 0
         tx_mult_coll_frames: 0
         tx_excessive_collisions: 0
         tx_late_collisions: 0
         rx_ipg_error: 0
         tx_carrier_sense_errors: 0
         tx_octets: 67898
         tx_64B_frames: 859
         tx_65_to_127B_frames: 610
         tx_128_to_255B_frames: 373
         tx_256_to_511B_frames: 95
         tx_512_to_1023B_frames: 66
         tx_1024B_frames: 7
         net_octets: 263899
         rx_bottom_fifo_drop: 0
         rx_port_mask_drop: 187
         rx_top_fifo_drop: 0
         ale_rate_limit_drop: 0
         ale_vid_ingress_drop: 0
         ale_da_eq_sa_drop: 0
         ale_block_drop: 0
         ale_secure_drop: 0
         ale_auth_drop: 0
         ale_unknown_ucast: 424
         ale_unknown_ucast_bytes: 52386
         ale_unknown_mcast: 196
         ale_unknown_mcast_bytes: 70211
         ale_unknown_bcast: 966
         ale_unknown_bcast_bytes: 73404
         ale_pol_match: 0
         ale_pol_match_red: 0
         ale_pol_match_yellow: 0
         ale_mcast_sa_drop: 0
         ale_dual_vlan_drop: 0
         ale_len_err_drop: 0
         ale_ip_next_hdr_drop: 0
         ale_ipv4_frag_drop: 0
         iet_rx_assembly_err: 0
         iet_rx_assembly_ok: 0
         iet_rx_smd_err: 0
         iet_rx_frag: 0
         iet_tx_hold: 0
         iet_tx_frag: 0
         tx_mem_protect_err: 0
         tx_pri0: 424
         tx_pri1: 0
         tx_pri2: 0
         tx_pri3: 0
         tx_pri4: 0
         tx_pri5: 0
         tx_pri6: 0
         tx_pri7: 0
         tx_pri0_bcnt: 67898
         tx_pri1_bcnt: 0
         tx_pri2_bcnt: 0
         tx_pri3_bcnt: 0
         tx_pri4_bcnt: 0
         tx_pri5_bcnt: 0
         tx_pri6_bcnt: 0
         tx_pri7_bcnt: 0
         tx_pri0_drop: 0
         tx_pri1_drop: 0
         tx_pri2_drop: 0
         tx_pri3_drop: 0
         tx_pri4_drop: 0
         tx_pri5_drop: 0
         tx_pri6_drop: 0
         tx_pri7_drop: 0
         tx_pri0_drop_bcnt: 0
         tx_pri1_drop_bcnt: 0
         tx_pri2_drop_bcnt: 0
         tx_pri3_drop_bcnt: 0
         tx_pri4_drop_bcnt: 0
         tx_pri5_drop_bcnt: 0
         tx_pri6_drop_bcnt: 0
         tx_pri7_drop_bcnt: 0
    
    NIC statistics:
         p0_rx_good_frames: 75
         p0_rx_broadcast_frames: 4
         p0_rx_multicast_frames: 40
         p0_rx_crc_errors: 0
         p0_rx_oversized_frames: 0
         p0_rx_undersized_frames: 0
         p0_ale_drop: 0
         p0_ale_overrun_drop: 0
         p0_rx_octets: 8840
         p0_tx_good_frames: 507
         p0_tx_broadcast_frames: 476
         p0_tx_multicast_frames: 4
         p0_tx_octets: 38706
         p0_tx_64B_frames: 424
         p0_tx_65_to_127B_frames: 102
         p0_tx_128_to_255B_frames: 48
         p0_tx_256_to_511B_frames: 8
         p0_tx_512_to_1023B_frames: 0
         p0_tx_1024B_frames: 0
         p0_net_octets: 47546
         p0_rx_bottom_fifo_drop: 0
         p0_rx_port_mask_drop: 0
         p0_rx_top_fifo_drop: 0
         p0_ale_rate_limit_drop: 0
         p0_ale_vid_ingress_drop: 0
         p0_ale_da_eq_sa_drop: 0
         p0_ale_block_drop: 0
         p0_ale_secure_drop: 0
         p0_ale_auth_drop: 0
         p0_ale_unknown_ucast: 0
         p0_ale_unknown_ucast_bytes: 0
         p0_ale_unknown_mcast: 0
         p0_ale_unknown_mcast_bytes: 0
         p0_ale_unknown_bcast: 0
         p0_ale_unknown_bcast_bytes: 0
         p0_ale_pol_match: 0
         p0_ale_pol_match_red: 0
         p0_ale_pol_match_yellow: 0
         p0_ale_mcast_sa_drop: 0
         p0_ale_dual_vlan_drop: 0
         p0_ale_len_err_drop: 0
         p0_ale_ip_next_hdr_drop: 0
         p0_ale_ipv4_frag_drop: 0
         p0_tx_mem_protect_err: 0
         p0_tx_pri0: 0
         p0_tx_pri1: 0
         p0_tx_pri2: 0
         p0_tx_pri3: 0
         p0_tx_pri4: 0
         p0_tx_pri5: 0
         p0_tx_pri6: 0
         p0_tx_pri7: 0
         p0_tx_pri0_bcnt: 0
         p0_tx_pri1_bcnt: 0
         p0_tx_pri2_bcnt: 0
         p0_tx_pri3_bcnt: 0
         p0_tx_pri4_bcnt: 0
         p0_tx_pri5_bcnt: 0
         p0_tx_pri6_bcnt: 0
         p0_tx_pri7_bcnt: 0
         p0_tx_pri0_drop: 0
         p0_tx_pri1_drop: 0
         p0_tx_pri2_drop: 0
         p0_tx_pri3_drop: 0
         p0_tx_pri4_drop: 0
         p0_tx_pri5_drop: 0
         p0_tx_pri6_drop: 0
         p0_tx_pri7_drop: 0
         p0_tx_pri0_drop_bcnt: 0
         p0_tx_pri1_drop_bcnt: 0
         p0_tx_pri2_drop_bcnt: 0
         p0_tx_pri3_drop_bcnt: 0
         p0_tx_pri4_drop_bcnt: 0
         p0_tx_pri5_drop_bcnt: 0
         p0_tx_pri6_drop_bcnt: 0
         p0_tx_pri7_drop_bcnt: 0
         rx_good_frames: 590
         rx_broadcast_frames: 476
         rx_multicast_frames: 87
         rx_pause_frames: 0
         rx_crc_errors: 0
         rx_align_code_errors: 0
         rx_oversized_frames: 0
         rx_jabber_frames: 0
         rx_undersized_frames: 0
         rx_fragments: 0
         ale_drop: 83
         ale_overrun_drop: 0
         rx_octets: 70149
         tx_good_frames: 75
         tx_broadcast_frames: 4
         tx_multicast_frames: 40
         tx_pause_frames: 0
         tx_deferred_frames: 0
         tx_collision_frames: 0
         tx_single_coll_frames: 0
         tx_mult_coll_frames: 0
         tx_excessive_collisions: 0
         tx_late_collisions: 0
         rx_ipg_error: 0
         tx_carrier_sense_errors: 0
         tx_octets: 8840
         tx_64B_frames: 424
         tx_65_to_127B_frames: 102
         tx_128_to_255B_frames: 83
         tx_256_to_511B_frames: 32
         tx_512_to_1023B_frames: 24
         tx_1024B_frames: 0
         net_octets: 78989
         rx_bottom_fifo_drop: 0
         rx_port_mask_drop: 83
         rx_top_fifo_drop: 0
         ale_rate_limit_drop: 0
         ale_vid_ingress_drop: 0
         ale_da_eq_sa_drop: 0
         ale_block_drop: 0
         ale_secure_drop: 0
         ale_auth_drop: 0
         ale_unknown_ucast: 27
         ale_unknown_ucast_bytes: 3114
         ale_unknown_mcast: 87
         ale_unknown_mcast_bytes: 31699
         ale_unknown_bcast: 476
         ale_unknown_bcast_bytes: 35336
         ale_pol_match: 0
         ale_pol_match_red: 0
         ale_pol_match_yellow: 0
         ale_mcast_sa_drop: 0
         ale_dual_vlan_drop: 0
         ale_len_err_drop: 0
         ale_ip_next_hdr_drop: 0
         ale_ipv4_frag_drop: 0
         iet_rx_assembly_err: 0
         iet_rx_assembly_ok: 0
         iet_rx_smd_err: 0
         iet_rx_frag: 0
         iet_tx_hold: 0
         iet_tx_frag: 0
         tx_mem_protect_err: 0
         tx_pri0: 75
         tx_pri1: 0
         tx_pri2: 0
         tx_pri3: 0
         tx_pri4: 0
         tx_pri5: 0
         tx_pri6: 0
         tx_pri7: 0
         tx_pri0_bcnt: 8840
         tx_pri1_bcnt: 0
         tx_pri2_bcnt: 0
         tx_pri3_bcnt: 0
         tx_pri4_bcnt: 0
         tx_pri5_bcnt: 0
         tx_pri6_bcnt: 0
         tx_pri7_bcnt: 0
         tx_pri0_drop: 0
         tx_pri1_drop: 0
         tx_pri2_drop: 0
         tx_pri3_drop: 0
         tx_pri4_drop: 0
         tx_pri5_drop: 0
         tx_pri6_drop: 0
         tx_pri7_drop: 0
         tx_pri0_drop_bcnt: 0
         tx_pri1_drop_bcnt: 0
         tx_pri2_drop_bcnt: 0
         tx_pri3_drop_bcnt: 0
         tx_pri4_drop_bcnt: 0
         tx_pri5_drop_bcnt: 0
         tx_pri6_drop_bcnt: 0
         tx_pri7_drop_bcnt: 0
    

    There was around 13% packet loss this time.

    Regards,
    Sourabh

  • Hi Sourabh,

    Sudheer is out of office due to a TI regional holiday, and will follow-up once he is back in office later this week.

    regards

    Suman

  • Hi Suman,

    Thanks for the update. Awaiting the solution as I need to deploy and test some of the compiled models on the board.

    Regards,
    Sourabh

  • Hi Sourabh,

    1. Can you please tell me about your system. Are there any firewalls in place?
    2. Can you tell me if your TDA4VM is idle or is there something running n the board when the issue is observed.
    3. Can you please recheck the connection between the system and the board if there is some loose connection between them. Is the connection direct or is it coming via a router?

    Regards,
    Tanmay

  • Hi Tanmay,

    1. No it is inactive.
    2. Nothing is running on the board. I fire it up and then try to connect in via ssh or sftp (which I used to do earlier too and it used to establish uninterrupted connection)
    3. I have been establishing the connection to the board via a router.

    Regards,
    Sourabh

  • Hi Saurabh,

    I have been establishing the connection to the board via a router.

    In this case, were there any changes in the router settings? Like forwarding with some VLAN or something else as well. According to the statistics dump, there was ~10% packet drop observed due to port mask. What this means is that for almost 10% of the rx packets, the packets which arrived were not supposed to be forwarded to the host port according to CPSW's routing rules.

    Is it possible for you to check the connection between two boards instead of board and system?

    Regards,
    Tanmay

  • Hi Tanmay,

    Thanks for replying. I found the issue. The issue was with our internal network connection I suppose. There is specific IP, if that IP gets assigned to the board then there is packet loss issue resulting in unreliable ssh session (probably it is getting assigned to multiple devices). For other IP the ssh tunneling is working as expected. Thanks for your support.

    Regards,
    Sourabh