Skip to content

Instantly share code, notes, and snippets.

@rlivsey
Created February 2, 2012 11:19
Show Gist options
  • Save rlivsey/1722972 to your computer and use it in GitHub Desktop.
Save rlivsey/1722972 to your computer and use it in GitHub Desktop.
Can't SSH tunnel using aliases
# ~/.ssh/config
Host linode_server
HostName 178.79.138.66
# This works
$ ssh 178.79.138.66 -L 9999:178.79.138.66:9200 -N
# This doesn't (should map to same address via ~/.ssh/config)
$ ssh linode_server -L 9999:linode_server:9200 -N
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
channel 2: open failed: administratively prohibited: open failed
^CKilled by signal 2.
$ ssh -vvv linode_search1 -L 9200:linode_search1:9200 -N
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /Users/rlivsey/.ssh/config
debug1: Applying options for linode_search1
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 178.79.138.66 [178.79.138.66] port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /Users/rlivsey/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /Users/rlivsey/.ssh/id_rsa type 1
debug1: identity file /Users/rlivsey/.ssh/id_rsa-cert type -1
debug1: identity file /Users/rlivsey/.ssh/id_dsa type -1
debug1: identity file /Users/rlivsey/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3p1 Debian-3ubuntu6
debug1: match: OpenSSH_5.3p1 Debian-3ubuntu6 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.6
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 141/256
debug2: bits set: 532/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: host 178.79.138.66 filename /Users/rlivsey/.ssh/known_hosts
debug3: check_host_in_hostfile: host 178.79.138.66 filename /Users/rlivsey/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 12
debug1: Host '178.79.138.66' is known and matches the RSA host key.
debug1: Found key in /Users/rlivsey/.ssh/known_hosts:12
debug2: bits set: 524/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /Users/rlivsey/.ssh/id_rsa (0x7fc5a3424390)
debug2: key: /Users/rlivsey/.ssh/id_dsa (0x0)
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/rlivsey/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug2: input_userauth_pk_ok: fp 41:b1:6f:00:53:b4:e4:55:ea:92:57:ac:59:21:1e:71
debug3: sign_and_send_pubkey: RSA 41:b1:6f:00:53:b4:e4:55:ea:92:57:ac:59:21:1e:71
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
Authenticated to 178.79.138.66 ([178.79.138.66]:22).
debug1: Local connections to LOCALHOST:9200 forwarded to remote address linode_search1:9200
debug3: channel_setup_fwd_listener: type 2 wildcard 0 addr NULL
debug3: sock_set_v6only: set socket 5 IPV6_V6ONLY
debug1: Local forwarding listening on ::1 port 9200.
debug2: fd 5 setting O_NONBLOCK
debug3: fd 5 is O_NONBLOCK
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 9200.
debug2: fd 6 setting O_NONBLOCK
debug3: fd 6 is O_NONBLOCK
debug1: channel 1: new [port listener]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 7 setting TCP_NODELAY
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 8 setting TCP_NODELAY
debug3: fd 8 is O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56975, nchannels 4
debug3: channel 2: status: The following connections are open:
debug3: channel 2: close_fds r 7 w 7 e -1
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56976, nchannels 3
debug3: channel 3: status: The following connections are open:
debug3: channel 3: close_fds r 8 w 8 e -1
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 7 setting TCP_NODELAY
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 8 setting TCP_NODELAY
debug3: fd 8 is O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56977, nchannels 4
debug3: channel 2: status: The following connections are open:
debug3: channel 2: close_fds r 7 w 7 e -1
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56978, nchannels 3
debug3: channel 3: status: The following connections are open:
debug3: channel 3: close_fds r 8 w 8 e -1
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 7 setting TCP_NODELAY
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 8 setting TCP_NODELAY
debug3: fd 8 is O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56979, nchannels 4
debug3: channel 2: status: The following connections are open:
#3 direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56980 (t3 r-1 i0/0 o0/0 fd 8/8 cc -1)
debug3: channel 2: close_fds r 7 w 7 e -1
channel 3: open failed: administratively prohibited: open failed
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56980, nchannels 3
debug3: channel 3: status: The following connections are open:
debug3: channel 3: close_fds r 8 w 8 e -1
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 7 setting TCP_NODELAY
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 8 setting TCP_NODELAY
debug3: fd 8 is O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56981, nchannels 4
debug3: channel 2: status: The following connections are open:
debug3: channel 2: close_fds r 7 w 7 e -1
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56982, nchannels 3
debug3: channel 3: status: The following connections are open:
debug3: channel 3: close_fds r 8 w 8 e -1
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 7 setting TCP_NODELAY
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 8 setting TCP_NODELAY
debug3: fd 8 is O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56983, nchannels 4
debug3: channel 2: status: The following connections are open:
debug3: channel 2: close_fds r 7 w 7 e -1
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56984, nchannels 3
debug3: channel 3: status: The following connections are open:
debug3: channel 3: close_fds r 8 w 8 e -1
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 7 setting TCP_NODELAY
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 8 setting TCP_NODELAY
debug3: fd 8 is O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56985, nchannels 4
debug3: channel 2: status: The following connections are open:
debug3: channel 2: close_fds r 7 w 7 e -1
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56986, nchannels 3
debug3: channel 3: status: The following connections are open:
debug3: channel 3: close_fds r 8 w 8 e -1
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 7 setting TCP_NODELAY
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 8 setting TCP_NODELAY
debug3: fd 8 is O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56987, nchannels 4
debug3: channel 2: status: The following connections are open:
debug3: channel 2: close_fds r 7 w 7 e -1
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56988, nchannels 3
debug3: channel 3: status: The following connections are open:
debug3: channel 3: close_fds r 8 w 8 e -1
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 7 setting TCP_NODELAY
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 8 setting TCP_NODELAY
debug3: fd 8 is O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56989, nchannels 4
debug3: channel 2: status: The following connections are open:
debug3: channel 2: close_fds r 7 w 7 e -1
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56990, nchannels 3
debug3: channel 3: status: The following connections are open:
debug3: channel 3: close_fds r 8 w 8 e -1
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 7 setting TCP_NODELAY
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 8 setting TCP_NODELAY
debug3: fd 8 is O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56991, nchannels 4
debug3: channel 2: status: The following connections are open:
debug3: channel 2: close_fds r 7 w 7 e -1
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56992, nchannels 3
debug3: channel 3: status: The following connections are open:
debug3: channel 3: close_fds r 8 w 8 e -1
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 7 setting TCP_NODELAY
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 8 setting TCP_NODELAY
debug3: fd 8 is O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56993, nchannels 4
debug3: channel 2: status: The following connections are open:
debug3: channel 2: close_fds r 7 w 7 e -1
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56994, nchannels 3
debug3: channel 3: status: The following connections are open:
debug3: channel 3: close_fds r 8 w 8 e -1
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 7 setting TCP_NODELAY
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 8 setting TCP_NODELAY
debug3: fd 8 is O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56995, nchannels 4
debug3: channel 2: status: The following connections are open:
debug3: channel 2: close_fds r 7 w 7 e -1
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56996, nchannels 3
debug3: channel 3: status: The following connections are open:
debug3: channel 3: close_fds r 8 w 8 e -1
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 7 setting TCP_NODELAY
debug3: fd 7 is O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 9200 forwarding to linode_search1 port 9200 requested.
debug2: fd 8 setting TCP_NODELAY
debug3: fd 8 is O_NONBLOCK
debug3: fd 8 is O_NONBLOCK
debug1: channel 3: new [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
debug2: channel 2: zombie
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56997, nchannels 4
debug3: channel 2: status: The following connections are open:
debug3: channel 2: close_fds r 7 w 7 e -1
debug2: channel 3: zombie
debug2: channel 3: garbage collecting
debug1: channel 3: free: direct-tcpip: listening port 9200 for linode_search1 port 9200, connect from ::1 port 56998, nchannels 3
debug3: channel 3: status: The following connections are open:
debug3: channel 3: close_fds r 8 w 8 e -1
^Cdebug1: channel 0: free: port listener, nchannels 2
debug3: channel 0: status: The following connections are open:
debug3: channel 0: close_fds r 5 w 5 e -1
debug1: channel 1: free: port listener, nchannels 1
debug3: channel 1: status: The following connections are open:
debug3: channel 1: close_fds r 6 w 6 e -1
Killed by signal 2.
@rlivsey
Copy link
Author

rlivsey commented Feb 2, 2012

This works:

$ ssh linode_search -L 9200:localhost:9200 -N

Obviously the 2nd part is run on the server and it doesn't know anything about my local server alias.

@rajeshkannans
Copy link

Thanks rlivsey, your comment solved my issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment