#!/bin/bash
killall ssh
/usr/bin/ssh -N -v -p 22 -c 3des neom@zen.mediamonks.net -L 1100/mail.neom.ca/26 -L 1101/irc.freenode.net/6667 & exit
moobook:~ neom$ smail
OpenSSH_3.8.1p1, OpenSSL 0.9.7i 14 Oct 2005
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to zen.mediamonks.net [217.195.116.144] port 22.
debug1: Connection established.
debug1: identity file /Users/neom/.ssh/identity type -1
debug1: identity file /Users/neom/.ssh/id_rsa type -1
debug1: identity file /Users/neom/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.5p1 FreeBSD-20030924
debug1: match: OpenSSH_3.5p1 FreeBSD-20030924 pat OpenSSH_3.2*,OpenSSH_3.3*,OpenSSH_3.4*,OpenSSH_3.5*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1
debug1: Miscellaneous failure
No credentials cache found
debug1: Miscellaneous failure
No credentials cache found
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client 3des-cbc hmac-md5 none
debug1: kex: client->server 3des-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<2048<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'zen.mediamonks.net' is known and matches the DSA host key.
debug1: Found key in /Users/neom/.ssh/known_hosts:1
debug1: ssh_dss_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/neom/.ssh/identity
debug1: Trying private key: /Users/neom/.ssh/id_rsa
debug1: Trying private key: /Users/neom/.ssh/id_dsa
debug1: read PEM private key done: type DSA
debug1: Authentication succeeded (publickey).
debug1: Connections to local port 1100 forwarded to remote address mail.neom.ca:26
debug1: Local forwarding listening on ::1 port 1100.
bind: Address already in use
debug1: Local forwarding listening on 127.0.0.1 port 1100.
bind: Address already in use
channel_setup_fwd_listener: cannot listen to port: 1100
debug1: Connections to local port 1101 forwarded to remote address irc.freenode.net:6667
debug1: Local forwarding listening on ::1 port 1101.
bind: Address already in use
debug1: Local forwarding listening on 127.0.0.1 port 1101.
bind: Address already in use
channel_setup_fwd_listener: cannot listen to port: 1101
Could not request local forwarding.
debug1: Entering interactive session.
*****
Result of second command on it's own
*****
moobook:~ neom$ /usr/bin/ssh -N -v -p 22 -c 3des neom@zen.mediamonks.net -L 1100/mail.neom.ca/26 -L 1101/irc.freenode.net/6667
OpenSSH_3.8.1p1, OpenSSL 0.9.7i 14 Oct 2005
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to zen.mediamonks.net [217.195.116.144] port 22.
debug1: Connection established.
debug1: identity file /Users/neom/.ssh/identity type -1
debug1: identity file /Users/neom/.ssh/id_rsa type -1
debug1: identity file /Users/neom/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.5p1 FreeBSD-20030924
debug1: match: OpenSSH_3.5p1 FreeBSD-20030924 pat OpenSSH_3.2*,OpenSSH_3.3*,OpenSSH_3.4*,OpenSSH_3.5*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1
debug1: Miscellaneous failure
No credentials cache found
debug1: Miscellaneous failure
No credentials cache found
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client 3des-cbc hmac-md5 none
debug1: kex: client->server 3des-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<2048<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'zen.mediamonks.net' is known and matches the DSA host key.
debug1: Found key in /Users/neom/.ssh/known_hosts:1
debug1: ssh_dss_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/neom/.ssh/identity
debug1: Trying private key: /Users/neom/.ssh/id_rsa
debug1: Trying private key: /Users/neom/.ssh/id_dsa
debug1: read PEM private key done: type DSA
debug1: Authentication succeeded (publickey).
debug1: Connections to local port 1100 forwarded to remote address mail.neom.ca:26
debug1: Local forwarding listening on ::1 port 1100.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 1100.
debug1: channel 1: new [port listener]
debug1: Connections to local port 1101 forwarded to remote address irc.freenode.net:6667
debug1: Local forwarding listening on ::1 port 1101.
debug1: channel 2: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 1101.
debug1: channel 3: new [port listener]
debug1: Entering interactive session.