Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Interchangeable parts won't.


computers / comp.sys.raspberry-pi / Re: SSH -X doesn't seem to work.

SubjectAuthor
* SSH -X doesn't seem to work.bob prohaska
+* Re: SSH -X doesn't seem to work.Ahem A Rivet's Shot
|+* Re: SSH -X doesn't seem to work.A. Dumas
||+- Re: SSH -X doesn't seem to work.A. Dumas
||`* Re: SSH -X doesn't seem to work.Chris Green
|| `* Re: SSH -X doesn't seem to work.Jim Jackson
||  `- Re: SSH -X doesn't seem to work.Chris Green
|`* Re: SSH -X doesn't seem to work.Theo
| +- Re: SSH -X doesn't seem to work.Mike Scott
| `* Re: SSH -X doesn't seem to work.bob prohaska
|  `* Re: SSH -X doesn't seem to work.Computer Nerd Kev
|   `* Re: SSH -X doesn't seem to work.bob prohaska
|    +* Re: SSH -X doesn't seem to work.A. non Eyemouse
|    |`* Re: SSH -X doesn't seem to work.Theo
|    | `- Re: SSH -X doesn't seem to work.A. non Eyemouse
|    `* Re: SSH -X doesn't seem to work.A. Dumas
|     `* Re: SSH -X doesn't seem to work.bob prohaska
|      `* Re: SSH -X doesn't seem to work.A. Dumas
|       `* Re: SSH -X doesn't seem to work.bob prohaska
|        `* Re: SSH -X doesn't seem to work.A. Dumas
|         `* Re: SSH -X doesn't seem to work.bob prohaska
|          `* Re: SSH -X doesn't seem to work.Mike Scott
|           `* Re: SSH -X doesn't seem to work.bob prohaska
|            `* Re: SSH -X doesn't seem to work.Mike Scott
|             `* Re: SSH -X doesn't seem to work.Computer Nerd Kev
|              `* Re: SSH -X doesn't seem to work.Mike Scott
|               `* Re: SSH -X doesn't seem to work.Jim Jackson
|                `- Re: SSH -X doesn't seem to work.Mike Scott
`- Re: SSH -X doesn't seem to work.jeshgrca

Pages:12
Re: SSH -X doesn't seem to work.

<64220bca@news.ausics.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6297&group=comp.sys.raspberry-pi#6297

  copy link   Newsgroups: comp.sys.raspberry-pi
Message-ID: <64220bca@news.ausics.net>
From: not@telling.you.invalid (Computer Nerd Kev)
Subject: Re: SSH -X doesn't seem to work.
Newsgroups: comp.sys.raspberry-pi
References: <tvau8t$3okdj$1@dont-email.me> <20230321065947.d136a9f564a18f8297b22862@eircom.net> <MTq*vhMbz@news.chiark.greenend.org.uk> <tvdds3$ae6q$1@dont-email.me> <641a49a5@news.ausics.net> <tvfd2d$n8pt$1@dont-email.me> <tvgtvi$11sie$1@dont-email.me> <tvj8b2$1h3f6$1@dont-email.me> <tvk5r3$1lrak$1@dont-email.me> <tvkjkr$1o4vt$1@dont-email.me> <tvme8a$24c4j$1@dont-email.me> <tvqj6j$2t374$1@dont-email.me> <tvs9mj$38nr8$1@dont-email.me> <tvsg3e$39qm3$1@dont-email.me> <tvsoab$3b8m3$1@dont-email.me>
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586))
NNTP-Posting-Host: news.ausics.net
Date: 28 Mar 2023 07:34:03 +1000
Organization: Ausics - https://www.ausics.net
Lines: 18
X-Complaints: abuse@ausics.net
Path: i2pn2.org!i2pn.org!news.bbs.nz!news.ausics.net!not-for-mail
 by: Computer Nerd Kev - Mon, 27 Mar 2023 21:34 UTC

Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
>
> What I don't get is that since the sshd programs on linux and fbsd are
> essentially the same code, just why, with the same configuration file,
> one works and the other not.

Are you sure that FreeBSD's SSHd is reading the configuration file
that you think it is? Maybe the config file location, set at build
time, moved in the past and you replaced and old copy of the config
file that wasn't being used anymore.

Failing that, I'd try setting both ends (client and server) to
defaults (empty config file) except for the one line enabling X11
forwarding in SSHd, and see if that works.

--
__ __
#_ < |\| |< _#

Re: SSH -X doesn't seem to work.

<tvu87u$3m0vg$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6298&group=comp.sys.raspberry-pi#6298

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: usenet.16@scottsonline.org.uk.invalid (Mike Scott)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH -X doesn't seem to work.
Date: Tue, 28 Mar 2023 09:24:30 +0100
Organization: Scott family
Lines: 50
Message-ID: <tvu87u$3m0vg$1@dont-email.me>
References: <tvau8t$3okdj$1@dont-email.me>
<20230321065947.d136a9f564a18f8297b22862@eircom.net>
<MTq*vhMbz@news.chiark.greenend.org.uk> <tvdds3$ae6q$1@dont-email.me>
<641a49a5@news.ausics.net> <tvfd2d$n8pt$1@dont-email.me>
<tvgtvi$11sie$1@dont-email.me> <tvj8b2$1h3f6$1@dont-email.me>
<tvk5r3$1lrak$1@dont-email.me> <tvkjkr$1o4vt$1@dont-email.me>
<tvme8a$24c4j$1@dont-email.me> <tvqj6j$2t374$1@dont-email.me>
<tvs9mj$38nr8$1@dont-email.me> <tvsg3e$39qm3$1@dont-email.me>
<tvsoab$3b8m3$1@dont-email.me> <64220bca@news.ausics.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 28 Mar 2023 08:24:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a7ee118be999676a1d8166ccd010d8e";
logging-data="3867632"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ktLGPwTO5HXlXUdir5CdczTO4DztV6Lg="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Cancel-Lock: sha1:h8Kdk2tPXh16uaeLtlbpTV83Ka8=
Content-Language: en-GB
In-Reply-To: <64220bca@news.ausics.net>
 by: Mike Scott - Tue, 28 Mar 2023 08:24 UTC

On 27/03/2023 22:34, Computer Nerd Kev wrote:
> Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
>>
>> What I don't get is that since the sshd programs on linux and fbsd are
>> essentially the same code, just why, with the same configuration file,
>> one works and the other not.
>
> Are you sure that FreeBSD's SSHd is reading the configuration file
> that you think it is? Maybe the config file location, set at build
> time, moved in the past and you replaced and old copy of the config
> file that wasn't being used anymore.
>
> Failing that, I'd try setting both ends (client and server) to
> defaults (empty config file) except for the one line enabling X11
> forwarding in SSHd, and see if that works.
>

Thanks for the comment.

Yes, I'm sure the files are right; nevertheless I've tried a fresh
almost-empty config file:
root@kirk:/etc/ssh # cat sshd_TEST
X11Forwarding yes

And I /still/ get on the client end:

mike@spock ~ $ ssh -X -v -F /dev/null kirk
......
debug1: Requesting X11 forwarding with authentication spoofing.
......
Running /usr/local/bin/xauth remove unix:11.0
/usr/local/bin/xauth add unix:11.0 MIT-MAGIC-COOKIE-1
f6a4308d2f8fd240103a0454872782ec
Erase set to backspace.
On kirk.scotts remote display set to 192.168.0.9:0
(which is wrong)

I've also tried a raspberry OS client in place of mint; same problem
unsurprisingly.

(BTW, I have no personal config files on either client or server; just
the system ones in /etc/ssh)

--
Mike Scott
Harlow, England

Re: SSH -X doesn't seem to work.

<slrnu25f86.27e.jj@iridium.wf32df>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6299&group=comp.sys.raspberry-pi#6299

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: jj@franjam.org.uk (Jim Jackson)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH -X doesn't seem to work.
Date: Tue, 28 Mar 2023 10:10:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <slrnu25f86.27e.jj@iridium.wf32df>
References: <tvau8t$3okdj$1@dont-email.me>
<20230321065947.d136a9f564a18f8297b22862@eircom.net>
<MTq*vhMbz@news.chiark.greenend.org.uk> <tvdds3$ae6q$1@dont-email.me>
<641a49a5@news.ausics.net> <tvfd2d$n8pt$1@dont-email.me>
<tvgtvi$11sie$1@dont-email.me> <tvj8b2$1h3f6$1@dont-email.me>
<tvk5r3$1lrak$1@dont-email.me> <tvkjkr$1o4vt$1@dont-email.me>
<tvme8a$24c4j$1@dont-email.me> <tvqj6j$2t374$1@dont-email.me>
<tvs9mj$38nr8$1@dont-email.me> <tvsg3e$39qm3$1@dont-email.me>
<tvsoab$3b8m3$1@dont-email.me> <64220bca@news.ausics.net>
<tvu87u$3m0vg$1@dont-email.me>
Injection-Date: Tue, 28 Mar 2023 10:10:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d29000b5af92343aa644fb7ad0562fcc";
logging-data="3899922"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fjiW+rL1ybV8zxAtyVqqMJ8spFcUtx7A="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:PAk4fkwX5+VSsrFqlJlRkj6rQfE=
 by: Jim Jackson - Tue, 28 Mar 2023 10:10 UTC

On 2023-03-28, Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
> On 27/03/2023 22:34, Computer Nerd Kev wrote:
>> Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
>>>
>>> What I don't get is that since the sshd programs on linux and fbsd are
>>> essentially the same code, just why, with the same configuration file,
>>> one works and the other not.
>>
>> Are you sure that FreeBSD's SSHd is reading the configuration file
>> that you think it is? Maybe the config file location, set at build
>> time, moved in the past and you replaced and old copy of the config
>> file that wasn't being used anymore.
>>
>> Failing that, I'd try setting both ends (client and server) to
>> defaults (empty config file) except for the one line enabling X11
>> forwarding in SSHd, and see if that works.
>>
>
> Thanks for the comment.
>
> Yes, I'm sure the files are right; nevertheless I've tried a fresh
> almost-empty config file:
> root@kirk:/etc/ssh # cat sshd_TEST
> X11Forwarding yes
>
>
> And I /still/ get on the client end:
>
> mike@spock ~ $ ssh -X -v -F /dev/null kirk
> .....
> debug1: Requesting X11 forwarding with authentication spoofing.
> .....

what is outputing this ....

> Running /usr/local/bin/xauth remove unix:11.0
> /usr/local/bin/xauth add unix:11.0 MIT-MAGIC-COOKIE-1
> f6a4308d2f8fd240103a0454872782ec
> Erase set to backspace.
> On kirk.scotts remote display set to 192.168.0.9:0

check out these files on kirk

~/.ssh/rc
/etc/ssh/sshrc

checkout LOGIN PROCESS section in the sshd man page.

On my linux sshd server neither of those files exist, and so sshd itself
calls xauth, and it works. I'm suspicious that a sshrc script is present
and is not correct.

> (which is wrong)
>
>
> I've also tried a raspberry OS client in place of mint; same problem
> unsurprisingly.
>
> (BTW, I have no personal config files on either client or server; just
> the system ones in /etc/ssh)
>
>

Re: SSH -X doesn't seem to work.

<tvvc77$3s10m$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6300&group=comp.sys.raspberry-pi#6300

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: usenet.16@scottsonline.org.uk.invalid (Mike Scott)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH -X doesn't seem to work.
Date: Tue, 28 Mar 2023 19:38:29 +0100
Organization: Scott family
Lines: 40
Message-ID: <tvvc77$3s10m$1@dont-email.me>
References: <tvau8t$3okdj$1@dont-email.me>
<20230321065947.d136a9f564a18f8297b22862@eircom.net>
<MTq*vhMbz@news.chiark.greenend.org.uk> <tvdds3$ae6q$1@dont-email.me>
<641a49a5@news.ausics.net> <tvfd2d$n8pt$1@dont-email.me>
<tvgtvi$11sie$1@dont-email.me> <tvj8b2$1h3f6$1@dont-email.me>
<tvk5r3$1lrak$1@dont-email.me> <tvkjkr$1o4vt$1@dont-email.me>
<tvme8a$24c4j$1@dont-email.me> <tvqj6j$2t374$1@dont-email.me>
<tvs9mj$38nr8$1@dont-email.me> <tvsg3e$39qm3$1@dont-email.me>
<tvsoab$3b8m3$1@dont-email.me> <64220bca@news.ausics.net>
<tvu87u$3m0vg$1@dont-email.me> <slrnu25f86.27e.jj@iridium.wf32df>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 28 Mar 2023 18:38:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8a7ee118be999676a1d8166ccd010d8e";
logging-data="4064278"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+IsH9JXS7v7+caZOSIVOxpR3c8ERwcnf0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.7.1
Cancel-Lock: sha1:MXz2djllG+kIbcbp4yDF3dlsDBc=
Content-Language: en-GB
In-Reply-To: <slrnu25f86.27e.jj@iridium.wf32df>
 by: Mike Scott - Tue, 28 Mar 2023 18:38 UTC

On 28/03/2023 11:10, Jim Jackson wrote:
> On 2023-03-28, Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
>> On 27/03/2023 22:34, Computer Nerd Kev wrote:
>>> Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
>>>>
>>>> What I don't get is that since the sshd programs on linux and fbsd are
>>>> essentially the same code, just why, with the same configuration file,
>>>> one works and the other not.
>>>
>>> Are you sure that FreeBSD's SSHd is reading the configuration file
>>> that you think it is? Maybe the config file location, set at build
>>> time, moved in the past and you replaced and old copy of the config
>>> file that wasn't being used anymore.
>>>
>>> Failing that, I'd try setting both ends (client and server) to
>>> defaults (empty config file) except for the one line enabling X11
>>> forwarding in SSHd, and see if that works.
>>>
>>
>> Thanks for the comment.

Thanks to all for comments.

I've resolved the issue.... somewhen in the dim and distant past
something in the system created a .login file for me which checked
whether the login was over ssh and - yes! - set DISPLAY accordingly. Now
fixed.

(In mitigation, I'm absolutely sure it wasn't my doing - it uses csh
constructs that I don't even know, and presumably it was put there by an
early fbsd system. It must date back 20 years or so; that seems to be
the earliest era for files in that directory.)

So thanks and apologies for the red herring.

--
Mike Scott
Harlow, England

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor