vmware-archive / gcp-pcf-quickstart

Install Pivotal Cloud Foundry on Google Cloud Platform With One Command
Apache License 2.0
57 stars 28 forks source link

ssh-ing to instances from jumpbox #26

Open robertroeser opened 6 years ago

robertroeser commented 6 years ago

Hi,

I'm able to get to the jumpbox ok, but I can't figure out how to ssh to instances from the jumpbox. I checked the documentation, and I can't find an example of how to do this? Tried various usernames etc, and can't get it to work.

Thanks, Robert

gzussa commented 6 years ago

I am having the same issue. To work around it I added the network tag (for port 22) on the instance I want to ssh to. However, I am not able to use BOSH or any other tools. So, I would love to know about the proper way to ssh to the ops manager with the relevant user so that I can use bosh cli and other cloud foundry related commands.

mgoddard-pivotal commented 5 years ago

I'm curious about this as well, since I'd like to access Ops Man to do some things with Cred Hub. There haven't been any comments on this since November 5, so is it a non-issue for most folks? Could someone offer a breadcrumb ;-)

mattysweeps commented 5 years ago

This doesn't solve the problem, but I was able to use eval util/target_bosh.sh script to set up my environment and then I could bosh ssh into instances. This requires the openBSD version of netcat to work (see https://github.com/cloudfoundry/bosh-cli/issues/328) This doesn't solve @gzussa 's use case.

Another thing to check are the SSH keys in the GCE metadata section. In theory, a project wide SSH key should be able to ssh in to each machine.

mgoddard-pivotal commented 5 years ago

Thanks, @mattysweeps. I'll check my SSH keys and try again, and the bosh ssh route makes sense as a fallback.

gzussa commented 5 years ago

@mattysweeps What do you think is the best was to use bosh on the VM? How do you set it up?