SSH on port 22 fails in NSX-T
search cancel

SSH on port 22 fails in NSX-T


Article ID: 325119


Updated On:


VMware NSX Networking


On certain (latest versions with newer cloud-init versions), the Bionic virtual machines will see SSH connectivity failures after NSX Tools are installed. This article provides information to recover such VMs and can also be useful to apply the workaround before NSX tools are installed.

SSH on port 22 fails due to connectivity issues.


VMware NSX-T Data Center 3.x
VMware NSX-T Data Center


This issue occurs due to a netplan config change that newer cloud-init versions bring into the Bionic VMs. It fails to bring up the management interface after the NSX tools installation.


This is a known issue affecting VMware NSX-T Data Center 3.1.0.

Currently, there is no resolution.

To work around this issue, run this command before the NSX tools are installed:

sed -i '/driver:/d' /etc/netplan/50-cloud-init.yaml

Note: If this issue is seen after NSX tools are installed.
  1. SSH into the VM using port 8888. Ensure that inbound port 8888 is open for the VM.
  2. Run this command:

    /opt/vmware/nsx-agent/bin/ "sed -i '/driver:/d' /etc/netplan/50-cloud-init.yaml"
  3. Restart the nsx-agent using the command: 

    service nsx-agent restart