Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

No connection to target: An existing connection was forcibly closed by the remote host

2022-05-13
2022-08-07
  • renanrdaros - 2022-05-13

    I am not able to install CODESYS Control for Raspberry Pi MC SL on a Raspberry Pi CM4 running a Linux OS built with Yocto.

    When I try to install the software I get the following error message: No connection to target: An existing connection was forcibly closed by the remote host

    From the terminal I am able to establish an ssh connection between my Windows Development Machine and the Raspberry Pi Target Device, so I don't know what could be preventing the connection between the CODESYS Development System and the Raspberry Pi during the Runtime Package installation.

    Does anyone have any idea what could be the issue here?

     

    Last edit: renanrdaros 2022-05-17
  • pethun - 2022-08-05

    i have exactly the same issue. im having a ubuntu 22.04 server and can connect over ssh in win terminal but in codesys i've get closed by remote host. same as above. anybody who could advise?

     
  • pethun - 2022-08-07

    I found a solution to may problem. It's the ssh server denying the connetion from Codesys. The ssh server "no matching host key type found. Their offer: ssh-rsa,ssh-dss"

    I added following two lines into my linux server /etc/ssh/sshd_config.d

    HostKeyAlgorithms +ssh-rsa,ssh-dss
    PubkeyAcceptedKeyTypes +ssh-rsa

    This solved the problem. Maybe not the best solution since its an security issue but it might be fixed in latest codesys development software?

     
  • pethun - 2022-08-07

    I found a solution to may problem. It's the ssh server denying the connetion from Codesys. The ssh server "no matching host key type found. Their offer: ssh-rsa,ssh-dss"

    I added following two lines into my linux server /etc/ssh/sshd_config.d

    HostKeyAlgorithms +ssh-rsa,ssh-dss
    PubkeyAcceptedKeyTypes +ssh-rsa

    This solved the problem. Maybe not the best solution since its an security issue but it might be fixed in latest codesys development software?

     
    πŸ‘
    1

Log in to post a comment.