Hi Guys,
I tried to copy the zip file from localhost to two remote machine, I aliased my remote hostsnames.
Hence i use the
for loop like this
Code:
for g in hy1 hy2;do scp kube.tar.gz $g:~;done
hy1,hy2- alias for remote hostnames
when i ran this command, It returns the following error
Quote:
ssh: Could not resolve hostname hy1: Name or service not known
lost connection
ssh: Could not resolve hostname hy2: Name or service not known
lost connection
|
Its there any problem with using alias for file sharing, with loop