[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#198275: /usr/bin/scp: scp: no way to escape colons in pathnames



On Wed, Apr 06, 2005 at 12:37:50PM -0700, Tyler MacDonald wrote:
> I was just trying to copy a folder over with a colon in it's name. Of
> course, scp thought that the colon was a hostname separator and responded
> with "ssh: The: Name or service not known"

I ran into the same issue recently.  You can work around it by adding a 
path component to the filename (see below).

   adric@yggdrasil[~]$ scp ab:c sasami:
   ssh: ab: Name or service not known
   adric@yggdrasil[~]$ scp ./ab:c sasami:
   ab:c                                100% 1876     1.8KB/s   00:00

It could probably stand to be documented somewhere. ;-)

Attachment: signature.asc
Description: Digital signature


Reply to: