You are not logged in.

#1 2018-01-11 15:10:57

livix
Member
Registered: 2012-08-01
Posts: 6

[SOLVED] /etc/hosts and TigerVNC

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

#2 2018-01-11 15:23:31

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] /etc/hosts and TigerVNC

What did your hosts file look like previously?

The installation guide covers adding your hostname to the hosts file.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-01-11 15:57:12

livix
Member
Registered: 2012-08-01
Posts: 6

Re: [SOLVED] /etc/hosts and TigerVNC

slithery wrote:

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 yikes
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

#4 2018-01-11 16:25:39

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] /etc/hosts and TigerVNC

Don't forget to mark this thread [SOLVED].
https://wiki.archlinux.org/index.php/Co … ow_to_post


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB