VMware Networking Community
RanjnaAggarwal
VMware Employee
VMware Employee

Enable SSH in NSX Controller

How to enable SSH in NSX Controller?

Regards, Ranjna Aggarwal
10 Replies
SRoland
VMware Employee
VMware Employee

It is enabled by default. Do you have problems connecting?

0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

yes i am not able to connect to my controller through ssh.

Regards, Ranjna Aggarwal
0 Kudos
SRoland
VMware Employee
VMware Employee

Then obviously something is blocking that.

What if you put a test VM with ssh client on the same subnet, same host, same port-group where one of the controllers is and try to connect?

0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

that i need to check but is there command that i run from nsx controller OS to check this?

Regards, Ranjna Aggarwal
0 Kudos
SRoland
VMware Employee
VMware Employee

If you go into controller through console and execute:

show service cli listen-address

you should see the following:

nsx-controller # show service cli listen-address

0.0.0.0:22

0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

thanks

Regards, Ranjna Aggarwal
0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

thanks but this command only shows the current configuration but i want to know how to change this like enable/disable this.

Regards, Ranjna Aggarwal
0 Kudos
rbudavari
Community Manager
Community Manager

As mentioned it is enabled by default - there is no supported method of disabling SSH.

jmmacip
Contributor
Contributor

Hi,

you can't disable ssh service, but you can disable login by issuing the following set allow-password-ssh yes/no

kgomulkiewicz
Contributor
Contributor

Hi,

Try ssh with admin@controller-ip Smiley Happy

0 Kudos