How to Install and Configure VNC on Ubuntu 20.04 using Different SSH Port (Not port 22)

Following these instructions but Step 3 does not work when the SSH port is not port 22:

What would the instructions be if the SSH port is port 9999 for example?


Submit an 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.

Hello, @en1apcw

Have you tried to specify the custom ssh port in the command in the example? The -p <port> option can be used to specify the port number to connect to when using the ssh command on Linux.

Can you please share what is the output that you get when you execute the ssh command?

Regards, Alex