search
cancel
Search
Copying a template from an ESX host to a remote ESX host in a different datacenter using SCP
book
Article ID: 302722
calendar_today
Updated On:
Products
VMware vSphere ESXi
Show More
Show Less
Issue/Introduction
This article provides instructions to copy a template from one ESX host to another ESX host in a different datacenter using SCP.
Symptoms:
Resolution
To copy a template from one ESX host to another ESX host in a different datacenter using SCP:
Log in to the ESX host as root using an SSH client.
Verify that the SSH client is allowed through the firewall on the ESX host with the command:
# esxcfg-firewall -q
Look for the
sshClient
in the
Allowed Services
string.
If the SSH client is not allowed, enable it with the command:
# esxcfg-firewall -e sshClient
Change to the datastore that has the template with the command:
# cd /vmfs/volumes/<datastore_name>
Verify that the remote root connection is allowed on the destination ESX host. For more information, see
Enabling root SSH login on an ESX host (8375637)
.
Run the
scp
command:
# scp -r <template_directory_name> <destination_host>:/vmfs/volumes/<destination_datastore_name>
Accept the SSH keys if necessary, and provide the root login credentials. The copy process begins.
Feedback
thumb_up
Yes
thumb_down
No