Following this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04. 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 127.0.0.1 instead of the private network.
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!
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.
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.