X-Spam-Check-By: sourceware.org
Date: Thu, 31 Aug 2006 17:29:30 -0400 (EDT)
From: Igor Peshansky <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: BeemerBiker <jstateson@swri.edu>
cc: cygwin@cygwin.com
Subject: Re: does scp take windows type: domain\username@ip ?
In-Reply-To: <ed7k0t$uuq$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.63.0608311728420.14227@access1.cims.nyu.edu>
References: <ed7k0t$uuq$1@sea.gmane.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Thu, 31 Aug 2006, BeemerBiker wrote:

> Running that cygwin sshd under XP, I can get scp to copy to my local PC
> from a Linux box just fine for local users like admin
>
> scp test.sh Administrator@myIP
>
> the above works fine and puts test.sh into /cygwin/home/Administrator
>
> I cant seem to get scp to work for authenticated users from a domain eg:
>
> If I try myDomain\myUsername@myIP the \ is stripped off and the copy fails
> as shown below
>  (swri16\jstateson)
>
> Bringing up the Event Viewer I read where sshd reports
> Failed password for invalid user swri16jstateson from 129.162.164.124 port
> 2002 ssh2
>
> if I try two backslashes \\ the following error:
>
> Failed password for invalid user swri16\\jstateson from 129.162.164.124 port
> 2033 ssh2
>
> a forward slash is no better
>
> So is it possible to use a micro$oft type domain\username when copying
> from a linux box not on the domain to a windows PC on the domain?

No, but you can run "mkpasswd -d" on the windows box and use the username
without the domain specifier (or edit /etc/passwd to give the user any
name you wish).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

