Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: kmhill on February 06, 2018, 07:07:21 PM
-
Hello folks;
I've had good luck with a first RasPi-0W system that I've configured. I have an X-Window server running on a Win7 machine and am connecting using ssh. The issue is that to summarize my notes, I'm making a new second system. I have TC.tcz as well as openssh.tcz installed. When I start the second system I get the following. The -Y option is for forwarding X11 messages.
$ ssh -Y tc@192.168.137.2
tc@192.168.137.2's password:
X11 forwarding request failed on channel 0
While ssh is connecting, it's not able to do X11 forwarding. In digging about I'm seeing comments about xauth, a magic cookie in .Xauth, as well as xhost. Any and all comments will be appreciated.
Krista
-
Hi,
my ~/.ssh/config on the system I'm ssh'ing from looks like this:
Host pi3
User tc
HostName 192.168.0.3
#ForwardX11 yes
#ForwardX11Trusted yes
XAuthLocation /usr/local/bin/xauth
AddressFamily inet
When I need to forward X11 apps, I uncomment the respective two lines by removeing the hashes ("#").
Otherwise, Midnight Commander comes in very handy, too:
mc "$PWD" "sh://pi3/~"
-
Hi Misalf;
Thanks for your note. In digging it looks to me that uncommenting those lines has the same effect as using the -Y option. I'm still trying...
Krista
-
I had to use those two line in order for the -Y option to work in the first place.
-
Okay, that's related to the machine you're connecting from.
In digging I found something else in TinyCore. The configuration file for sshd comes with X11 forwarding turned off. I had a vague memory of previously hand editing that file. This time I used nano to edit the configuration file.
$ sudo nano /usr/local/etc/ssh/sshd_config
In the file, next search for the text "X11Forwarding" and change that line and the next to look like the following:
X11Forwarding yes
X11DisplayOffset 10
With the edits made, to make it permanent you can insert the configuration file name to the end of /opt/.filetool.lst
but of course without the leading / . Next, reboot or otherwise restart/reload sshd
So far, so good.
Krista