push using sftp on win32 gives error if you have a ssh.exe in your path

Bug #245581 reported by Guillaume Boudreau
2
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
Bazaar GTK+ Frontends
Fix Released
Medium
Unassigned

Bug Description

If you have a ssh.exe executable in your Windows PATH (say in C:\WINDOWS\), you might get an error when the "bzr push" tries to invoke ssh.exe with the -V option.

For example: I have putty.exe renamed ssh.exe in my C:\WINDOWS\ directory. When I try to bzr push sftp://... I get: PuTTY Command Line Error: Unknown option "-V"
because bzr push executes "ssh -V" to get the SSH version from the Cygwin ssh client, but since I have a ssh.exe in my C:\WINDOWS\ directory, this executable is used instead of the Cygwin ssh.exe executable.
Simply renaming C:\WINDOWS\ssh.exe to C:\WINDOWS\ssh2.exe fixes the problem.

Note that the push will still work; I guess when "ssh -V" returns nothing (or an error), the push can still complete.
It's was just annoying to get a PuTTY error message every time I pushed something.

description: updated
Revision history for this message
Guillaume Boudreau (bougu) wrote :

The Olive GTK client seems affected, and less resilient to this problem. When trying to push using Olive, I get a floating point error and the push fails.

Revision history for this message
Mark Hammond (mhammond) wrote :

I think the main problem will be fixed in 1.6 (and might also be solved for you by setting BZR_SSH=plink) The Olive problem sounds unrelated, but I can't be sure.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

the olive problem was a progress bar bug, fixed now.

Changed in bzr-gtk:
importance: Undecided → Medium
status: New → Fix Released
Revision history for this message
John A Meinel (jameinel) wrote :

Setting the environment variable "BZR_SSH" is another valid fix for this.

Changed in bzr:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.