So doing ssh -vvv gave me:
OpenSSH_4.3p2, OpenSSL 0.9.7a Feb 19 2003
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: /etc/ssh/ssh_config line 10: Deprecated option "RhostsAuthentication"
debug1: /etc/ssh/ssh_config line 16: Deprecated option "FallBackToRsh"
debug1: /etc/ssh/ssh_config line 17: Deprecated option "UseRsh"
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.53.30.188 [10.53.30.188] port 22.
debug1: Connection established.
debug1: identity file /home/angelblade27/.ssh/id
debug1: identity file /home/angelblade27/.ssh/id
debug1: identity file /home/angelblade27/.ssh/id
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7
debug1: match: OpenSSH_4.7 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-excha
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,arcfour,blowfis
debug2: kex_parse_kexinit: aes128-cbc,arcfour,blowfis
debug2: kex_parse_kexinit: hmac-sha1,hmac-ripemd160,h
debug2: kex_parse_kexinit: hmac-sha1,hmac-ripemd160,h
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-excha
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-sha1
debug1: kex: server->client aes128-cbc hmac-sha1 none
debug2: mac_init: found hmac-sha1
debug1: kex: client->server aes128-cbc hmac-sha1 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUES
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 163/320
debug2: bits set: 1015/2048
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /home/angelblade27/.ssh/kn
debug3: check_host_in_hostfile: match line 79
debug1: Host '10.53.30.188' is known and matches the RSA host key.
debug1: Found key in /home/angelblade27/.ssh/kn
debug2: bits set: 1017/2048
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/angelblade27/.ssh/id
debug2: key: /home/angelblade27/.ssh/id
debug1: Authentications that can continue: publickey,password,keyboar
debug3: start over, passed a different list publickey,password,keyboar
debug3: preferred gssapi-with-mic,publickey,
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,passw
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/angelblade27/.ssh/id
debug3: no such identity: /home/angelblade27/.ssh/id
debug1: Trying private key: /home/angelblade27/.ssh/id
debug3: no such identity: /home/angelblade27/.ssh/id
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboar
debug3: userauth_kbdint: disable: no info_req_seen
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred:
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
As for the sshd_config
RSAauthentication is set to yes but
publickeyauthentication is not even present:
# $OpenBSD: ssh_config,v 1.23 2007/06/08 04:40:40 pvalchev Exp $
# This is the ssh client system-wide configuration file. See
# ssh_config(5) for more information. This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.
# Configuration data is parsed as follows:
# 1. command line options
# 2. user-specific file
# 3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.
# Site-wide defaults for some commonly used options. For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.
# Host *
# ForwardAgent no
# ForwardX11 no
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
# GSSAPIDelegateCredentials no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# Port 22
# Protocol 2,1
# Cipher 3des
# Ciphers aes128-cbc,3des-cbc,blowfi
# MACs hmac-md5,hmac-sha1,umac-64
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
# PermitLocalCommand no
Main Topics
Browse All Topics





by: arnoldPosted on 2009-11-04 at 10:58:25ID: 25742606
not sure whether you have a type the file should be .ssh/authorized_keys and .ssh/authorized_keys2
identity.pub contents go into the authorized_keys
while
id_rsa.pub and id_dsa.pub contents go into authorized_keys2
From the linux box, run ssh -vvv user@windows_ssh_server and see what it is doing. I.e. does it go through the identiy.pub, id_rsa.pub, id_dsa.pub prior to going interactive.
The other item to check is the sshd_config file under the cygwin environment to make sure it has RSAauthentication and publickeyauthentication set to yes.