Hi,
Sorry for the delayed response on this issue!
The error message "ssh failed to execute [ERROR: 0x80072741 kex_exchange_identification: Connection closed by remote host] at line 4322" indicates that the SSH connection to the target device was not successful.
Here are some troubleshooting steps you can try:
- Check the network connectivity between your development machine and the target device. Make sure that both devices are on the same network and can communicate with each other.
- Verify that the SSH service is running on the target device. You can do this by logging into the device manually using an SSH client, such as PuTTY or OpenSSH.
- Check that the firewall on the target device is not blocking SSH connections. You may need to configure the firewall to allow incoming SSH connections.
- Verify that the credentials used for the SSH connection are correct. Make sure that you are using the correct username and password for the target device.
- If you are using a custom SSH port on the target device, make sure that you specify the correct port number in the command.
- Ensure that your Windows 10 IoT Core device has the SSH server feature enabled. You can enable this feature by following these steps: a. Open the "Settings" app on the device. b. Select "Apps". c. Click on "Optional features". d. Click on "Add a feature". e. Scroll down to "OpenSSH Server" and select it. f. Click on "Install".
- Try restarting both your development machine and the target device and attempt the connection again.
If none of these steps resolve the issue, please comment in the below section and we are happy to help!!!