Showing posts with label scp ssh root. Show all posts
Showing posts with label scp ssh root. Show all posts

Tuesday, 17 April 2012

VMWare file copy between esx hosts

1. start SSH Client in source and destination ESX host:
service sshd start
2. enable firewall for ssh client and server in both hosts:
enable ssh client:
esxcfg-firewall -e sshClient
enable ssh server:
esxcfg-firewall -e sshServer
3 On destination ESX host go to dir where file is to be copied to:
cd /path_to_where_file_should_end_up/
4 from above dir run copy command using scp:
scp root@ipAddressofSourceEsxHost:/path/filename.txt ./

eg to copy proxy.xml from esx01 to esx02 from /etc/vmware/hostd to /etc/vmware/hostd
log on to esx02 as root
cd /etc/vmware/hostd
scp root@esx01:/etc/vmware/hostd/proxy.xml ./

and to push a file out to another esx host:
scp local_file_name root@remote_host_ip:/path_where_file_should_go/