How to access private network and install things on app server

June 2, 2015 927 views
Networking Node.js Deployment DigitalOcean

Following this tutorial When I try to ssh as root@PRIVATE-NETWORK-IP it just hangs and never connects, is that the right idea? My app server will be accessed by ssh root@PRIVATE-NETWORK-IP and my webserver is ssh root@PUBLIC-IP?

I ended up ssh into my PUBLIC-SERVER-IP then created a program with the private id instead of the private network.

2 Answers

Use the Public IP to connect.

The Private IP works only internal from DO Server to DO Server at same Location e.g for a cluster.

You can't reach the Private IP from the Internet.

Both the public IP address and the private IP address point to the same droplet/server. As @eldin said, the private network is meant for communication between droplets in the same datacenter, so to SSH into your droplet from your local workstation, you will need to connect to the public IP address.

Have another answer? Share your knowledge.