misc/164830: scp could not copy files

Коньков Евгений kes-kes at yandex.ru
Mon Feb 6 21:30:15 UTC 2012

The following reply was made to PR misc/164830; it has been noted by GNATS.

From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= <kes-kes at yandex.ru>
To: Gary Palmer <gpalmer at freebsd.org>
Cc: freebsd-gnats-submit at FreeBSD.org
Subject: Re[2]: misc/164830: scp could not copy files
Date: Mon, 6 Feb 2012 23:22:17 +0200

 Çäðàâñòâóéòå, Gary.
 Âû ïèñàëè 6 ôåâðàëÿ 2012 ã., 22:08:54:
 GP> On Mon, Feb 06, 2012 at 07:20:08PM +0000, Eugen Konkov wrote:
 >> >Number:         164830
 >> >Category:       misc
 >> >Synopsis:       scp could not copy files
 >> >Confidential:   no
 >> >Severity:       non-critical
 >> >Priority:       low
 >> >Responsible:    freebsd-bugs
 >> >State:          open
 >> >Quarter:        
 >> >Keywords:       
 >> >Date-Required:
 >> >Class:          sw-bug
 >> >Submitter-Id:   current-users
 >> >Arrival-Date:   Mon Feb 06 19:30:10 UTC 2012
 >> >Closed-Date:
 >> >Last-Modified:
 >> >Originator:     Eugen Konkov
 >> >Release:        9-CURRENT
 >> >Organization:
 >> ISP FreeLine
 >> >Environment:
 >> >Description:
 >> I try to copy file from mail directory
 >> # ls -l 1328517293*
 >> -rw-------  1 vmail  mail  14033 Feb  6 08:34 1328517293.M104652P74802.flux2,S=14033,W=14349:2,
 >> # scp '1328517293.M104652P74802.flux2,S=14033,W=14349:2,' adm at
 >> ssh: Could not resolve hostname 1328517293.M104652P74802.flux2,S=14033,W=14349: hostname nor servname provided, or not known
 GP> Your file name has a : in it.  scp is treating the part before the colon
 GP> as a hostname.  If you read scp(1) then you'll see:
 GP>      File names may contain a user and host specification to indicate that the
 GP>      file is to be copied to/from that host.  Local file names can be made
 GP>      explicit using absolute or relative pathnames to avoid scp treating file
 GP>      names containing `:' as host specifiers.  Copies between two remote hosts
 GP>      are also permitted.
 GP> Try
 GP> scp './1328517293.M104652P74802.flux2,S=14033,W=14349:2,' adm at
 I understand that scp use ':' as delimeter to get hostname, but I
 think that just quoting will force scp do not look into name
 I forget about ./ sintax, Thank you. It works fine even without quoting
 scp ./1328517293.M104652P74802.flux2,S=14033,W=14349:2, adm at
 Thank you.
 Ñ óâàæåíèåì,
  Êîíüêîâ                          mailto:kes-kes at yandex.ru

More information about the freebsd-bugs mailing list