09-10-2017 08:21 PM - edited 03-01-2019 03:59 AM
Hi all,
I deploy NSO in container, try to use netsim to simulate Cisco ios devices, but failed:
Logs are as below:
root@071715d01a59:~/workspace/netsim# ls
README.netsim c
root@071715d01a59:~/workspace/netsim# ncs-netsim start
Bad configuration: confd.conf:0: Need read access to one of the files ./ssh/ssh_host_dsa_key and ./ssh/ssh_host_rsa_key defined for /confdConfig/aaa/sshServerKeyDir
Daemon died status=21
DEVICE c0 FAIL
Bad configuration: confd.conf:0: Need read access to one of the files ./ssh/ssh_host_dsa_key and ./ssh/ssh_host_rsa_key defined for /confdConfig/aaa/sshServerKeyDir
Daemon died status=21
DEVICE c1 FAIL
Bad configuration: confd.conf:0: Need read access to one of the files ./ssh/ssh_host_dsa_key and ./ssh/ssh_host_rsa_key defined for /confdConfig/aaa/sshServerKeyDir
Daemon died status=21
DEVICE c2 FAIL
I have set .ssh directory and all files in .ssh directory permission is 777. Futhermore, I can ssh to to this container.
Solved! Go to Solution.
09-13-2017 03:09 AM
Set the directory to 700, pub key to 644 and private to 600.
Do you start the netsim device when you have ssh:d into the device or is it done when starting the container?
If you're using Docker, could you share your Dockerfile?
09-13-2017 03:09 AM
Set the directory to 700, pub key to 644 and private to 600.
Do you start the netsim device when you have ssh:d into the device or is it done when starting the container?
If you're using Docker, could you share your Dockerfile?
09-13-2017 03:12 AM
Hi Karl,
Thanks Karl, after I set ssh key permission and reinstall NSO. It work.
Thanks.
09-13-2017 04:39 AM
Great! Glad it helped, do you mind marking this discussion as answered?
09-13-2017 04:57 AM
Yes.
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