netopeer2
netopeer2 copied to clipboard
Connecting remote netopeer2-client the connection is getting closed at local netconf session.
Hi @michalvasko, I am taking local netconf session and after which when I am using "connect --ssh --host 192.168.4.50 --port 830 --login root" from remote netopeer2-client the connection is getting closed as local netconf session.
root@localboard:~$ssh root@localhostip -p 830 -s netconf
Interactive SSH Authentication
Type your password:
Password:
Can you please let me know the reason why this could be happening?
Look at the output of netopeer2-server
. Most likely, it does not get the hello message it expects. It is a really bad idea to try to use ssh(1)
for NETCONF connections, you need to use a proper NETCONF client such as netopeer2-cli
.
Hi @michalvasko ,
I am getting the below out
[ERR]: LN: Client's <hello> timeout elapsed.
May I know why it is a really bad idea to try to use ssh(1) for NETCONF connections.
Because in NETCONF, SSH is just the transport protocol, you communicate using the NETCONF protocol. Sending proper NETCONF messages using a shell that ssh
provides is almost impossible.
Hi @Abrahamma97,
Having same issue while connecting cli. Did you find a solution?
[ERR]: LN: Client's <hello> timeout elapsed.
Hi @marchest , I second @michalvasko s opinion. Sending proper NETCONF messages using a shell that ssh provides is almost impossible. This should be the reason.
Hi @Abrahamma97 ,
Thanks