Page 1 of 1

Forwarding X over SSH

Posted: 26 Aug 2015, 02:10
by paulchany
Hi,

I have installed on my B2 Gentoo linux. I have followed sakaki's webpage https://github.com/sakaki-/gentoo-on-b2 to achive this.

On the system there is only root user.
I wish to run there applications which require X Window system.
So I did followings to let this happen.
On the B2 where I can't use ssh with -X option, there was installed ssh without X support.
I change the USE flag for openssh to X, in the file:
/etc/portage/package.use/packages

Code: Select all

net-misc/openssh X
Now I'm being reinstalling the openssh out there:

Code: Select all

pump emerge --ask --changed-use net-misc/openssh
I must to install xauth and xhost packages too:

Code: Select all

pump emerge --ask x11-apps/xauth x11-apps/xhost
In sshd_conf on headless server I have now:

Code: Select all

PermitRootLogin yes
X11Forwarding yes
X11DisplayOffset 10
I connect to headless server with command:

Code: Select all

ssh -Y root@serverIPaddress
from now on.