Terminated with exit code: 255

Hello Team Toradex,

I have Successfully add my verdin imx8mp device to the visual studio code and i have develop 1 sample application and test that application on Toradex LVDS Display.
After test the sample application i have enhance that application by adding the UART And I2C data Transmission and Receiving Functionality, Than I am Try to Deploy the application but it will show the Error. I Have mention the error below,

Executing task: sshpass -p 123123 scp -P 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/RaviVanand/test/docker-compose.yml torizon@192.168.0.137:~/

ssh: connect to host 192.168.0.137 port 22: No route to host
scp: Connection closed

  • The terminal process “sshpass ‘-p’, ‘123123’, ‘scp’, ‘-P’, ‘22’, ‘-o’, ‘UserKnownHostsFile=/dev/null’, ‘-o’, ‘StrictHostKeyChecking=no’, ‘/home/RaviVanand/test/docker-compose.yml’, ‘torizon@192.168.0.137:~/’” terminated with exit code: 255.
    After the this error I have try to Establish connection To putty console using the Board’s IP Address and using USB to UART Serial console using COM Port but It will show the connection Timed Out Error

After this I am trying the ping command in cmd ping 192.168.0.137 it will show that Destination host unreachable. Event I have connected my Device and Host PC On a same Network.

It is strange that when i have test the basic application it will works fine but after the enhancement of the application it will show the error. so please provide me the solution to overcome this situation.

Best Regards
Ravi Vanand

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello Ravi,

It seems like your Verdin iMX8MP device is not reachable over the network, which is causing the SSH and SCP commands to fail. Here are a few steps you can take to troubleshoot and resolve this issue:

  1. Check Network Connection:

    • Ensure that both your host PC and the Verdin iMX8MP device are connected to the same network.
    • Verify that the network is functioning correctly and there are no issues with the router or switch.
  2. Verify IP Address:

    • Double-check the IP address of your Verdin iMX8MP device. It might have changed if the device was restarted or if the network configuration was altered.
    • You can use a network scanning tool to find the current IP address of the device.
  3. Ping the Device:

    • Try pinging the device from your host PC using the command ping <device_ip_address>. If the ping fails, it indicates a network connectivity issue.
  4. Check SSH Service:

    • Ensure that the SSH service is running on the Verdin iMX8MP device. You can check this by connecting to the device via a serial console and running the command systemctl status sshd.
    • If the SSH service is not running, you can start it using systemctl start sshd.
  5. Serial Console Access:

    • Since you mentioned that you tried using a USB to UART serial console, ensure that the serial connection is properly configured and that you are using the correct COM port and baud rate settings.
    • If you can access the device via the serial console, you can check the network configuration and SSH service status directly on the device.
  6. Firewall and Security Settings:

    • Ensure that there are no firewall rules or security settings on your network that might be blocking SSH or other network traffic to the device.
  7. Reboot the Device:

    • Sometimes, simply rebooting the device can resolve network connectivity issues. You can do this via the serial console or by power cycling the device.

If you have verified all the above steps and the issue persists, please provide more details about any changes made to the network configuration or the device settings after the initial successful test. This information can help in further diagnosing the problem.

Best Regards,
[Your Name]

Please, also check if these links can help you solve your problem:

External libraries with Torizon visual studio extension.

I have resolved My issue