Windows IoT Provision Error

Suresh Batta 0 Reputation points
2023-01-27T17:53:57.9066667+00:00

While setting up an IoT Edge on Windows with EFLOW, per this page [https://learn.microsoft.com/en-us/azure/iot-edge/how-to-provision-single-device-linux-on-windows-x509?view=iotedge-1.4&tabs=azure-portal%2Cpowershell#provision-the-device-with-its-cloud-identity,

on the Provision step here - [https://learn.microsoft.com/en-us/azure/iot-edge/how-to-provision-single-device-linux-on-windows-x509?view=iotedge-1.4&tabs=azure-portal%2Cpowershell#provision-the-device-with-its-cloud-identity,

running the command is throwing an error:

ssh failed to execute [ERROR: 0x80072741 kex_exchange_identification: Connection closed by remote host] at line 4322

How to resolve this? Did I miss something?

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
598 questions
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,366 Reputation points Moderator
    2023-03-10T06:26:54.3466667+00:00

    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:

    1. 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.
    2. 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.
    3. 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.
    4. 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.
    5. If you are using a custom SSH port on the target device, make sure that you specify the correct port number in the command.
    6. 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".
    7. 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!!!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.