From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 6 20:10:15 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2C621065673 for ; Mon, 6 Feb 2012 20:10:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D24798FC12 for ; Mon, 6 Feb 2012 20:10:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q16KAFU4009872 for ; Mon, 6 Feb 2012 20:10:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q16KAFTR009871; Mon, 6 Feb 2012 20:10:15 GMT (envelope-from gnats) Date: Mon, 6 Feb 2012 20:10:15 GMT Message-Id: <201202062010.q16KAFTR009871@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Gary Palmer Cc: Subject: Re: misc/164830: scp could not copy files X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gary Palmer List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2012 20:10:16 -0000 The following reply was made to PR misc/164830; it has been noted by GNATS. From: Gary Palmer To: Eugen Konkov Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/164830: scp could not copy files Date: Mon, 6 Feb 2012 15:08:54 -0500 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@10.1.1.1:/home/adm/in > ssh: Could not resolve hostname 1328517293.M104652P74802.flux2,S=14033,W=14349: hostname nor servname provided, or not known Your file name has a : in it. scp is treating the part before the colon as a hostname. If you read scp(1) then you'll see: File names may contain a user and host specification to indicate that the file is to be copied to/from that host. Local file names can be made explicit using absolute or relative pathnames to avoid scp treating file names containing `:' as host specifiers. Copies between two remote hosts are also permitted. Try scp './1328517293.M104652P74802.flux2,S=14033,W=14349:2,' adm@10.1.1.1:/home/adm/in