Enable SSH or SCP from one ESXi host to another

From Notes_Wiki
Revision as of 11:33, 18 March 2021 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb self="Enable SSH or SCP from one ESXi host to another">VMWare vSphere or ESXi|VMWare vSphere or ESXi</yambe:breadcrumb> =Enable SSH or SCP from one ESXi host...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb self="Enable SSH or SCP from one ESXi host to another">VMWare vSphere or ESXi|VMWare vSphere or ESXi</yambe:breadcrumb>

Enable SSH or SCP from one ESXi host to another

It might be required to do scp of a VM folder from one datastore of one ESXi host to another datastore of another ESXi host. This helps in migrating VM (after powering off) from one vCenter / cluster to another vCenter / cluster without requiring ovf export / import middle steps. However, by default outgoing SSH / SCP from ESXi hosts is not allowed due to default firewall rules. Before doing SSH/SCP from one ESXi host to another we need to allow SSH client in firewall rules of that ESXi host using:

  1. Login into vCenter and go to host from which SSH would be performed
  2. Go to Configure -> System -> Firewall
  3. Click "Edit" for incoming tab itself. Enable "SSH client"
  4. After this also if SSH is not working then do the same on destination host also.

Refer: