That should work since jabber uses a single connection for everything. What problems are you having? Add the -v option to ssh to get more info. Are you sure that's the correct port?

BTW, you can use -N option to just forward ports.

 -N      Do not execute a remote command.  This is useful if you just want
             to forward ports (protocol version 2 only).


On Wed, 14 Nov 2001, Bob Tanner wrote:

> Anyone been able to tunnel gabber through ssh?
> 
> I tried this:
> 
> private% ssh -L 5222:jabber.com:5222 public
> public%
> 
> In other xterm:
> 
> private% gabber (with host set to localhost, port 5222)
> 
> -- 
> Minneapolis St. Paul Twin Cities MN        | Phone : (952)943-8700
> http://www.mn-linux.org Minnesota Linux    | Fax   : (952)943-8500
> Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9 
> 
> _______________________________________________
> Twin Cities Linux Users Group Mailing List - Minneapolis/St. Paul, Minnesota
> http://www.mn-linux.org
> tclug-list at mn-linux.org
> https://mailman.mn-linux.org/mailman/listinfo/tclug-list