Enable SSH on NSX managers
search cancel

Enable SSH on NSX managers

book

Article ID: 373427

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • SSH is disabled by default unless option is selected during initial deployment to override
  • Failure to enable can result in the error below when attempting to connect:
    Network error: Connection refused

Environment

  • VMware NSX-T Data Center 3.x
  • VMware NSX 4.x
  • VMware NSX 9.x

Resolution

  • To enable SSH to NSX Manager, log in to your vCenter Server and open the VM console of the NSX Manager in which you want to enable SSH. To start the SSH Service in NSX Manager, run the below command:

start service ssh

  • Starting the service will not persist across the reboot. The reboot of the NSX Manager may stop the SSH service during boot. If you want the service during the boot of NSX Manager. Run the below command:

set service ssh start-on-boot

  • To validate the service status and start on boot configuration, run the below command:
    get service ssh
    Service name: ssh
    Service state: stopped
    Start on boot: True
    Root login: enabled

Note: Run these commands as the admin user, not as the root user.

Additional Information