Topic "Error connecting: "bad service request ssh-connection""

Author Message
venkatrangan59
[View user's profile]

Joined: 2010-12-01
Posts: 2
Location: sshuser
Hi,

I have setup the latest COPSSH server on Windows 2008, and WinSCP on the client. I am unable to authenticate and connect. I have bypassed authentication, and removed password authentication on the server for this account.

I get the error from WinSCP:

. 2010-12-01 11:21:59.711 --------------------------------------------------------------------------
. 2010-12-01 11:21:59.711 WinSCP Version 4.2.9 (Build 938) (OS 6.1.7600)
. 2010-12-01 11:21:59.711 Login time: Wednesday, December 01, 2010 11:21:59 AM
. 2010-12-01 11:21:59.711 --------------------------------------------------------------------------
. 2010-12-01 11:21:59.711 Session name: xxx@yyy
. 2010-12-01 11:21:59.711 Host name: yyy(Port: 22)
. 2010-12-01 11:21:59.711 User name: xxx (Password: No, Key file: No)
. 2010-12-01 11:21:59.711 Tunnel: No
. 2010-12-01 11:21:59.711 Transfer Protocol: SFTP (SCP)
. 2010-12-01 11:21:59.711 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2010-12-01 11:21:59.711 Proxy: none
. 2010-12-01 11:21:59.711 SSH protocol version: 2; Compression: No
. 2010-12-01 11:21:59.711 Bypass authentication: Yes
. 2010-12-01 11:21:59.711 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2010-12-01 11:21:59.711 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2010-12-01 11:21:59.711 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2010-12-01 11:21:59.711 SFTP Bugs: -,-
. 2010-12-01 11:21:59.711 Return code variable: Autodetect; Lookup user groups: Yes
. 2010-12-01 11:21:59.711 Shell: default
. 2010-12-01 11:21:59.711 EOL: 0, UTF: 2
. 2010-12-01 11:21:59.711 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2010-12-01 11:21:59.711 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2010-12-01 11:21:59.711 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-12-01 11:21:59.711 Cache directory changes: Yes, Permanent: Yes
. 2010-12-01 11:21:59.711 DST mode: 1
. 2010-12-01 11:21:59.711 --------------------------------------------------------------------------
. 2010-12-01 11:21:59.727 Looking up host "yyy"
. 2010-12-01 11:21:59.727 Connecting to 192.168xxx.uu port 22
. 2010-12-01 11:21:59.836 Server version: SSH-2.0-OpenSSH_5.6
. 2010-12-01 11:21:59.836 We believe remote version has SSH-2 ignore bug
. 2010-12-01 11:21:59.836 Using SSH protocol version 2
. 2010-12-01 11:21:59.836 We claim version: SSH-2.0-WinSCP_release_4.2.9
. 2010-12-01 11:21:59.883 Doing Diffie-Hellman group exchange
. 2010-12-01 11:22:00.070 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-12-01 11:22:00.413 Host key fingerprint is:
. 2010-12-01 11:22:00.413 ssh-rsa 2048 36:bf:6f:c9:c2:73:12:84:60:ff:a1:2c:97:6b:08:6e
. 2010-12-01 11:22:00.413 Initialised AES-256 SDCTR client->server encryption
. 2010-12-01 11:22:00.413 Initialised HMAC-SHA1 client->server MAC algorithm
. 2010-12-01 11:22:00.413 Initialised AES-256 SDCTR server->client encryption
. 2010-12-01 11:22:00.413 Initialised HMAC-SHA1 server->client MAC algorithm
. 2010-12-01 11:22:00.616 Received disconnect message (protocol error)
. 2010-12-01 11:22:00.616 Disconnection message text: bad service request ssh-connection
. 2010-12-01 11:22:00.616 Server sent disconnect message
. 2010-12-01 11:22:00.616 type 2 (protocol error):
. 2010-12-01 11:22:00.616 "bad service request ssh-connection"
* 2010-12-01 11:22:00.631 (ESshFatal) Server sent disconnect message
* 2010-12-01 11:22:00.631 type 2 (protocol error):
* 2010-12-01 11:22:00.631 "bad service request ssh-connection"
* 2010-12-01 11:22:00.631 Authentication failed.

On the Server Side, I have enabled logging, and all I see is:

2010.12.01 21:56:22 - Disconnecting: bad service request ssh-connection
2010.12.01 21:56:16 - Disconnecting: bad service request ssh-connection
2010.12.01 21:56:10 - Disconnecting: bad service request ssh-connection
2010.12.01 21:56:05 - Disconnecting: bad service request ssh-connection
2010.12.01 21:55:59 - Disconnecting: bad service request ssh-connection
2010.12.01 21:55:07 - Disconnecting: bad service request ssh-connection
2010.12.01 21:55:01 - Disconnecting: bad service request ssh-connection
2010.12.01 21:54:36 - Server listening on 0.0.0.0 port 22.
2010.12.01 21:54:36 - Server listening on :: port 22.
2010.12.01 21:54:35 - Received SIGHUP; restarting.
2010.12.01 21:53:42 - Disconnecting: bad service request ssh-connection
2010.12.01 21:51:59 - Server listening on 0.0.0.0 port 22.
2010.12.01 21:51:59 - Server listening on :: port 22.
2010.12.01 21:51:53 - Received signal 15; terminating.
2010.12.01 21:51:37 - Server listening on 0.0.0.0 port 22.
2010.12.01 21:51:37 - Server listening on :: port 22.
2010.12.01 21:51:36 - Received signal 15; terminating.
2010.12.01 21:51:33 - Server listening on 0.0.0.0 port 22.
2010.12.01 21:51:33 - Server listening on :: port 22.
2010.12.01 21:51:33 - Received SIGHUP; restarting.
2010.12.01 21:47:52 - Disconnecting: bad service request

Any help would be very much appreciated.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Can you connect with PuTTY or other SSH client?
_________________
Martin Prikryl
venkatrangan59
[View user's profile]

Joined: 2010-12-01
Posts: 2
Location: sshuser
prikryl wrote:
Can you connect with PuTTY or other SSH client?


PuTTY also fails with the same error message, if I choose "Bypass Authentication" in SSH.

If I keep an authentication method, I get a response "No authentication mechanisms available" after I enter the username, before entering a password.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Can you also try another client? PuTTY and WinSCP shared the SSH implementation, so it would be interesting to do an independent test.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License