You are not logged in.
I found something that may be a bug or a lack of the wiki, I don't know.
Context:
A host computer with sshd.service running and TigerVNC installed, openssh 7.6p1-2, tigervnc 1.8.0-3, uname -r 4.14.12-1-ARCH.
A client computer with openssh installed (same version of the host).
Purpose:
Create a ssh tunnel and see the host desktop on client (headless session).
First attempt:
On host /etc/hosts is empty and /home/myuser/.vnc/config is:
SecurityTypes=None
geometry=1200x700
localhost
alwaysshared
On client open a shell and do
ssh -i ~/.ssh/id_ed25519_myprivatekey -p5555 myuser@hostip
then start vncserver on the host with
vncserver :1
On client open another shell and do
ssh -X -i ~/.ssh/id_ed25519_myprivatekey -p5555 -L 3000:localhost:5901 myuser@hostip
Open a vncviewer like Remmina on client and try to connect to vnc localhost:3000 and it doesn't work.
Second attempt:
On host add the following to /etc/hosts:
127.0.0.1 localhost.localdomain localhost HOSTNAME
::1 localhost.localdomain localhost HOSTNAME
where HOSTNAME is the hostname choosen for the host computer.
Then do the same steps of the first attempt and everything works fine.
Since I don't know if it's a bug of openssh, tigervnc or what else, I ask you to submit a bug report or write in the wiki to edit /etc/hosts file.
Thank you!
Last edited by livix (2018-01-11 17:13:54)
Offline
What did your hosts file look like previously?
The installation guide covers adding your hostname to the hosts file.
Offline
What did your hosts file look like previously?
The installation guide covers adding your hostname to the hosts file.
My hosts file was empty, I've forgotten to edit it while installing
I've learned that not adding that line in /etc/hosts has vnc (among other things) not working as side effect!
Thank you very much, solved.
Offline
Don't forget to mark this thread [SOLVED].
https://wiki.archlinux.org/index.php/Co … ow_to_post
Offline