Password authentication issue

Asked by lz.li

Hi,

I met one issue when I try to deploy password authentication based on openssh on windows and your help is needed!

I finished all the configuration on server site, and it can be access thru bzr+ssh from the PC installed cygwin. But unfortunately, I could not access the server from the PC installed openssh client program by bzr+ssh://10.177.75.51/D:/Bazaar/bzr_root_test/MyTestProject1/Trunk/.

When I try to checkout from repository, the bzr would freeze and the only way to close it is to kill it in task manager.
And the bzr log information is listed as follow:
Thu 2011-11-24 17:08:29 +0800
0.109 bazaar version: 2.4.1
0.109 bzr arguments: [u'qsubprocess', u'--bencode', u'l8:checkout68:bzr+ssh://10.177.75.51/D:/Bazaar/bzr_root_test/MyTestProject1/Trunk/15:D:\\lz_tmp\\Test1e']
0.125 looking for plugins in C:/Documents and Settings/mhmhu/Application Data/bazaar/2.0/plugins
0.125 looking for plugins in C:/Program Files/Bazaar/plugins
0.156 encoding stdout as osutils.get_user_encoding() 'cp936'
0.250 bazaar version: 2.4.1
0.250 bzr arguments: [u'checkout', u'bzr+ssh://10.177.75.51/D:/Bazaar/bzr_root_test/MyTestProject1/Trunk/', u'D:\\lz_tmp\\Test1']
0.250 encoding stdout as osutils.get_user_encoding() 'cp936'
0.297 Unable to look up default port for ssh
0.422 ssh implementation is OpenSSH

It always stops at this step!!

I have tested the ssh connection by "ssh username@host" in command line, it works well and after I input the password, I can access the home on server.

It really confused me and what is the difference between cygwin and openssh? I only installed openssh client on my own PC and do no any configuration, and on server I installed openssh server.

To summerize,
server: openssh server program
PC1: installed cygwin, no additional configuration, successfully access bzr by bzr+ssh://10.177.75.51/D:/Bazaar/bzr_root_test/MyTestProject1/Trunk/.
PC2: installed openssh client program, no additional configuration, fail to access bzr by bzr+ssh://10.177.75.51/D:/Bazaar/bzr_root_test/MyTestProject1/Trunk/, and always freeze!

Best regards!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Martin Packman
Solved:
Last query:
Last reply:
Revision history for this message
Best Martin Packman (gz) said :
#1

The openssh client can't access the terminal when run under windows, bazaar has to use it via a subprocess and read the streams, this means the password prompt never arrives to you. If you can use public keys authentication instead of needing to enter the password each time, that would avoid the issue.

Generally on windows we suggest using paramiko as the ssh client, which doesn't have this problem for password prompts.

Revision history for this message
lz.li (lizun619) said :
#2

Thanks Martin Packman, that solved my question.