Disconnect (code 2): unexpected service request
Hello!
I've just installed and configured WinSSHD server on my Windows server 2008r2.
I can access to my files via WinSCP, and can login with putty.Here is my command:
Here is my bzr command: bzr init-repo sftp://<email address hidden>
But the following error occurs:
Connected (version 2.0, client 1.82)
SSH <email address hidden> password:
Disconnect (code 2): unexpected service request
bzr: ERROR: Connection error: Unable to authenticate to SSH host as
<email address hidden>
Authentication failed.
Please help me figure out why the login process fails.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Bazaar Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Hi there,
It will help if you post the traceback from bzr.log.
I would guess from this that perhaps you need to enable sftp on the server?
Revision history for this message
|
#2 |
Hello!
WinSCP connects to the server with SFTP v3 protocol.
I cannot find bzr.log on Win7. Where is it?
Revision history for this message
|
#3 |
Sorry, here is the log:
H 2010-09-27 09:33:32 +0200
0.063 bzr arguments: [u'version']
0.078 looking for plugins in C:/Documents and Settings/
0.078 looking for plugins in C:/Program Files/Bazaar/
0.235 encoding stdout as sys.stdout encoding 'cp852'
0.250 return code 0
Mon 2010-09-27 09:34:16 +0200
[ 2004] 2010-09-27 09:34:16.937 INFO: tbzrcache running...
H 2010-09-27 09:34:34 +0200
0.078 bzr arguments: [u'init-repo', u'sftp://
0.078 looking for plugins in C:/Documents and Settings/
0.078 looking for plugins in C:/Program Files/Bazaar/
0.156 encoding stdout as sys.stdout encoding 'cp852'
1.796 falling back to default implementation
1.796 failed to load system host keys: [Errno 2] No such file or directory: 'C:\\Documents and Settings\
[ 5700] 2010-09-27 09:34:36.154 INFO: Connected (version 2.0, client 1.82)
2.750 Unable to look up default port for ssh
2.750 encoding stdout as sys.stdout encoding 'cp852'
[ 5700] 2010-09-27 09:34:41.638 INFO: Disconnect (code 2): unexpected service request
7.624 Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
ConnectionError: Connection error: Unable to authenticate to SSH host as
<email address hidden>
Authentication failed.
7.624 return code 3
Revision history for this message
|
#4 |
"bzr --version" should tell you where the log file is.
Revision history for this message
|
#5 |
Is there any information in the server's log? Perhaps you can turn on
more information about authentication failures there?
Revision history for this message
|
#6 |
000000000001 2010-09-27 08:09:32.830Z WinSSHD 4.26 [001] Info
Configuration loaded:
* Keypair:
MD5: 9d:77:ba:
Babble: xivak-gurot-
* Settings:
SetDefaults
server.
With domainOrder {
Clear
CreateNewWithId 1
New.domain "MATRIXONLINE"
NewCommit
}
With access {
With winAccounts {
Clear
CreateNew
With New {
winDomain "MATRIXONLINE"
winAccount "Administrator"
groupType domain
group "MATRIXONLINE"
}
NewCommit
CreateNew
With New {
winDomain "MATRIXONLINE"
winAccount "imre.laszlo"
groupType domain
group "MATRIXONLINE"
logonType interactive
sftpRootDir "C:\\Users\
}
NewCommit
}
virtGroups.
}
000000000002 2010-09-27 08:09:32.845Z WinSSHD 4.26 [240] Info
Listening on interface 0.0.0.0:22
000000000003 2010-09-27 08:09:32.845Z WinSSHD 4.26 [005] Info
Service started, executable file name:
C:\Program Files (x86)\Bitvise WinSSHD\WinSSHD.exe
000000000004 2010-09-27 08:09:37.564Z WinSSHD 4.26 [021] Info
Session thread 1001 handling connection from 87.229.83.2:2982:
Connection from 87.229.83.2:2982 accepted.
000000000005 2010-09-27 08:09:37.580Z WinSSHD 4.26 [190] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Sending version: 5353482D322E302
2E32360D0A
000000000006 2010-09-27 08:09:37.580Z WinSSHD 4.26 [022] Info
Session thread 1001 handling connection from 87.229.83.2:2982:
Client version string: SSH-2.0-
000000000007 2010-09-27 08:09:37.580Z WinSSHD 4.26 [191] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Sending SSH_MSG_KEXINIT (551 bytes, seq nr 0)
Data: 147855B7AD9BC63
D67726F757031
312C646966666
3732D67726F75
2C6773732D676
0000007737368
632C74776F666
32C626C6F7766
2D63626300000
973682D636263
6973682D63626
02B686D61632D
6D64352D39360
D39362C686D61
6E65000000000
000000000008 2010-09-27 08:09:37.580Z WinSSHD 4.26 [152] Trace
Session thread 1001 handling connection from 87.229.83.2:2982:
Starting first key exchange
000000000009 2010-09-27 08:09:37.626Z WinSSHD 4.26 [193] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Received SSH_MSG_KEXINIT (318 bytes, seq nr 0)
Data: 14D7068C583FCBD
D67726F757031
6E67652D73686
362632C626C6F
2B61657331323
5732D63626300
39362C686D616
D61632D736861
0000000000000
000000000010 2010-09-27 08:09:37.626Z WinSSHD 4.26 [196] Trace
Session thread 1001 handling connection from 87.229.83.2:2982:
Will act on first key exchange method packet
000000000011 2010-09-27 08:09:37.861Z WinSSHD 4.26 [193] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Received SSH_MSG_KEX_30 (134 bytes, seq nr 1)
Data: 1E0000008100B38
0458B6EFCFBF8
810A3B24754FF
507361DD4115F
000000000012 2010-09-27 08:09:37.861Z WinSSHD 4.26 [191] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Sending SSH_MSG_KEX_31 (631 bytes, seq nr 1)
Data: 1F000001B300000
9601C8E0AC199
61014468D06DD
3D60A1FB2B1A7
001500D2ECBF3
A9B746676AC6F
0D61D8C467575
4C071AAD460B4
40C9000000810
712B838E50BE2
D67B182ED0322
7DCCD0D3D3FF5
9B450781DA72B
F8C8767B3678B
99072CF2D4D5B
0370000000773
D8A31AF8AC461
000000000013 2010-09-27 08:09:37.861Z WinSSHD 4.26 [191] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Sending SSH_MSG_NEWKEYS (1 bytes, seq nr 2)
Data: 15
000000000014 2010-09-27 08:09:37.861Z WinSSHD 4.26 [152] Trace
Session thread 1001 handling connection from 87.229.83.2:2982:
First key exchange completed
000000000015 2010-09-27 08:09:37.861Z WinSSHD 4.26 [255] Trace
Session thread 1001 handling connection from 87.229.83.2:2982:
Key exchange: diffie-
MAC: hmac-sha1, compression: none.
000000000016 2010-09-27 08:09:37.939Z WinSSHD 4.26 [193] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Received SSH_MSG_NEWKEYS (1 bytes, seq nr 2)
Data: 15
000000000017 2010-09-27 08:09:38.220Z WinSSHD 4.26 [193] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Received SSH_MSG_
Data: 050000000C73736
000000000018 2010-09-27 08:09:38.220Z WinSSHD 4.26 [252] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Handling SSH_MSG_
000000000019 2010-09-27 08:09:38.220Z WinSSHD 4.26 [191] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Sending SSH_MSG_
Data: 060000000C73736
000000000020 2010-09-27 08:09:38.251Z WinSSHD 4.26 [193] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Received SSH_MSG_
Data: 320000000B696D7
000046E6F6E65
000000000021 2010-09-27 08:09:38.251Z WinSSHD 4.26 [252] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Entering ServerAuthentic
000000000022 2010-09-27 08:09:38.251Z WinSSHD 4.26 [252] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Handling SSH_MSG_
'ssh-connection', method 'none'
000000000023 2010-09-27 08:09:38.251Z WinSSHD 4.26 [252] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Calling OnUserAuthMetho
000000000024 2010-09-27 08:09:38.251Z WinSSHD 4.26 [252] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Authentication method is disabled
000000000025 2010-09-27 08:09:38.251Z WinSSHD 4.26 [252] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
In SendUserAuthFai
000000000026 2010-09-27 08:09:38.251Z WinSSHD 4.26 [191] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Sending SSH_MSG_
Data: 330000002270756
76F726400
000000000027 2010-09-27 08:09:38.251Z WinSSHD 4.26 [252] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Calling OnUserAuthMetho
000000000028 2010-09-27 08:09:38.251Z WinSSHD 4.26 [252] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Exiting ServerAuthentic
000000000029 2010-09-27 08:09:41.845Z WinSSHD 4.26 [193] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Received SSH_MSG_
Data: 050000000C73736
000000000030 2010-09-27 08:09:41.845Z WinSSHD 4.26 [191] Dump
Session thread 1001 handling connection from 87.229.83.2:2982:
Sending SSH_MSG_DISCONNECT (41 bytes, seq nr 5)
Data: 010000000200000
0000002656E
000000000031 2010-09-27 08:09:41.876Z WinSSHD 4.26 [094] Warning
Session thread 1001 handling connection from 87.229.83.2:2982:
The client has been disconnected, we sent the following disconnect reason:
SSH_DISCONNEC
000000000032 2010-09-27 08:09:45.017Z WinSSHD 4.26 [006] Info
Service stopped.
Revision history for this message
|
#7 |
Maybe this can help: https:/
Can you help with this problem?
Provide an answer of your own, or ask Imre László for more information if necessary.