Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: YClientError: Could not connect to x.x.x.x: Session status: Undefined #317

Open
arynair opened this issue Aug 13, 2020 · 0 comments

Comments

@arynair
Copy link

arynair commented Aug 13, 2020

(test_venv) root@8ff5eb066f2e:/root/container/test_venv# python t
ry1.py
Trace: Unable to connect to 172.18.87.54:830 over IPv4 (Connection refused).
Connection error occurred: Unable to connect to 172.18.87.54:830.
NetconfSSHClient: NC session status: -1
Could not connect to 172.18.87.54: Session status: Undefined
Traceback (most recent call last):
File "try1.py", line 28, in
protocol="ssh")
File "/root/container/test_venv/lib/python3.6/site-packages/ydk/providers/netconf_provider.py", line 48, in init
protocol, on_demand, common_cache, timeout)
RuntimeError: YClientError: Could not connect to 172.18.87.54: Session status: Undefined

I am getting this error. i have followed the steps here : https://community.cisco.com/t5/yang-development-kit-ydk/netconfserviceprovider-is-not-able-to-establish-ssh-tunnel/td-p/3585193 but was not able to am still getting this error

i am able to login to the router via cli using : ssh -2 -s username@172.18.87.54 netconf -p 830

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant