Report this

What is the reason for this report?

How do I enable to access ssh server outside from App Platform?

Posted on May 15, 2022

I got “ssh: connect to host x.x.x.x port 22: Operation timed out” in my app in App Platform.

My app needs to execute commands on servers outside via ssh protocol.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It works on Render Web Service with the same code.

Hey @immysec,

unfortunately, it’s not possible to SSH into a component because SSH is not enabled. I believe a similar question was asked before in our community which you can check here:

https://www.digitalocean.com/community/questions/how-to-enable-ssh-on-app-platform

Hope that helps!

Hello,

The App Platform does not come with SSH access, you can access your components via the web console as described here:

https://docs.digitalocean.com/products/app-platform/concepts/console/

The App Platform is based on Kubernetes, and you can think of your services as immutable. Meaning that if you need to make any changes, you just push your code to GitHub and then it gets auto deployed to the App Platform.

If you need to have SSH access, you could always go with a Droplet, but in this case, you will need to manage your server and deployments.

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Dark mode is coming soon.