Right on. CopSSH installed and functioning well. Thanks for the advice. It really does work right out of the box.
Robert
_____
From: Robert Denton [mailto:robert@headsprout.com]
To: ssh@erdelynet.com
Sent: Thu, 22 May 2008 10:10:52 -0700
Subject: Re: Using Key Pairs on OpenSSH on Win2k3
Excellent advice! I will abandon "OpenSSH for Windows" and seek out CopSSH. I'll also post back with success or failure. Thanks again.
Robert
_____
From: Welsh, Armand [mailto:Armand.Welsh@sscims.com]
To: ssh@erdelynet.com
Sent: Thu, 22 May 2008 09:17:19 -0700
Subject: Re: Using Key Pairs on OpenSSH on Win2k3
Robert,
Before I look into potential causes, the first I would like to know is: are you using copSSH, the Cygwin installation with the openSSH package installed, or the "openSSH for Windows" project from source forge?
Why do I ask? Al three are openSSH from the cygwin project the following conditions:
Cygwin is the thick install proding the option to turn you windows box into a GNU Linux like operating system (via the bash or other shell and some special mappers built into cygwin). The cygwin project installs a basic configuration of openSSH which works well on older windows systems, but requires specific things be done to get the SSH server to work 100% on windows 2003 and Vista.
CopSSH is a pre-packaged minimal installation of Cygwin with a couple minor enhancement patches that installs Cygwin, openSSH, configures you computer (even vista and win2k3) so that openSSH works without any tweaking at all.
"OpenSSH for Windows" is a dead sourceforge project that is almost identical to copSSH, except that development on the project has stopped a long time ago, and this package requires more tweaking of the ssh settings and the server that the other options, and is running very old ssh code that should not be used anymore in my opinion.
If you want the easy solution, install copSSH and everything will work. If you want to get what you have working and you did not install copSSH then we can offer assistance with making all the appropriate changes, but it will take more time to get SSH services up and running with public keys, but you will have the option of using any piece of the cygwin project easily.
Armand
----- Original Message -----
From: ssh@erdelynet.com <ssh@erdelynet.com>
To: ssh@erdelynet.com <ssh@erdelynet.com>
Sent: Thu May 22 08:48:50 2008
Subject: Using Key Pairs on OpenSSH on Win2k3
Hello all, I am hoping someone on this list has a good idea how to resolve the following difficulty. I need to connect from a linux server to a windows server via ssh in a script and I need to use keypairs to do this.
I have installed Openssh on the win2k3 server and I have implemented the keypairs. Connecting to the win2k3 server it seems that the keypairs are working well, but then I am immediately disconnected from the win2k3 server. Running ssh with the verbose switch, I get the following:
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Last login: Wed May 21 15:44:10 2008 from Larry
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
Connection to production closed.
debug1: Transferred: stdin 0, stdout 0, stderr 35 bytes in 0.2 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 178.7
debug1: Exit status 255
I am currently researching the exit status 255 message, but for the rest I am not sure. The authentication is clearly working and I get into the server based on the key exchange but I am being booted right back out. Another oddity, and I am at a loss to explain this so far, the StrictModes option in sshd_config plays a role: when set to yes, the keypair authentication fails. When set to no, it succeeds but I am immediately disconnected form the server.
Any ideas?
Robert
.+-"w��i��u�r��\�o�.+-�!���i��u�r��\�oڭ�b���N�'���r��xƢ�f���,���˛���m�u�r��\�bʋ���Z�)ය.nW��˛���n)�+"��^.+-"w襨~��zZ
-- List Info: http://erdelynet.com/ssh-l/ List Archives: http://erdelynet.com/archive/ssh-l/ To Unsubscribe: Mail mailto:ssh+unsubscribe@erdelynet.com If you are having trouble unsubscribing, visit the List Info page for help.Received on Thu May 22 14:38:13 2008
This archive was generated by hypermail 2.1.8 : Thu May 22 2008 - 14:38:13 EDT