Comment 20 for bug 1385147

Revision history for this message
FragBis (fabricedant) wrote :

For people having issues with the paramiko.patch it's certainly because you are running on 64 bits OS (I've experienced this issue too on my Mageia, 64 bit version). I've just read the patch and understood what I had to modify.
My solution is for advanced users only (because any changes may cause some bugs).

Backup the original file "/usr/lib64/mysql-workbench/modules/wb_admin_ssh.py" to "/usr/lib64/mysql-workbench/modules/wb_admin_ssh.py.orig", if not done yet:
     cp /usr/lib64/mysql-workbench/modules/wb_admin_ssh.py /usr/lib64/mysql-workbench/modules/wb_admin_ssh.py.orig

Open "/usr/lib64/mysql-workbench/modules/wb_admin_ssh.py" with any editor (as root, or sudoer).

Edit at line 90, just add the following:

            else:
                m.add_int(self.default_window_size)
                m.add_int(self.default_max_packet_size)

Same at line 108 (counting the previous lines you added), just add:

            else:
                chan._set_window(self.default_window_size, self.default_max_packet_size)

That just fixed the problem for me. I relaunched mysql-workbench and could connect my remote server using SSH tunnel as well.

I don't know if this will fix the issues mentionned at #18, but that was the message I had when I tried to patch mysql-workbench.

What I've understood is: the original python script do not handle any "else" case if some conditions are not satisfied at line 88. The patch contains the "else" part that set some default values to some object properties in any case and prevents that annoying bug.