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!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!