scp file:name.txt user@server1:/pathI get the following error:
ssh: Could not resolve hostname s: Name or service not knownHow do I copy file with scp or rsync with a colon in it?
Local file names can be made explicit using absolute or relative pathnames to avoid scp treating file names containing : as host specifiers. In other words use the following syntax:
scp ./file:name.txt user@server1:/path/to/dest
OR
scp /path/to/src/file:name.txt user@server1:/path/to/dest
OR
rsync /path/to/src/file:name.txt user@server1:/path/to/dest
No comments:
Post a Comment