cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
455
Views
0
Helpful
6
Replies

ssh to netsim device

sm000x
Level 5
Level 5

Hi,
I created a netsim device with a netconf-ned.

ncs-netsim create-network my-netconf-ned-dir i mupf
ncs-netsim start

I try to ssh to the netsim device but I got connectio closed:

ssh admin@127.0.0.1 -p 12022
admin@127.0.0.1's password:
Connection to 127.0.0.1 closed.

Does netsim device support ssh? If yes, then how to set it up?

THX
sm000x

 

6 Replies 6

sm000x
Level 5
Level 5

I am sorry, I just got answer from google. I used wrong port.

balaji.bandi
Hall of Fame
Hall of Fame

ssh admin@127.0.0.1 -p 12022  (is this correct port ?)

BB

=====️ Preenayamo Vasudevam ️=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi, BB:

Thank you very much for the reply. You are correct, I should have used 10022 (CLI-Port), not 12022 (netconf port).

THX

sm000x

Glad all fixed, I looked at your reply lately, cheers.

BB

=====️ Preenayamo Vasudevam ️=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Tech Sniper
Community Member

"SSH CLI" or "IPC" port mapping in the output. If NETCONF is on 12022, the CLI is often on 12023 or 12024.
Then connect using that port:
ssh admin@127.0.0.1 -p <CLI_PORT>


Use ncs-netsim cli-i mupf to get straight into the CLI.

Hi, Tech Sniper:

Thank you very much for your response.

THX
sm000x