ssh2 -L 1234:localhost:23 username@host all traffic coming to port 1234 on the client will be forwarded to port 23 on the server (host).