By Jelleelaut
Dear Digital Ocean community,
I’m a developer and I’m all kinda unexperienced to hosting/linux. I know the basics of linux but that’s it. For my latest school project, we are in need of a linux server.
I’m trying to get VNC working, and I followed both of these tutorials:
Problem is, when I arrived at the very last step of the second tutorial (Step Four — Connect to Your VNC Desktop), you should enter the following command:
ssh -L 5901:127.0.0.1:5901 -N -f -l user server_ip_address
I get the following response: ssh: connect to host “here comes my server ip” port 22: Connection refused
It is weird because in step 5 from the first tutorial, they told me to change this port 22 to another port.
I really hope someone can help me, because I’ve been struggling alot with my server lately. :( Thanks in advance!
Jelle
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!
Use the port you set when you followed the first tutorial.
ssh -L 5901:127.0.0.1:5901 -N -f -l user -p your_port server_ip_address
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.