Forwarding X over SSH
Posted: 26 Aug 2015, 02:10
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
Now I'm being reinstalling the openssh out there:
I must to install xauth and xhost packages too:
In sshd_conf on headless server I have now:
I connect to headless server with command:
from now on.
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
Code: Select all
pump emerge --ask --changed-use net-misc/openssh
Code: Select all
pump emerge --ask x11-apps/xauth x11-apps/xhost
Code: Select all
PermitRootLogin yes
X11Forwarding yes
X11DisplayOffset 10
Code: Select all
ssh -Y root@serverIPaddress