I'm using ssh 2.0.13 on solaris 2.6 and would like to do the following:

scp /var/tmp/file:name desthost:/var/tmp

Where file:name is a file e.g:
$ ls -l /var/tmp
total 403
-rw-rw-r--   1 joe      joe        409048 Jan 19 15:44 file:name

scp2 interprets /var/tmp/file as a hostname and the copy fails. One
possible (but much slower) work-around is the following:

scp localhost:/var/tmp/file:name desthost:/var/tmp

Is there another way to do this without renaming the file?

Thanks,

--Joe





Reply via email to