[Parti-discuss] Fwd: [PATCH] SSH enhancements (port and compression) for v. 0.0.6

Fredrik Klasson scientica at gmail.com
Fri May 1 05:54:19 EDT 2009


Hello,
I'm not sure what I did wrong, but it seems this mail didn't make it to the 
mailing list when I sent it last time (can't see it in the archives at least).  
So I'm trying again (this time using gmail instead of my ISP's mail server).
I'm sorry if the fwd'd mail ends up twice in your inboxes.

Cheers
/Fredrik
---------------  Vidarebefordrat brev  ----------------

Rubrik: [PATCH] SSH enhancements (port and compression) for v. 0.0.6
Datum: måndagen den 27 april 2009
Från: Fredrik Klasson <scientica at gmail.com>
Till: parti-discuss at partiwm.org

Hello,

(when I'm saying ssh I mean OpenSSH)

Since I have the bad/obscure/fun habit of trying to avoid script-kiddies 
probing port 22, I tend to run in to the problems of applications assuming 
that ssh is always using the default port (22/tcp). So, instead of just 
complaining I thought I'd make life a little more fun, so I created this 
little patch against partial-all-0.0.6.
This patch actually adds 2½ features: 
 * ability to connect/attach via ssh on a non-standard port
 * ability to enable (actually request, please refer to ssh(1)) ssh 
compression.
 * (the ½ feature) A  little extra debug output, debug features "/ssh[1-3]?/", 
which i.e. adds -v or -v up to -vvv for ssh. 

The compression is something I've noticed makes quite a difference when I'm 
using ssh via a wifi link, which tend to be like a modem - slow and 
unreliable. For fast links (e.g. LAN) it's according to ssh(1) probably slower 
(though, I haven't noticed any major degradation when using -C locally).

The new format for attaching to ssh is:
  ssh:host[[:port]:display]
compared to the old:
  ssh:host[:display]

I'm pretty confident this patch won't break anything but only add the listed 
features. Though, I'm not sure I've used the --debug argument correctly, see 
the FIXME comment.

Btw, I'm probably going to start loving xpra just as I do screen :). Though, 
I've had some issues with input not working with xterm (I only get mojibake 
from my keystrokes). But that's a different issue .:)

Happy Hacking 8^)
/Fredrik (aka scientica)

P.S: I'm not (yet ;) on the parti-discuss mailing list, and I'm off to campus 
for a lab-session now so I don't have time to subscribe just now. So don't 
forget to CC me if you reply.

-- 
After all, if you are in school to study computer science, then a professor
saying "use this proprietary software to learn computer science" is the
same as English professor handing you a copy of Shakespeare and saying
"use this book to learn Shakespeare without opening the book itself."
  -- Bradley Kuhn


-------------------------------------------------------
-- 
After all, if you are in school to study computer science, then a professor
saying "use this proprietary software to learn computer science" is the
same as English professor handing you a copy of Shakespeare and saying
"use this book to learn Shakespeare without opening the book itself."
  -- Bradley Kuhn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: parti-all-0.0.6-ssh_enhancements.patch
Type: text/x-patch
Size: 7211 bytes
Desc: not available
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090501/e47d9677/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090501/e47d9677/attachment.pgp>


More information about the Parti-discuss mailing list