What limitations be placed on bzr if paramiko is not used?

John Arbash Meinel john at arbash-meinel.com
Mon Oct 3 14:39:47 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/3/2011 4:29 PM, Ghee Teo wrote:
> On 10/03/11 14:21, John Arbash Meinel wrote: ...
> 
>>>> Yes, we can use openssh to do 'bzr+ssh'. We *can* use
>>>> paramiko for ssh as well, but we default to openssh if it is
>>>> available.
>>>>> Thanks! Just a bit more clarification. so bzr will use
>>>>> openssh as is, right? I don't see a python module for
>>>>> openssh. Also is there a particular version of openssh is
>>>>> required? I am working to make bzr (2.1.1) to run on
>>>>> Solaris which has its own version of ssh but do uses
>>>>> openssl 0x1000004f Thanks, -Ghee
> We support "OpenSSH", "SSH Secure Shell", "lsh", and "plink" as 
> something that we can use for running 'ssh' and getting a
> connection. All of them need a bit of changes to the arguments we
> pass, so we first run "ssh -V" to figure out what version of "ssh"
> we are running against.
>> I grep my version, bzr-2.1.1$ find . -exec grep 'ssh -V' {} \; 
>> :param version: The output of 'ssh -V' like command. # sometimes
>> reports 'ssh -V' incorrectly with 'plink' in it's :param version:
>> The output of 'ssh -V' like command. # sometimes reports 'ssh -V'
>> incorrectly with 'plink' in it's
> 
>> I can't see the bit of code that does this. Is that support in a
>> later version of bzr?
> 
>> on my system, bzr-2.1.1$ ssh -V Sun_SSH_2.0, SSH protocols
>> 1.5/2.0, OpenSSL 0x1000004f
> 
>> Is this supported?
> 
>> Thanks again for your helps on this.
> 
>> -Ghee

- From what I can see, it isn't. The only reason it wouldn't be is
because we don't know what flags to pass to 'Sun_SSH_2.0'.

For example for "openssh" we pass:
        args = [self.executable_path,
                '-oForwardX11=no', '-oForwardAgent=no',
                '-oClearAllForwardings=yes',
                '-oNoHostAuthenticationForLocalhost=yes']
       -p for port
       -l for username
       -s sftp  if we need to request sftp directly


for 'SSHCorp' we use:
    args = [self.executable_path, '-x']
    -p for port
    -l for username
    -s sftp for if needed

(So instead of a bunch of specific '-oXXX' flags, we just pass '-x'.)

'lsh' doesn't support -o or -x, and it uses '--subsystem' instead of '-s'.

'plink' is very different.

If you can help us determine the flags that Sun_SSH_2.0 uses, then we
can implement and support it.

Or potentially it is close enough to openssh that you could just set
"BZR_SSH=openssh" and things will just work.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6JyTMACgkQJdeBCYSNAAPMdgCgjSdEY8sEWAZmh0O69lWqlO8o
xnYAninNYrkcdgFEwlQtqGnHtgNWxoeF
=HEp/
-----END PGP SIGNATURE-----



More information about the bazaar mailing list