11-19-2020 08:35 AM
All,
I'm trying to add a device to NSO, see below. NOTE: I have used this hostname and IP address before and rebuilt the device and device config in NSO from scratch. Do I have to delete the hostkey in NSO somehow? Also know, I can ssh from the ubuntu server running NSO to the device just fine (after deleting the hostkey in Ubuntu, of course).
nsoadmin@ncs(config)# do show running-config devices device ACCESS1
devices device ACCESS1
address 172.20.1.2
authgroup BOOTSTRAP
device-type netconf ned-id netconf
state admin-state unlocked
!
nsoadmin@ncs(config)# devices fetch-ssh-host-keys device [ ACCESS1 ]
fetch-result {
device ACCESS1
result failed
info Failed to connect to device ACCESS1: connection refused
}
Solved! Go to Solution.
11-19-2020 01:41 PM
Connection refused seems like either the address/port is wrong or the device is down. Verify that you can ssh from a shell on the NSO machine to the address/port combination that you use.
11-20-2020 06:50 AM
UGGG!!!!! Your comment made me realize I changed the ned to netconf, port 830!!! I was testing SSH port 22 which was working fine... When I tested NETCONF connectivity to the device, it was NOT working. Some quick troubleshooting on the device and all is good now. Thank you for you comment!
11-19-2020 11:49 AM
Maybe regenerate the keys like is explained in a previous post
11-19-2020 01:41 PM
Connection refused seems like either the address/port is wrong or the device is down. Verify that you can ssh from a shell on the NSO machine to the address/port combination that you use.
11-20-2020 06:50 AM
UGGG!!!!! Your comment made me realize I changed the ned to netconf, port 830!!! I was testing SSH port 22 which was working fine... When I tested NETCONF connectivity to the device, it was NOT working. Some quick troubleshooting on the device and all is good now. Thank you for you comment!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide