From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11829 invoked by alias); 31 Oct 2002 11:21:44 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11779 invoked from network); 31 Oct 2002 11:21:42 -0000 Received: from unknown (HELO smtp.uc3m.es) (163.117.136.123) by sources.redhat.com with SMTP; 31 Oct 2002 11:21:42 -0000 Received: from smtp03.uc3m.es (localhost [127.0.0.1]) by smtp.uc3m.es (Postfix) with ESMTP id 4E66243146 for ; Thu, 31 Oct 2002 12:21:41 +0100 (CET) Received: from varpa.it.uc3m.es (varpa.it.uc3m.es [163.117.139.253]) by smtp03.uc3m.es (Postfix) with ESMTP id 41C1099E3D for ; Thu, 31 Oct 2002 12:21:41 +0100 (CET) Received: from localhost (marcos@localhost) by varpa.it.uc3m.es (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id MAA29712 for ; Thu, 31 Oct 2002 12:21:41 +0100 Date: Thu, 31 Oct 2002 05:45:00 -0000 From: Marcos Lorenzo To: cygwin@cygwin.com Subject: Trouble with RSA authentication Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-SW-Source: 2002-10/txt/msg01912.txt.bz2 I finally got sshd working! But I cannot authenticate via RSA. I made the keygen with ssh-keygen in my winbox and copied identity.pub to authorized_keys and identity in my linbox (I have the same files in both machines). I really know how ssh works in linux, but I have some troubles with RSA in cygwin. Below is the message that I got: 12:16:21 marcos@laud~ ssh -i .ssh/identity.mozart -vvv mozart.lab -1 OpenSSH_3.4p1 Debian 1:3.4p1-1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f debug1: Reading configuration data /etc/ssh/ssh_config debug1: Rhosts Authentication disabled, originating port will not be trusted. debug1: ssh_connect: needpriv 0 debug1: Connecting to mozart.lab [163.117.144.225] port 22. debug1: Connection established. debug1: identity file .ssh/identity.mozart type 0 debug1: Remote protocol version 1.99, remote software version OpenSSH_3.4p1 debug1: match: OpenSSH_3.4p1 pat OpenSSH* debug1: Local version string SSH-1.5-OpenSSH_3.4p1 Debian 1:3.4p1-1 debug1: Waiting for server public key. debug1: Received server public key (768 bits) and host key (1024 bits). debug3: check_host_in_hostfile: filename /users/tec/marcos/.ssh/known_hosts2 debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts2 debug3: check_host_in_hostfile: filename /users/tec/marcos/.ssh/known_hosts2 debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts2 debug3: check_host_in_hostfile: filename /users/tec/marcos/.ssh/known_hosts debug3: check_host_in_hostfile: match line 45 debug3: check_host_in_hostfile: filename /users/tec/marcos/.ssh/known_hosts debug3: check_host_in_hostfile: match line 44 debug1: Host 'mozart.lab' is known and matches the RSA1 host key. debug1: Found key in /users/tec/marcos/.ssh/known_hosts:45 debug1: Encryption type: 3des debug1: Sent encrypted session key. debug1: cipher_init: set keylen (16 -> 32) debug1: cipher_init: set keylen (16 -> 32) debug1: Installing crc compensation attack detector. debug1: Received encrypted confirmation. debug1: Trying RSA authentication with key '.ssh/identity.mozart' debug1: Server refused our key. debug1: Doing challenge response authentication. debug1: No challenge. debug1: Doing password authentication. marcos@mozart.lab's password: My sshd_config is: marcos@MOZART ~$ grep -v ^# /etc/sshd_config | grep . Port 22 Protocol 2,1 LoginGraceTime 600 PermitRootLogin yes StrictModes yes RSAAuthentication yes AuthorizedKeysFile %h/.ssh/authorized_keys PermitEmptyPasswords no X11Forwarding yes UsePrivilegeSeparation yes Subsystem sftp /usr/sbin/sftp-server I set RSAAuthentication and AuthorizedKeysFile just in case it was defaulting to no... but this doesn't work neither. thx in advance, m4c. __________________________________________________________ Marcos Lorenzo de Santiago (Labs Technician) Departament of Telematic Engineering University Carlos III Av.Universidad 30 Legan=E9s (Madrid). Torres Quevedo Building 4.1A01=20 E-mail: marcos@it.uc3m.es, Telephone: (+34)91-624-8757 Home Page http://www.it.uc3m.es/marcos __________________________________________________________ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/