Just curious,
1) are you sure that you have c:\cygwin\bin in your path?
2) Is the user with admin permissions running the ssh-config program?
2a) and is that user only local to current machine?
Arthur
Christian Mathieu wrote:
>
> When i run sshd as an application ( sshd -d) in one windows, and ssh -v
> localhost in another it works !!! I got the ssh shell, but ssh did not ask
> for a password,
>
> $ ps -ef | grep ssh
> mathieu 656 2376 con 00:49:20 /usr/sbin/sshd
> mathieu 3296 968 con 00:49:27 /usr/bin/ssh
>
> So the real problem is how to make in run as a service ?
>
> If i run sshd as a service and ssh -v localhost, i got the following :
> $ ssh -v localhost
> OpenSSH_3.0.2p1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f
> debug1: Reading configuration data /etc/ssh_config
> debug1: Seeding random number generator
> debug1: Rhosts Authentication disabled, originating port will not be
> trusted.
> debug1: restore_uid
> debug1: ssh_connect: getuid 1000 geteuid 1000 anon 1
> debug1: Connecting to localhost [127.0.0.1] port 22.
> debug1: temporarily_use_uid: 1000/18 (e=1000)
> debug1: restore_uid
> debug1: temporarily_use_uid: 1000/18 (e=1000)
> debug1: restore_uid
> debug1: Connection established.
> debug1: read PEM private key done: type DSA
> debug1: read PEM private key done: type RSA
> debug1: identity file /home/mathieu/.ssh/identity type 0
> debug1: identity file /home/mathieu/.ssh/id_rsa type 1
> debug1: identity file /home/mathieu/.ssh/id_dsa type 2
> debug1: Remote protocol version 1.99, remote software version
> OpenSSH_3.0.2p1
> debug1: match: OpenSSH_3.0.2p1 pat ^OpenSSH
> Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_3.0.2p1
> debug1: SSH2_MSG_KEXINIT sent
> debug1: SSH2_MSG_KEXINIT received
> debug1: kex: server->client aes128-cbc hmac-md5 none
> debug1: kex: client->server aes128-cbc hmac-md5 none
> debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
> debug1: dh_gen_key: priv key bits set: 120/256
> debug1: bits set: 1570/3191
> debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
> debug1: Host 'localhost' is known and matches the RSA host key.
> debug1: Found key in /home/mathieu/.ssh/known_hosts:1
> debug1: bits set: 1573/3191
> debug1: ssh_rsa_verify: signature correct
> debug1: kex_derive_keys
> debug1: newkeys: mode 1
> debug1: SSH2_MSG_NEWKEYS sent
> debug1: waiting for SSH2_MSG_NEWKEYS
> debug1: newkeys: mode 0
> debug1: SSH2_MSG_NEWKEYS received
> debug1: done: ssh_kex2.
> debug1: send SSH2_MSG_SERVICE_REQUEST
> debug1: service_accept: ssh-userauth
> debug1: got SSH2_MSG_SERVICE_ACCEPT
> debug1: authentications that can continue:
> publickey,password,keyboard-interact
> ve
> debug1: next auth method to try is publickey
> debug1: try pubkey: /home/mathieu/.ssh/id_rsa
> debug1: input_userauth_pk_ok: pkalg ssh-rsa blen 149 lastkey 0x100b4288
> hint 1
> debug1: read PEM private key done: type RSA
> debug1: authentications that can continue:
> publickey,password,keyboard-interact
> ve
> debug1: try pubkey: /home/mathieu/.ssh/id_dsa
> debug1: input_userauth_pk_ok: pkalg ssh-dss blen 434 lastkey 0x100b42a0
> hint 2
> debug1: read PEM private key done: type DSA
> debug1: authentications that can continue:
> publickey,password,keyboard-interact
> ve
> debug1: next auth method to try is keyboard-interactive
> debug1: authentications that can continue:
> publickey,password,keyboard-interact
> ve
> debug1: next auth method to try is password
> mathieu@localhost's password:
> debug1: packet_send2: adding 64 (len 52 padlen 12 extra_pad 64)
> debug1: authentications that can continue:
> publickey,password,keyboard-interact
> ve
> Permission denied, please try again.
> mathieu@localhost's password:
> debug1: packet_send2: adding 64 (len 60 padlen 4 extra_pad 64)
> debug1: ssh-userauth2 successful: method password
> debug1: channel 0: new [client-session]
> debug1: send channel open 0
> debug1: Entering interactive session.
> debug1: ssh_session2_setup: id 0
> debug1: channel request 0: shell
> debug1: channel 0: open confirm rwindow 0 rmax 16384
> Last login: Thu Mar 7 00:56:12 2002 from localhost
> Fanfare!!!
> You are successfully logged in to this server!!!
> debug1: channel_free: channel 0: client-session, nchannels 1
> Connection to localhost closed by remote host.
> Connection to localhost closed.
> debug1: Transferred: stdin 0, stdout 0, stderr 81 bytes in 0.8 seconds
> debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 105.5
> debug1: Exit status -1
>
> Thanks, Chris
> Tel (33) 4 9211 5896
>
>
> "DePriest, Jason
> R." To: "'ssh-l@erdelynet.com'" <ssh-l@erdelynet.com>
> <jrdepriest@ftb.c cc:
> om> Subject: RE: [ssh-l] Connection closed by remote host
> Sent by:
> ssh-l-owner@erdel
> ynet.com
>
>
> 03/07/2002 12:20
> AM
> Please respond to
> ssh-l
>
>
>
> Just out of curiosity, what do you get if you try to run the 'ssh
> localhost' command with the debug options: 'ssh -v localhost' or 'ssh -vv
> localhost'?
>
> Also, you can run your sshd as an application instead of a service and use
> its debugging command line switch, too: 'sshd -d'.
>
> If you ran the 'sshd -d' in one console window and an 'ssh -vv localhost'
> in another console window, maybe that would give you enough data to tell
> you what the heck was going on.
>
> -Jason
>
> -----Original Message-----
> From: Christian Mathieu [mailto:MATHIEU@fr.ibm.com]
> Sent: Wednesday, March 06, 2002 05:01 PM
> To: ssh-l@erdelynet.com
> Subject: RE: [ssh-l] Connection closed by remote host
>
> /etc/passwd and /etc/group files look good.
> The password authentication works ( if i enter a wrong password, i got a
> permission denied).
> I can log into the system, it dies just after......
>
> Thanks, Chris
> Tel (33) 4 9211 5896
>
> "DePriest, Jason
>
> R." To:
> "'ssh-l@erdelynet.com'" <ssh-l@erdelynet.com>
>
> <jrdepriest@ftb.c cc:
>
> om> Subject: RE: [ssh-l]
> Connection closed by remote host
>
> Sent by:
>
> ssh-l-owner@erdel
>
> ynet.com
>
> 03/06/2002 11:48
>
> PM
>
> Please respond to
>
> ssh-l
>
> Are you certain that your /etc/passwd and /etc/group files have the correct
> name and SID associated with that logon ID?
>
> -----Original Message-----
> From: Christian Mathieu [mailto:MATHIEU@fr.ibm.com]
> Sent: Wednesday, March 06, 2002 04:45 PM
> To: ssh-l@erdelynet.com
> Subject: [ssh-l] Connection closed by remote host
>
> Hello,
>
> I've tried to install ssh , and when i run ssh localhost, i got a
> connection closed. When i read your mailing list, i've found the same
> problem, but not the answer. Why did i missed ?
> I've also noticed that chown command run succesfully ( ie without any
> warning) but the result of the ls -l command was the same as before i run
> the chown command.
>
> Any helps appreciated
>
> $ ssh localhost
> mathieu@localhost's password:
> Permission denied, please try again.
> mathieu@localhost's password:
> Last login: Wed Mar 6 23:32:02 2002 from localhost
> Fanfare!!!
> You are successfully logged in to this server!!!
> Connection to localhost closed by remote host.
> Connection to localhost closed.
>
> Thanks, Chris
> Tel (33) 4 9211 5896
>
> --
> List Information: http://tech.erdelynet.com/maillist-ssh-l.asp
> List Archives: http://erdelynet.com/archive/ssh-l/
> --
> List Information: http://tech.erdelynet.com/maillist-ssh-l.asp
> List Archives: http://erdelynet.com/archive/ssh-l/
>
> --
> List Information: http://tech.erdelynet.com/maillist-ssh-l.asp
> List Archives: http://erdelynet.com/archive/ssh-l/
>
> --
> List Information: http://tech.erdelynet.com/maillist-ssh-l.asp
> List Archives: http://erdelynet.com/archive/ssh-l/
-- List Information: http://tech.erdelynet.com/maillist-ssh-l.asp List Archives: http://erdelynet.com/archive/ssh-l/Received on Wed Mar 6 19:10:41 2002
This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:33:32 EDT