I tried to copy the zipzip file from localhost to two remote machines, I aliased my remote hostsnameshostnames. Hence i
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 iI ran this command, It returns the following error
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
ItsIs there any problem with using alias for file sharing, with loop ?