I tried to copy the zip file from localhost to two remote machines, I aliased my remote hostnames.
Hence I use the
for loop like this
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
ssh: Could not resolve hostname hy1: Name or service not known
ssh: Could not resolve hostname hy2: Name or service not known
Is there any problem with using alias for file sharing, with loop ?