Here is the log message
...
Starting interactive shell on job uaa_z1/0
ssh: connect to host 10.244.0.130 port 3222: Connection refused
…
Original Message
Sender:yancey0623yancey0623(a)163.com
Recipient:cf-bosh(a)lists.cloudfoundry.org
Date:Friday, Dec 18, 2015 17:27
Subject:bosh ssh port
Hi All,
when i use "bosh ssh ", it use the ssh session port instead 22. For example, my ssh sesssion's port is 3222,
I can not ssh to my vm correct. Is this a bug?
I find the code in bosh_cli/lib/commands/ssh.rb:186 blow:
if gateway port = gateway.open(session['ip'], 22) known_host_option = ssh_session.ssh_known_host_option(port) ssh_session_pid = Process.spawn('ssh', "#{ssh_session.user}@localhost", '-p', port.to_s, private_key_option, skip_strict_host_key_checking, known_host_option) Process.waitpid(ssh_session_pid) gateway.close(port) else