cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1707
Views
3
Helpful
4
Replies

ncs-netsim in Container

haofan
Level 4
Level 4

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.

1 Accepted Solution

Accepted Solutions

jvikman
Cisco Employee
Cisco Employee

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?

View solution in original post

4 Replies 4

jvikman
Cisco Employee
Cisco Employee

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?

Hi Karl,

   

   Thanks Karl, after I set ssh key permission and reinstall NSO. It work.

Thanks.

Great! Glad it helped, do you mind marking this discussion as answered?