re Paul
re Paul

Reputation: 122

Can I use a ssh client inside a Cloud Run instance to make connections to internal network

I build a docker image with openssh client stuff, build and deployment goes without errors. But when trying to make a call in a properly running Cloud Run instance, all I get is timeout errors. Cloud Run instance serves all http-connections very well.

I would like to have a plain and clear statement, that ssh-client is not supported, I get no errors in Cloud Run logs except time out errors. OpenSSH client gives out return value of 255

Upvotes: 2

Views: 11222

Answers (2)

re Paul
re Paul

Reputation: 122

The us-central1 worked after I used a external address of GCE instance as a ssh connection target. Then I tested on europe-west1 and it worked there also.

I had a IAM-warning yesterday and today when I deployed (gcloud beta run deploy ...) , I used Cloud Shell finally to clear this IAM-problem. My GCE dev instance had not IAM permissions, but the IAM problem was about allUsers/allow-unauthenticated setting, and that setting could be changed in Compute Engine Console.

I am pretty sure that I yesterday tested ssh with external address also, so maybe this was about the IAM warning on my development instance. Not sure, but now I do have a Cloud Run instance that does what I expect.

Upvotes: 1

Dustin Ingram
Dustin Ingram

Reputation: 21580

It is possible, for example this project starts an SSH tunnel to connect to a GCE instance and route traffic through it

However without more details about your network and Cloud Run configuration, it's hard to determine what's going wrong.

Upvotes: 0

Related Questions