You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Charles Moulliard <ch...@gmail.com> on 2012/08/24 12:46:00 UTC

Remote SSH on Apache with SSH Port Forwading

Hi,

Could it be possible that ssh server (MINA) of Karaf cannot work with SSH /
Port Forwarding

Cloud instance = fabric-fuse.rhcloud.com accepting ssh port number 22
Connection initiated from a MacBook Pro and using a dummy port 22000
127.6.51.129 = internal IP address used by Apache Karaf on the cloud
instance
18101 = Karaf SSH port

REMARK : when connected to the machine UUID@fabric-fuse.rhcloud.com, I can
perform locally a ssh localhost -p 18101 -l karaf

MacBook-Pro:fabric chmoulli$ ssh -N -L "22000:127.6.51.129:18101"
UUID@fabric-fuse.rhcloud.com -v
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug1: Connecting to fabric-fuse.rhcloud.com [107.22.147.72] port 22.
debug1: Connection established.
debug1: identity file /Users/chmoulli/.ssh/id_rsa type 1
debug1: identity file /Users/chmoulli/.ssh/id_rsa-cert type -1
debug1: identity file /Users/chmoulli/.ssh/id_dsa type -1
debug1: identity file /Users/chmoulli/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
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
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'fabric-fuse.rhcloud.com' is known and matches the RSA host
key.
debug1: Found key in /Users/chmoulli/.ssh/known_hosts:18
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,gssapi-keyex,gssapi-with-mic
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/chmoulli/.ssh/id_rsa
debug1: Remote: Forced command: /usr/bin/trap-user
debug1: Remote: X11 forwarding disabled.
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: read PEM private key done: type RSA
debug1: Remote: Forced command: /usr/bin/trap-user
debug1: Remote: X11 forwarding disabled.
debug1: Authentication succeeded (publickey).
Authenticated to fabric-fuse.rhcloud.com ([107.22.147.72]:22).
debug1: Local connections to LOCALHOST:22000 forwarded to remote address
127.6.51.129:18101
debug1: Local forwarding listening on ::1 port 22000.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 22000.
debug1: channel 1: new [port listener]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
...
Nothing happens here and no communication is negotiated with ssh server of
karaf


Regards,

-- 
Charles Moulliard
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Twitter : @cmoulliard
Blog : http://cmoulliard.blogspot.com