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

Bug#303453: scp: impossible to copy a local file with a colon in it



On Wed, Apr 06, 2005 at 12:42:02PM -0700, Tyler MacDonald wrote:
> [i just accidentally submitted this with a bad email addy as an addition to
> wontfix bug 198275; resubmitting since its actually a different bug...]

My reply went to #198275 as well... resubmitting here for completeness.

> 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: