Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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

Can you also try another client? PuTTY and WinSCP shared the SSH implementation, so it would be interesting to do an independent test.
venkatrangan59

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

martin 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

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

Can you connect with PuTTY or other SSH client?
venkatrangan59

Error connecting: "bad service request ssh-connection"

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.