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).
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.
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: mysql-workbench /modules/ wb_admin_ ssh.py /usr/lib64/ mysql-workbench /modules/ wb_admin_ ssh.py. orig
cp /usr/lib64/
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.