By mpavey
I set up VNC on my Droplet using the instructions here. I then created an SSH tunnel from my Mac using this Terminal command:
ssh -L 5901:localhost:5901 vnc@IP
Initially this worked well, after entering my password a connection was created and I was then able to use Screen Sharing to connect to the machine using localhost:5901.
All of a sudden though, the connection dropped and the Terminal started outputting:
channel 3: open failed: connect failed: Connection refused
every couple of seconds. Disconnecting and reconnecting, after asking my password, resumes this same behavior.
How can I fix it? It seems very odd that it started happening with no action on my part.
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!
Thanks @BrookDO ! Since this was almost two years ago it’s no longer relevant to me…but hopefully this helps someone else! 😀
It’s likely that VNC is not running on your server, and that is the issue you are seeing. The log files for VNC will probably show you the error, and point towards a solution - /var/log/
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.