LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connecting to vnc over an SSH tunnel (https://www.linuxquestions.org/questions/linux-networking-3/connecting-to-vnc-over-an-ssh-tunnel-4175718373/)

Turbocapitalist 11-02-2022 09:06 AM

A larger view of what?

pan64 11-02-2022 09:16 AM

Quote:

Originally Posted by lucmove (Post 6389986)
I always begin by doing everything as root, will change later. If it works as root, it has to work as non-root later or I know that permissions are getting in the way as they so often do. And root access via SSH is disabled with a password. I use a key. If even that is not secure enough, what the hey, let's just stop using passwords altogether or throw all computers in the garbage heap.

That is just wrong. root has admin rights only on the local host, nothing more. root is not a power user in databases, in any app or anywhere else (like mailer, banks, online accounts), just on the local host.
Some programs will definitely refuse to work when started with root user.
X has its own authentication mechanism where root is just a user and usually has no right to access it (just because X was started as regular user).
VNC also has its own way.

As an example root has no more or less rights to adjust resolution. You need to configure your vnc server and/or client, they are responsible for it.
You might want to look for a solution on the net, like this: https://superuser.com/questions/1843...-restarting-it

lucmove 11-02-2022 12:40 PM

The resolution problem is solved with the -geometry parameter.

Code:

# vncserver -geometry 1920x1080 -localhost
All solved now. Thank you again.


All times are GMT -5. The time now is 12:38 AM.