Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The world is coming to an end. Please log off.


devel / comp.sys.acorn.apps / Re: Nettle can't SSH into RaspPi

SubjectAuthor
* Nettle can't SSH into RaspPiBob Latham
+* Re: Nettle can't SSH into RaspPidruck
|`* Re: Nettle can't SSH into RaspPiBob Latham
| `* Re: Nettle can't SSH into RaspPidruck
|  +- Re: Nettle can't SSH into RaspPiTheo
|  `* Re: Nettle can't SSH into RaspPiBob Latham
|   `* Re: Nettle can't SSH into RaspPidruck
|    `- Re: Nettle can't SSH into RaspPiBob Latham
`* Re: Nettle can't SSH into RaspPiBrian Howlett
 +- Re: Nettle can't SSH into RaspPiBob Latham
 `* Re: Nettle can't SSH into RaspPiTheo
  `* Re: Nettle can't SSH into RaspPiBob Latham
   `* Re: Nettle can't SSH into RaspPiTheo
    `* Re: Nettle can't SSH into RaspPiBob Latham
     +* Re: Nettle can't SSH into RaspPidruck
     |`- Re: Nettle can't SSH into RaspPiBob Latham
     +* Re: Nettle can't SSH into RaspPiTheo
     |`- Re: Nettle can't SSH into RaspPiBob Latham
     `* Re: Nettle can't SSH into RaspPiBob Latham
      `* Re: Nettle can't SSH into RaspPiTheo
       `- Re: Nettle can't SSH into RaspPiBob Latham

1
Nettle can't SSH into RaspPi

<5ac99d449fbob@sick-of-spam.invalid>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1677&group=comp.sys.acorn.apps#1677

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob...@sick-of-spam.invalid (Bob Latham)
Newsgroups: comp.sys.acorn.apps
Subject: Nettle can't SSH into RaspPi
Date: Tue, 25 Jul 2023 18:43:57 +0100
Organization: None
Lines: 24
Message-ID: <5ac99d449fbob@sick-of-spam.invalid>
X-Trace: individual.net hjczTZVmhAit9oCD/MgmvQdIbUuaTERb/w4yHy5DRYjdsDewvH
X-Orig-Path: sick-of-spam.invalid!bob
Cancel-Lock: sha1:o663ubukXpMeLIDy94hkMVigsak= sha256:ou8vLW4YDj3uNlKK2mmMTyw8gTUPnhGIgFeZcyX986s=
X-No-Archive: Yes
User-Agent: NewsHound/v1.53-32 RC1
 by: Bob Latham - Tue, 25 Jul 2023 17:43 UTC

RISCOS 5.29
Nettle v0.2043b
Raspberry pi: Raspberry Pi OS lite

I have several raspberry pi devices running the standard OS not
RISCOS. Using Putty.exe on a PC I can SSH into the pi just fine but I
can't manage this with Nettle.

In Nettle I get this error..

Nettle: SSH connection failed in step 0: Unable to exchange
encryption keys.

I can't find a way passed this error.

However, I can use Nettle to access my Synology NAS and that works
fine.

Any advice?

Thanks.

Bob.

Re: Nettle can't SSH into RaspPi

<u9pbmu$1716r$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1678&group=comp.sys.acorn.apps#1678

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@druck.org.uk (druck)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Tue, 25 Jul 2023 21:35:41 +0100
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <u9pbmu$1716r$1@dont-email.me>
References: <5ac99d449fbob@sick-of-spam.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 25 Jul 2023 20:35:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="de2d829a0347669ca867ef68ac241f86";
logging-data="1279195"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WdSBSfs4JBK91z+5T7A+A"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:thclCmxIv2/KLxOrqcZeOuirUFI=
In-Reply-To: <5ac99d449fbob@sick-of-spam.invalid>
X-Antivirus: Avast (VPS 230724-8, 24/7/2023), Outbound message
Content-Language: en-GB
X-Antivirus-Status: Clean
 by: druck - Tue, 25 Jul 2023 20:35 UTC

On 25/07/2023 18:43, Bob Latham wrote:
> RISCOS 5.29
> Nettle v0.2043b
> Raspberry pi: Raspberry Pi OS lite
>
> I have several raspberry pi devices running the standard OS not
> RISCOS. Using Putty.exe on a PC I can SSH into the pi just fine but I
> can't manage this with Nettle.
>
> In Nettle I get this error..
>
> Nettle: SSH connection failed in step 0: Unable to exchange
> encryption keys.

There's two ways around this, the first and best is to get hold of a
more recent version of the command line ssh port for RISC OS, which
supports modern key exchange types. There is one out there somewhere as
I'm using it.

The other alternative is to check which key exchange mechanisms your
version is offering using the -vv option, then make an exception on the
Linux machine to support this old method - luckily you can make it
specific to your RISC OS machine(s) IP address, so you aren't opening up
a massive vulnerability to everyone.

I can provide more details if pressed.

> However, I can use Nettle to access my Synology NAS and that works
> fine.

It probably supports all the old cypher suites which everyone else
considers too risky to use, and SMBv1 too. When was the last time the
firmware was updated? Although even then they more likely to leave old
stuff enabled than to break anything customers might still be using.

---druck

Re: Nettle can't SSH into RaspPi

<2bb1bfc95a.BrianNews@brianhowlett.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1679&group=comp.sys.acorn.apps#1679

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: news-spa...@brianhowlett.me.uk (Brian Howlett)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Wed, 26 Jul 2023 00:59:57 +0100
Organization: The Home for the Bewildered
Lines: 35
Message-ID: <2bb1bfc95a.BrianNews@brianhowlett.me.uk>
References: <5ac99d449fbob@sick-of-spam.invalid>
Reply-To: brian@brianhowlett.me.uk
X-Trace: individual.net anyKRC9Kp2OyHOyWDlJbNAylEexbjr+fVZGZMnEZlz8KDHvNfC
X-Orig-Path: brianhowlett.me.uk%BrianNews
Cancel-Lock: sha1:c2gwmPWgpNoUS3ntxCgTwZ6TnGs= sha256:Rnmr9fr/DIskpJCrQbneehqMQ/iPoKP85xo36OBhqVw=
X-Editor: EmailEdit 2.04
User-Agent: Messenger-Pro/9.00 (MsgServe/9.00) (RISC-OS/5.28) NewsHound/v1.52-32
X-Computer: Titanium (RISC OS 5)
X-Clacks-Overhead: GNU Terry Pratchett
 by: Brian Howlett - Tue, 25 Jul 2023 23:59 UTC

On 25 Jul, Bob Latham <bob@sick-of-spam.invalid> wrote:

> RISCOS 5.29
> Nettle v0.2043b
> Raspberry pi: Raspberry Pi OS lite

> I have several raspberry pi devices running the standard OS not
> RISCOS. Using Putty.exe on a PC I can SSH into the pi just fine but I
> can't manage this with Nettle.

> In Nettle I get this error..

> Nettle: SSH connection failed in step 0: Unable to exchange
> encryption keys.

> I can't find a way passed this error.

> However, I can use Nettle to access my Synology NAS and that works
> fine.

> Any advice?

There's a version of Nettle called NettleSSH updated by Gerph, but the
site it was hosted on is gone. I did a quick search, but couldn't find it
anywhere else.

The version I have is from 2002, but it may not have been developed any
further; it was clearly labelled as Beta software.

Of course, this could be the version you are using, and the Help page says
it is SSH1, which may need to be enabled on the Pi before it will connect.
--
Brian Howlett - Email to From: address deleted unseen
---------------------------------------------------------
Now is the time for all good men to come to. (Walt Kelly)

Re: Nettle can't SSH into RaspPi

<5ac9ee4c08bob@sick-of-spam.invalid>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1680&group=comp.sys.acorn.apps#1680

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob...@sick-of-spam.invalid (Bob Latham)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Wed, 26 Jul 2023 09:29:00 +0100
Organization: None
Lines: 79
Message-ID: <5ac9ee4c08bob@sick-of-spam.invalid>
References: <5ac99d449fbob@sick-of-spam.invalid> <u9pbmu$1716r$1@dont-email.me>
X-Trace: individual.net I/0Wa045adrlrOIhVUsMEQOHLVukxVkGMu2TeZSIaW+42HlxmG
X-Orig-Path: sick-of-spam.invalid!bob
Cancel-Lock: sha1:sZ6hjes3Bxcva/Ts/3K3NNCUeIo= sha256:cJZpFZHkjUgkN4gLCn9Pf5TPfeZsEDXWyJM/GKqZYX8=
X-No-Archive: Yes
User-Agent: NewsHound/v1.53-32 RC1
 by: Bob Latham - Wed, 26 Jul 2023 08:29 UTC

In article <u9pbmu$1716r$1@dont-email.me>,
druck <news@druck.org.uk> wrote:
> On 25/07/2023 18:43, Bob Latham wrote:
> > RISCOS 5.29
> > Nettle v0.2043b
> > Raspberry pi: Raspberry Pi OS lite
> >
> > I have several raspberry pi devices running the standard OS not
> > RISCOS. Using Putty.exe on a PC I can SSH into the pi just fine but I
> > can't manage this with Nettle.
> >
> > In Nettle I get this error..
> >
> > Nettle: SSH connection failed in step 0: Unable to exchange
> > encryption keys.

> There's two ways around this, the first and best is to get hold of
> a more recent version of the command line ssh port for RISC OS,
> which supports modern key exchange types. There is one out there
> somewhere as I'm using it.

I've done a comprehensive search for this but all links seem to be
dead. :-(

> The other alternative is to check which key exchange mechanisms
> your version is offering using the -vv option, then make an
> exception on the Linux machine to support this old method -
> luckily you can make it specific to your RISC OS machine(s) IP
> address, so you aren't opening up a massive vulnerability to
> everyone.

> I can provide more details if pressed.

Well unfortunately this seems to be my only option. So would you
supply more details please?

I've no idea where to enter the -vv command and experimenting has
only given embarrassing results. So info on that please and how to
modify my Pi devices please.

As regards security, I have no WAN port open or forwarded on my
router so no entry that way. Router is an Asus AC68U running the
latest Merlin Firmware. My synology NAS boxes are not exposed except
in regard of checking home for updates. you cannot see them
externally.

I think my biggest vulnerability is ironically from an external
security camera system which does maintain an outgoing connection to
base such that I can see what's happening on my cameras from
anywhere. No alternative that I know of, if I want the functionality.

> > However, I can use Nettle to access my Synology NAS and that
> > works fine.

> It probably supports all the old cypher suites which everyone else
> considers too risky to use, and SMBv1 too.

Yes, I have SMB1 still switched on for obvious reasons. Being able to
connect to my NAS is essential and there is still no SMB2/3 client
for RISCOS, This is by far the most likely reason I'll be forced to
finally drop RISCOS.

> When was the last time the firmware was updated?

On the latest version of DSM6. DSM 7 does not support the app
BubbleUPnPServer and so is of much less use to me.

> Although even then they more likely to leave old stuff enabled than
> to break anything customers might still be using.

Probably so yes. I've looked at DSM 7 and found it still allows you
to switch on SMB1 but it is off by default. After trying it I had the
fun of reverting to DSM6 but managed it.

Thank you for your help.

Bob.

Re: Nettle can't SSH into RaspPi

<5ac9ee8b73bob@sick-of-spam.invalid>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1681&group=comp.sys.acorn.apps#1681

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob...@sick-of-spam.invalid (Bob Latham)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Wed, 26 Jul 2023 09:31:43 +0100
Organization: None
Lines: 23
Message-ID: <5ac9ee8b73bob@sick-of-spam.invalid>
References: <5ac99d449fbob@sick-of-spam.invalid> <2bb1bfc95a.BrianNews@brianhowlett.me.uk>
X-Trace: individual.net gUDNy4jyDhEcn8l7vxcNrANv2PT624X9edKYyXl6/jhImRVETj
X-Orig-Path: sick-of-spam.invalid!bob
Cancel-Lock: sha1:8H6fqN9W6yrqn9QumnTM5MCDkyQ= sha256:kFLqK7/7qx+4y4FByU7Rl9O2N1s2Ra8hsh3E1b/LFO0=
X-No-Archive: Yes
User-Agent: NewsHound/v1.53-32 RC1
 by: Bob Latham - Wed, 26 Jul 2023 08:31 UTC

In article <2bb1bfc95a.BrianNews@brianhowlett.me.uk>,
Brian Howlett <news-spamtrap@brianhowlett.me.uk> wrote:

> There's a version of Nettle called NettleSSH updated by Gerph, but
> the site it was hosted on is gone. I did a quick search, but
> couldn't find it anywhere else.

> The version I have is from 2002, but it may not have been developed
> any further; it was clearly labelled as Beta software.

No I don't think I've got that version.

> Of course, this could be the version you are using, and the Help
> page says it is SSH1, which may need to be enabled on the Pi
> before it will connect.

Indeed but I've no idea how to do that - yet. :-)

Thanks to trying to help.

Bob.

Re: Nettle can't SSH into RaspPi

<J9j*LWdmz@news.chiark.greenend.org.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1682&group=comp.sys.acorn.apps#1682

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsfeed.xs3.de!callisto.xs3.de!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+n...@chiark.greenend.org.uk (Theo)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: 26 Jul 2023 11:08:23 +0100 (BST)
Organization: University of Cambridge, England
Message-ID: <J9j*LWdmz@news.chiark.greenend.org.uk>
References: <5ac99d449fbob@sick-of-spam.invalid> <2bb1bfc95a.BrianNews@brianhowlett.me.uk>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="24805"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Wed, 26 Jul 2023 10:08 UTC

Brian Howlett <news-spamtrap@brianhowlett.me.uk> wrote:
> There's a version of Nettle called NettleSSH updated by Gerph, but the
> site it was hosted on is gone. I did a quick search, but couldn't find it
> anywhere else.
>
> The version I have is from 2002, but it may not have been developed any
> further; it was clearly labelled as Beta software.

I wrote something called SSHProxy that is very very old, and I think Gerph
turned that into NettleSSH. But that's all SSHv1 which servers won't
support these days as it's insecure:

http://gerph.org/riscos/ramble/miniprojects-nettlessh.html#NettleSSH

Later support was added to Nettle directly, and that is more modern and
supports SSHv2.

> Of course, this could be the version you are using, and the Help page says
> it is SSH1, which may need to be enabled on the Pi before it will connect.

Using Nettle's own SSH implementation (which uses libssh2) is the way
forward these days. That's the one Gerph has contributed to recently:
https://github.com/dpt/Nettle/

I think it should need a recompile with a newer libssh2 for newer cipher
support. There is infrastructure there to build it using his
JFPatch-as-a-service, but I'm not sure if those builds are made available
anywhere.

Either way, the build made available in PackMan (and also downloadable from
riscos.info for manual install) should be updated. I'll take a todo to look
at that, but no promises on timeline...

Theo

Re: Nettle can't SSH into RaspPi

<5ac9f81ac4bob@sick-of-spam.invalid>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1683&group=comp.sys.acorn.apps#1683

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob...@sick-of-spam.invalid (Bob Latham)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Wed, 26 Jul 2023 11:16:09 +0100
Organization: None
Lines: 38
Message-ID: <5ac9f81ac4bob@sick-of-spam.invalid>
References: <5ac99d449fbob@sick-of-spam.invalid> <2bb1bfc95a.BrianNews@brianhowlett.me.uk> <J9j*LWdmz@news.chiark.greenend.org.uk>
X-Trace: individual.net Y5df2A6Uu8NrYIH1zc35KAZO5pR9leEInoo/080PPItc5tXTg4
X-Orig-Path: sick-of-spam.invalid!bob
Cancel-Lock: sha1:CuS6syHoUFA+8MF6BmLLpzLicTc= sha256:eEALzPsKyVULllE7qCGsaz4knoB6K8uDcVzXaKz72+A=
X-No-Archive: Yes
User-Agent: NewsHound/v1.53-32 RC1
 by: Bob Latham - Wed, 26 Jul 2023 10:16 UTC

In article <J9j*LWdmz@news.chiark.greenend.org.uk>,
Theo <theom+news@chiark.greenend.org.uk> wrote:

> I wrote something called SSHProxy that is very very old, and I
> think Gerph turned that into NettleSSH. But that's all SSHv1 which
> servers won't support these days as it's insecure:

> http://gerph.org/riscos/ramble/miniprojects-nettlessh.html#NettleSSH

> Later support was added to Nettle directly, and that is more modern
> and supports SSHv2.

> > Of course, this could be the version you are using, and the Help
> > page says it is SSH1, which may need to be enabled on the Pi
> > before it will connect.

> Using Nettle's own SSH implementation (which uses libssh2) is the
> way forward these days. That's the one Gerph has contributed to
> recently: https://github.com/dpt/Nettle/

> I think it should need a recompile with a newer libssh2 for newer
> cipher support. There is infrastructure there to build it using
> his JFPatch-as-a-service, but I'm not sure if those builds are made
> available anywhere.

> Either way, the build made available in PackMan (and also
> downloadable from riscos.info for manual install) should be
> updated.

> I'll take a todo to look at that, but no promises on
> timeline...

Thanks for that Theo.

Cheers,

Bob.

Re: Nettle can't SSH into RaspPi

<u9rvvi$1i3np$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1684&group=comp.sys.acorn.apps#1684

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@druck.org.uk (druck)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Wed, 26 Jul 2023 21:33:53 +0100
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <u9rvvi$1i3np$1@dont-email.me>
References: <5ac99d449fbob@sick-of-spam.invalid>
<u9pbmu$1716r$1@dont-email.me> <5ac9ee4c08bob@sick-of-spam.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Jul 2023 20:33:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="35f7e56e3fec58dcf94ceaa173a9312f";
logging-data="1642233"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186v+yJ1ON6MyhKdT+/34cJ"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:MMmnFIgdOmLAKVlSmBfmoxFn1HA=
Content-Language: en-GB
X-Antivirus: Avast (VPS 230726-6, 26/7/2023), Outbound message
In-Reply-To: <5ac9ee4c08bob@sick-of-spam.invalid>
X-Antivirus-Status: Clean
 by: druck - Wed, 26 Jul 2023 20:33 UTC

On 26/07/2023 09:29, Bob Latham wrote:
> In article <u9pbmu$1716r$1@dont-email.me>,
> druck <news@druck.org.uk> wrote:
>> On 25/07/2023 18:43, Bob Latham wrote:
>>> RISCOS 5.29
>>> Nettle v0.2043b
>>> Raspberry pi: Raspberry Pi OS lite
>>>
>>> I have several raspberry pi devices running the standard OS not
>>> RISCOS. Using Putty.exe on a PC I can SSH into the pi just fine but I
>>> can't manage this with Nettle.
>>>
>>> In Nettle I get this error..
>>>
>>> Nettle: SSH connection failed in step 0: Unable to exchange
>>> encryption keys.
>
>> There's two ways around this, the first and best is to get hold of
>> a more recent version of the command line ssh port for RISC OS,
>> which supports modern key exchange types. There is one out there
>> somewhere as I'm using it.
>
> I've done a comprehensive search for this but all links seem to be
> dead. :-(

I've had a look at my RISC OS machine, and it seems I'm using !Nettle
v0.2043b (11 April 2010) built in ssh client, which is mentioned later
in the thread, and this does work - so get that unless you want to get
involved technical stuff below.

BTW It's a bit confusing as I initially used Nettle and command line
ssh, then NettleSSH came along with a built in ssh. However this stopped
working with Linux machines, so I went back to Nettle with a newer
command line ssh again. Forgot the latest Nettle has a newer ssh built
in like NettleSSH used to.

I've checked both the command line ssh clients I've found on my systems,
neither of which work on the Pi 4B, although they run on the Mini.M
(versions 6.0p1-1 16-Aug-2012 and 3.8.1p1)

> I've no idea where to enter the -vv command and experimenting has
> only given embarrassing results. So info on that please and how to
> modify my Pi devices please.

If you are using the command line client you do a:-

ssh -vvv <host name>

It will then print out lots of stuff about what it is doing. At some
point it will say what key exchange mechanisms it offers and the server
accepts, and these will differ and it will stop shortly after. Find that
bit and paste it here.

---druck

Re: Nettle can't SSH into RaspPi

<J9j*cigmz@news.chiark.greenend.org.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1685&group=comp.sys.acorn.apps#1685

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!news.chmurka.net!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+n...@chiark.greenend.org.uk (Theo)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: 26 Jul 2023 21:54:35 +0100 (BST)
Organization: University of Cambridge, England
Message-ID: <J9j*cigmz@news.chiark.greenend.org.uk>
References: <5ac99d449fbob@sick-of-spam.invalid> <u9pbmu$1716r$1@dont-email.me> <5ac9ee4c08bob@sick-of-spam.invalid> <u9rvvi$1i3np$1@dont-email.me>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="30906"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Wed, 26 Jul 2023 20:54 UTC

druck <news@druck.org.uk> wrote:
> I've had a look at my RISC OS machine, and it seems I'm using !Nettle
> v0.2043b (11 April 2010) built in ssh client, which is mentioned later
> in the thread, and this does work - so get that unless you want to get
> involved technical stuff below.

What are you testing against, OOI? The change in not accepting certain RSA
keys and some ciphers took effect in OpenSSH 7 (I think) which appeared in
Ubuntu 22.04, and I presume whatever Debian version that was based upon. So
if you're running an older OS on the Pi you might be OK with an older
client, and you would only notice this if you upgraded to a newer OS on the
Pi.

However where I've seen this is newer clients talking to older servers, not
so much older clients talking to newer servers. So it may not have been
related to that change.

> BTW It's a bit confusing as I initially used Nettle and command line
> ssh, then NettleSSH came along with a built in ssh. However this stopped
> working with Linux machines, so I went back to Nettle with a newer
> command line ssh again. Forgot the latest Nettle has a newer ssh built
> in like NettleSSH used to.
>
> I've checked both the command line ssh clients I've found on my systems,
> neither of which work on the Pi 4B, although they run on the Mini.M
> (versions 6.0p1-1 16-Aug-2012 and 3.8.1p1)

They should probably be rebuilt since upstream is on OpenSSH 9.3 now. I'm
not sure of the status of the GCCSDK autobuilder builds and whether they're
buildable or how broken things are.

Likewise the builds of PuTTY floating around are very out of date too.

> If you are using the command line client you do a:-
>
> ssh -vvv <host name>
>
> It will then print out lots of stuff about what it is doing. At some
> point it will say what key exchange mechanisms it offers and the server
> accepts, and these will differ and it will stop shortly after. Find that
> bit and paste it here.

Something like:

debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
....
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: host key algorithms: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519
....

For example, we said we could do key exchange algorithms A/B/C/D/E and host key
algorithms X/Y/Z, and the server said it can do CDFG and TUZ, so they have to
pick one of C or D and only Z as those are the only common algorithms we can
agree on.

The problem in question being that our client said we can do ABCD and the
server said it can do GHIJ but there's nothing in common, so we have to
specifically tell the server to use older insecure algorithms C or D so it
can allow the connection.

The recent update to OpenSSH was changing the default set of allowed host
key algorithms so that older algorithms were removed from the list, which
makes a problem for communicating with older clients.

Theo

Re: Nettle can't SSH into RaspPi

<5aca74db2abob@sick-of-spam.invalid>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1686&group=comp.sys.acorn.apps#1686

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob...@sick-of-spam.invalid (Bob Latham)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Thu, 27 Jul 2023 09:58:47 +0100
Organization: None
Lines: 43
Message-ID: <5aca74db2abob@sick-of-spam.invalid>
References: <5ac99d449fbob@sick-of-spam.invalid>
<u9pbmu$1716r$1@dont-email.me> <5ac9ee4c08bob@sick-of-spam.invalid> <u9rvvi$1i3np$1@dont-email.me>
X-Trace: individual.net k/M1rHUd5KYFx3cyEjHqBg8OR+ChcPJ/01P6ZGh8BZt7J4O2pn
X-Orig-Path: sick-of-spam.invalid!bob
Cancel-Lock: sha1:p/OwpkvzM57VqrcCvqHJCcdHNfs= sha256:GK0714M6FLc2GVghnsZeOQ0pnlZ6KXc0gAoBbR72mQA=
X-No-Archive: Yes
User-Agent: NewsHound/v1.53-32 RC1
 by: Bob Latham - Thu, 27 Jul 2023 08:58 UTC

In article <u9rvvi$1i3np$1@dont-email.me>,
druck <news@druck.org.uk> wrote:
> On 26/07/2023 09:29, Bob Latham wrote:

> I've had a look at my RISC OS machine, and it seems I'm using
> !Nettle v0.2043b (11 April 2010) built in ssh client, which is
> mentioned later in the thread, and this does work - so get that
> unless you want to get involved technical stuff below.

That is the exact version I'm trying to use. Works with synology NAS
DSM6 but cannot get into pi os.

> BTW It's a bit confusing as I initially used Nettle and command
> line ssh, then NettleSSH came along with a built in ssh. However
> this stopped working with Linux machines, so I went back to Nettle
> with a newer command line ssh again. Forgot the latest Nettle has
> a newer ssh built in like NettleSSH used to.

> I've checked both the command line ssh clients I've found on my
> systems, neither of which work on the Pi 4B, although they run on
> the Mini.M (versions 6.0p1-1 16-Aug-2012 and 3.8.1p1)

> > I've no idea where to enter the -vv command and experimenting has
> > only given embarrassing results. So info on that please and how
> > to modify my Pi devices please.

> If you are using the command line client you do a:-

> ssh -vvv <host name>

> It will then print out lots of stuff about what it is doing. At
> some point it will say what key exchange mechanisms it offers and
> the server accepts, and these will differ and it will stop shortly
> after. Find that bit and paste it here.

I can get that to work if I set the NAS as the server but I can't
find any way to do it for the failing rasp pi which is presumably
what you need.

Thanks anyway

Bob.

Re: Nettle can't SSH into RaspPi

<G9j*e6kmz@news.chiark.greenend.org.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1687&group=comp.sys.acorn.apps#1687

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsfeed.xs3.de!callisto.xs3.de!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+n...@chiark.greenend.org.uk (Theo)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: 27 Jul 2023 19:40:16 +0100 (BST)
Organization: University of Cambridge, England
Message-ID: <G9j*e6kmz@news.chiark.greenend.org.uk>
References: <5ac99d449fbob@sick-of-spam.invalid> <2bb1bfc95a.BrianNews@brianhowlett.me.uk> <J9j*LWdmz@news.chiark.greenend.org.uk> <5ac9f81ac4bob@sick-of-spam.invalid>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="4965"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Thu, 27 Jul 2023 18:40 UTC

Bob Latham <bob@sick-of-spam.invalid> wrote:
> In article <J9j*LWdmz@news.chiark.greenend.org.uk>,
> Theo <theom+news@chiark.greenend.org.uk> wrote:
>
> > Using Nettle's own SSH implementation (which uses libssh2) is the
> > way forward these days. That's the one Gerph has contributed to
> > recently: https://github.com/dpt/Nettle/
>
> > I think it should need a recompile with a newer libssh2 for newer
> > cipher support. There is infrastructure there to build it using
> > his JFPatch-as-a-service, but I'm not sure if those builds are made
> > available anywhere.
>
> > I'll take a todo to look at that, but no promises on
> > timeline...
>
> Thanks for that Theo.

That was less painful than I thought. Here is a test build:
http://www.chiark.greenend.org.uk/~theom/ephemeral/Nettle_0-2050b-1_arm.zip

This is a rebuild with a much more modern libssh2 than the one from 2010.

Please give this a try and let me know if it fixes the problem. I have a Pi
running Raspberry Pi OS 'bullseye' and both this one (I'm tentatively
calling it 0.2050b but that's not official) and 0.2043b managed to
SSH in successfully, but this one went through much more quickly while
0.2043b printed several screenfuls of dots (I suspect they were
arguing over which ciphers to support).

If it's looking good I'll upstream the changes and if that's all happy I'll
put a new version on riscos.info where PackMan should pick it up.

Theo

Re: Nettle can't SSH into RaspPi

<5acaae0566bob@sick-of-spam.invalid>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1688&group=comp.sys.acorn.apps#1688

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob...@sick-of-spam.invalid (Bob Latham)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Thu, 27 Jul 2023 20:23:09 +0100
Organization: None
Lines: 63
Message-ID: <5acaae0566bob@sick-of-spam.invalid>
References: <5ac99d449fbob@sick-of-spam.invalid> <2bb1bfc95a.BrianNews@brianhowlett.me.uk> <J9j*LWdmz@news.chiark.greenend.org.uk> <5ac9f81ac4bob@sick-of-spam.invalid> <G9j*e6kmz@news.chiark.greenend.org.uk>
X-Trace: individual.net 39R8OUuIA2LZhcE1VZgE5wJq94/jLrlekHyR9TKxD+L38iCssc
X-Orig-Path: sick-of-spam.invalid!bob
Cancel-Lock: sha1:pj3yQ64k2EwjwiVKiev/andlvdE= sha256:xeY1cqxN4RJjJoqwG7hWtvyxNrX9htyjlZod6a8M+TU=
X-No-Archive: Yes
User-Agent: NewsHound/v1.53-32 RC1
 by: Bob Latham - Thu, 27 Jul 2023 19:23 UTC

In article <G9j*e6kmz@news.chiark.greenend.org.uk>,
Theo <theom+news@chiark.greenend.org.uk> wrote:
> Bob Latham <bob@sick-of-spam.invalid> wrote:
> > In article <J9j*LWdmz@news.chiark.greenend.org.uk>,
> > Theo <theom+news@chiark.greenend.org.uk> wrote:
> >
> > > Using Nettle's own SSH implementation (which uses libssh2) is the
> > > way forward these days. That's the one Gerph has contributed to
> > > recently: https://github.com/dpt/Nettle/
> >
> > > I think it should need a recompile with a newer libssh2 for newer
> > > cipher support. There is infrastructure there to build it using
> > > his JFPatch-as-a-service, but I'm not sure if those builds are made
> > > available anywhere.
> >
> > > I'll take a todo to look at that, but no promises on
> > > timeline...
> >
> > Thanks for that Theo.

> That was less painful than I thought. Here is a test build:
> http://www.chiark.greenend.org.uk/~theom/ephemeral/Nettle_0-2050b-1_arm.zip

> This is a rebuild with a much more modern libssh2 than the one from
> 2010.

> Please give this a try and let me know if it fixes the problem. I
> have a Pi running Raspberry Pi OS 'bullseye' and both this one (I'm
> tentatively calling it 0.2050b but that's not official) and 0.2043b
> managed to SSH in successfully, but this one went through much more
> quickly while 0.2043b printed several screenfuls of dots (I suspect
> they were arguing over which ciphers to support).

> If it's looking good I'll upstream the changes and if that's all
> happy I'll put a new version on riscos.info where PackMan should
> pick it up.

I can indeed ssh into my pi with this latest build all be it with
many lines of dots first.

Well done and thank you. Greatly appreciate what you've done.

One slight oddity though which is probably going to show my ignorance
more than anything else.

When you log in, is shows the usual default..
pi@name:~$

But it became clear very quickly that in fact it was at..
pi@name:~/home/pi~$

I don't think it's possible to get above that into the root and then
into boot or etc.

Why would it do that, putty.exe doesn't?

I'm most grateful for you efforts but I don't really understand what
it's doing.

Thanks again.

Bob.

Re: Nettle can't SSH into RaspPi

<u9uijp$1v8t5$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1689&group=comp.sys.acorn.apps#1689

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@druck.org.uk (druck)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Thu, 27 Jul 2023 21:04:09 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <u9uijp$1v8t5$1@dont-email.me>
References: <5ac99d449fbob@sick-of-spam.invalid>
<u9pbmu$1716r$1@dont-email.me> <5ac9ee4c08bob@sick-of-spam.invalid>
<u9rvvi$1i3np$1@dont-email.me> <5aca74db2abob@sick-of-spam.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 27 Jul 2023 20:04:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="dfb8e9537507b0a8cdb47ab6362480e4";
logging-data="2073509"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Q40wty6p9YN4JI5uBC2Yw"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:nIpmgbE1cRW6SDULng6xD+vkL+Q=
X-Antivirus-Status: Clean
X-Antivirus: Avast (VPS 230727-0, 27/7/2023), Outbound message
Content-Language: en-GB
In-Reply-To: <5aca74db2abob@sick-of-spam.invalid>
 by: druck - Thu, 27 Jul 2023 20:04 UTC

On 27/07/2023 09:58, Bob Latham wrote:
> In article <u9rvvi$1i3np$1@dont-email.me>,
> druck <news@druck.org.uk> wrote:
>> On 26/07/2023 09:29, Bob Latham wrote:
>
>> I've had a look at my RISC OS machine, and it seems I'm using
>> !Nettle v0.2043b (11 April 2010) built in ssh client, which is
>> mentioned later in the thread, and this does work - so get that
>> unless you want to get involved technical stuff below.
>
> That is the exact version I'm trying to use. Works with synology NAS
> DSM6 but cannot get into pi os.

Which Pi OS? Mine are all on the current Raspbian Bullseye.

---druck

Re: Nettle can't SSH into RaspPi

<u9uj31$1v8t5$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1690&group=comp.sys.acorn.apps#1690

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: new...@druck.org.uk (druck)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Thu, 27 Jul 2023 21:12:17 +0100
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <u9uj31$1v8t5$2@dont-email.me>
References: <5ac99d449fbob@sick-of-spam.invalid>
<2bb1bfc95a.BrianNews@brianhowlett.me.uk>
<J9j*LWdmz@news.chiark.greenend.org.uk> <5ac9f81ac4bob@sick-of-spam.invalid>
<G9j*e6kmz@news.chiark.greenend.org.uk> <5acaae0566bob@sick-of-spam.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 27 Jul 2023 20:12:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="dfb8e9537507b0a8cdb47ab6362480e4";
logging-data="2073509"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+YESU1mXfX54C8lw9hRO1e"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:6fmzEbgnM0vlWliTNx1Jvxe+drI=
In-Reply-To: <5acaae0566bob@sick-of-spam.invalid>
Content-Language: en-GB
X-Antivirus: Avast (VPS 230727-0, 27/7/2023), Outbound message
X-Antivirus-Status: Clean
 by: druck - Thu, 27 Jul 2023 20:12 UTC

On 27/07/2023 20:23, Bob Latham wrote:
> I can indeed ssh into my pi with this latest build [of Nettle]
> all be it with many lines of dots first.

Well that's something.

> One slight oddity though which is probably going to show my ignorance
> more than anything else.
>
> When you log in, is shows the usual default..
> pi@name:~$
>
> But it became clear very quickly that in fact it was at..
> pi@name:~/home/pi~$

'~' is an abbreviation for the users home directory, which with the
default username of pi will be /home/pi

> I don't think it's possible to get above that into the root and then
> into boot or etc.

You need to do have root privileges to get in to /root, do a

sudo -i

But be careful! Ctrl+D to return to a normal user.

/boot can be accessed but not writen to by a user, to write become root.

> Why would it do that, putty.exe doesn't?

Putty doesn't do what?

---druck

Re: Nettle can't SSH into RaspPi

<5acab5cceabob@sick-of-spam.invalid>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1691&group=comp.sys.acorn.apps#1691

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob...@sick-of-spam.invalid (Bob Latham)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Thu, 27 Jul 2023 21:48:07 +0100
Organization: None
Lines: 27
Message-ID: <5acab5cceabob@sick-of-spam.invalid>
References: <5ac99d449fbob@sick-of-spam.invalid>
<u9pbmu$1716r$1@dont-email.me> <5ac9ee4c08bob@sick-of-spam.invalid>
<u9rvvi$1i3np$1@dont-email.me> <5aca74db2abob@sick-of-spam.invalid> <u9uijp$1v8t5$1@dont-email.me>
X-Trace: individual.net sVVJXybOeiTSpLqT3xCx5wQBrWTTxF9Pm86Kd6ywowdeA0t8ys
X-Orig-Path: sick-of-spam.invalid!bob
Cancel-Lock: sha1:4fFmS3hR0S96xoUiL0VPUThuFmU= sha256:raUUTxUlEMvz5QdzeKPmrXSmGwISxkJKkxCLikm4igo=
X-No-Archive: Yes
User-Agent: NewsHound/v1.53-32 RC1
 by: Bob Latham - Thu, 27 Jul 2023 20:48 UTC

In article <u9uijp$1v8t5$1@dont-email.me>,
druck <news@druck.org.uk> wrote:
> On 27/07/2023 09:58, Bob Latham wrote:
> > In article <u9rvvi$1i3np$1@dont-email.me>,
> > druck <news@druck.org.uk> wrote:
> >> On 26/07/2023 09:29, Bob Latham wrote:
> >
> >> I've had a look at my RISC OS machine, and it seems I'm using
> >> !Nettle v0.2043b (11 April 2010) built in ssh client, which is
> >> mentioned later in the thread, and this does work - so get that
> >> unless you want to get involved technical stuff below.
> >
> > That is the exact version I'm trying to use. Works with synology NAS
> > DSM6 but cannot get into pi os.

> Which Pi OS? Mine are all on the current Raspbian Bullseye.

Raspberry Pi OS lite
Release date: 03/05/2023
System: 32bit
Kernel version: 6.1
Debian V11 (bullseye)

Cheers,

Bob.

Re: Nettle can't SSH into RaspPi

<5acab59a58bob@sick-of-spam.invalid>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1692&group=comp.sys.acorn.apps#1692

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob...@sick-of-spam.invalid (Bob Latham)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Thu, 27 Jul 2023 21:45:58 +0100
Organization: None
Lines: 60
Message-ID: <5acab59a58bob@sick-of-spam.invalid>
References: <5ac99d449fbob@sick-of-spam.invalid>
<2bb1bfc95a.BrianNews@brianhowlett.me.uk>
<J9j*LWdmz@news.chiark.greenend.org.uk> <5ac9f81ac4bob@sick-of-spam.invalid>
<G9j*e6kmz@news.chiark.greenend.org.uk> <5acaae0566bob@sick-of-spam.invalid> <u9uj31$1v8t5$2@dont-email.me>
X-Trace: individual.net tEiXKDH1L5hq+ZutmYCHaQzwsedG7WGkQvf7TBWxtv7ftoSnid
X-Orig-Path: sick-of-spam.invalid!bob
Cancel-Lock: sha1:RzWl3FW24kvMUlhd7lKlN/8zzm8= sha256:mkssFy+4EKXVkSHfnSRYYubA3wAMh17MUGObjcxUfBo=
X-No-Archive: Yes
User-Agent: NewsHound/v1.53-32 RC1
 by: Bob Latham - Thu, 27 Jul 2023 20:45 UTC

In article <u9uj31$1v8t5$2@dont-email.me>,
druck <news@druck.org.uk> wrote:
> On 27/07/2023 20:23, Bob Latham wrote:
> > I can indeed ssh into my pi with this latest build [of Nettle]
> > all be it with many lines of dots first.

> Well that's something.

> > One slight oddity though which is probably going to show my ignorance
> > more than anything else.
> >
> > When you log in, is shows the usual default..
> > pi@name:~$
> >
> > But it became clear very quickly that in fact it was at..
> > pi@name:~/home/pi~$

> '~' is an abbreviation for the users home directory, which with the
> default username of pi will be /home/pi

> > I don't think it's possible to get above that into the root and
> > then into boot or etc.

> You need to do have root privileges to get in to /root, do a

> sudo -i

> But be careful! Ctrl+D to return to a normal user.

> /boot can be accessed but not writen to by a user, to write become
> root.

That makes sense. Thanks.

> > Why would it do that, putty.exe doesn't?

> Putty doesn't do what?

I meant drop me into /home/pi but just tested again and to my
surprise, it does. I've built dozens of music players using SSH putty
and never noticed that before. The reason is that the very first SSH
commands I have in my notes are..

-----------------------
change directory..
cd /home/pi/mediaplayer

Make the run.sh executable.
sudo chmod +x run.sh

more......
-------------------------

So amazingly, I never noticed it before.

Thanks for the help.

Bob.

Re: Nettle can't SSH into RaspPi

<J9j*vzlmz@news.chiark.greenend.org.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1693&group=comp.sys.acorn.apps#1693

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!news.nntp4.net!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+n...@chiark.greenend.org.uk (Theo)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: 27 Jul 2023 21:53:43 +0100 (BST)
Organization: University of Cambridge, England
Message-ID: <J9j*vzlmz@news.chiark.greenend.org.uk>
References: <5ac99d449fbob@sick-of-spam.invalid> <2bb1bfc95a.BrianNews@brianhowlett.me.uk> <J9j*LWdmz@news.chiark.greenend.org.uk> <5ac9f81ac4bob@sick-of-spam.invalid> <G9j*e6kmz@news.chiark.greenend.org.uk> <5acaae0566bob@sick-of-spam.invalid>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="5126"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Thu, 27 Jul 2023 20:53 UTC

Bob Latham <bob@sick-of-spam.invalid> wrote:
> I can indeed ssh into my pi with this latest build all be it with
> many lines of dots first.
>
> Well done and thank you. Greatly appreciate what you've done.

That's good. I've made a pull request to the upstream repository (ie asked
them to accept my changes).

> One slight oddity though which is probably going to show my ignorance
> more than anything else.
>
> When you log in, is shows the usual default..
> pi@name:~$
>
> But it became clear very quickly that in fact it was at..
> pi@name:~/home/pi~$

~ is a shortcut for your home directory, eg /home/pi if you are the 'pi'
user (the default on Pi OS)

~bob is a shortcut for the home directory of user bob, eg /home/bob

As an aside, the same goes for URLs, eg in:
https://www.chiark.greenend.org.uk/~theom/ephemeral/Nettle_0-2050b-1_arm.zip

~theom is the (web) home directory for user 'theom'.

> I don't think it's possible to get above that into the root and then
> into boot or etc.

You can cd to change directory, ie:

cd /etc

As druck says, some places you can't cd as a normal user, you need to use
'sudo'. Or you can cd but you can't edit any files.

> Why would it do that, putty.exe doesn't?

Maybe Putty is doing a cd command for you? I'm not sure why you would land
in a different place otherwise.

One other thing to note is the 'pi@name:~$' is called your shell prompt, and
you can change it via an environment variable PS1:
https://wiki.archlinux.org/title/Bash/Prompt_customization

For example, I can type:
PS1="\$(date) \$(pwd) : "

and now the prompt looks like this, with the time and current directory
shown in full:

Thu 27 Jul 21:48:35 BST 2023 /home/pi :
Thu 27 Jul 21:49:00 BST 2023 /home/pi :
Thu 27 Jul 21:49:01 BST 2023 /home/pi : cd /
Thu 27 Jul 21:50:02 BST 2023 / :

> I'm most grateful for you efforts but I don't really understand what
> it's doing.

If you need a place to ask for help on the Pi OS side, I can recommend the
newsgroup comp.sys.raspberry-pi

Theo

Re: Nettle can't SSH into RaspPi

<5acaed1e78bob@sick-of-spam.invalid>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1694&group=comp.sys.acorn.apps#1694

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob...@sick-of-spam.invalid (Bob Latham)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Fri, 28 Jul 2023 07:52:24 +0100
Organization: None
Lines: 79
Message-ID: <5acaed1e78bob@sick-of-spam.invalid>
References: <5ac99d449fbob@sick-of-spam.invalid> <2bb1bfc95a.BrianNews@brianhowlett.me.uk> <J9j*LWdmz@news.chiark.greenend.org.uk> <5ac9f81ac4bob@sick-of-spam.invalid> <G9j*e6kmz@news.chiark.greenend.org.uk> <5acaae0566bob@sick-of-spam.invalid> <J9j*vzlmz@news.chiark.greenend.org.uk>
X-Trace: individual.net p+uJuWmOfXJWpE3BY8nPVABoaWdDZ76lAqc0IBVSUBZXcgyYez
X-Orig-Path: sick-of-spam.invalid!bob
Cancel-Lock: sha1:aKJBY3+L5oRHyrR8RiL08jEe4ig= sha256:yex2Ni7yL+g6JuTElLlawDW0uzew8PoOPyzcytGWaF0=
X-No-Archive: Yes
User-Agent: NewsHound/v1.53-32 RC1
 by: Bob Latham - Fri, 28 Jul 2023 06:52 UTC

In article <J9j*vzlmz@news.chiark.greenend.org.uk>,
Theo <theom+news@chiark.greenend.org.uk> wrote:
> Bob Latham <bob@sick-of-spam.invalid> wrote:

[Snip]

> > One slight oddity though which is probably going to show my
> > ignorance more than anything else.
> >
> > When you log in, is shows the usual default..
> > pi@name:~$
> >
> > But it became clear very quickly that in fact it was at..
> > pi@name:~/home/pi~$

> ~ is a shortcut for your home directory, eg /home/pi if you are the
> 'pi' user (the default on Pi OS)

> ~bob is a shortcut for the home directory of user bob, eg /home/bob

Yes, I see thanks.

> As an aside, the same goes for URLs, eg in:
> https://www.chiark.greenend.org.uk/~theom/ephemeral/Nettle_0-2050b-1_arm.zip

> ~theom is the (web) home directory for user 'theom'.

> > I don't think it's possible to get above that into the root and
> > then into boot or etc.

> You can cd to change directory, ie:

> cd /etc

> As druck says, some places you can't cd as a normal user, you need
> to use 'sudo'. Or you can cd but you can't edit any files.

Building pi music players for some years I have of course used cd ...
but never before noticed any difficulty with it. Perhaps I didn't
need to go to protected files or directories.

> > Why would it do that, putty.exe doesn't?

> Maybe Putty is doing a cd command for you? I'm not sure why you
> would land in a different place otherwise.

I think I know why I incorrectly thought it was different to
Putty.exe as I explained in a reply to Dave last night.

I write notes on how to do things and then use those notes in the
same way each time. Doing that hid the truth from me.

> One other thing to note is the 'pi@name:~$' is called your shell
> prompt, and you can change it via an environment variable PS1:
> https://wiki.archlinux.org/title/Bash/Prompt_customization

> For example, I can type: PS1="\$(date) \$(pwd) : "

> and now the prompt looks like this, with the time and current
> directory shown in full:

> Thu 27 Jul 21:48:35 BST 2023 /home/pi :
> Thu 27 Jul 21:49:00 BST 2023 /home/pi :
> Thu 27 Jul 21:49:01 BST 2023 /home/pi : cd /
> Thu 27 Jul 21:50:02 BST 2023 / :

A wealth of information there Theo Which I will add to my notes.

> If you need a place to ask for help on the Pi OS side, I can
> recommend the newsgroup comp.sys.raspberry-pi

Good to know i'll add it to my News reader.

Thanks for everything Theo, very good of you.

Cheers,

Bob.

Re: Nettle can't SSH into RaspPi

<5acb960b1cbob@sick-of-spam.invalid>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1695&group=comp.sys.acorn.apps#1695

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob...@sick-of-spam.invalid (Bob Latham)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Sat, 29 Jul 2023 14:37:27 +0100
Organization: None
Lines: 13
Message-ID: <5acb960b1cbob@sick-of-spam.invalid>
References: <5ac99d449fbob@sick-of-spam.invalid> <2bb1bfc95a.BrianNews@brianhowlett.me.uk> <J9j*LWdmz@news.chiark.greenend.org.uk> <5ac9f81ac4bob@sick-of-spam.invalid> <G9j*e6kmz@news.chiark.greenend.org.uk> <5acaae0566bob@sick-of-spam.invalid>
X-Trace: individual.net rdTFV4yeLB2m62g2ceWjKwMo8CTpNLRm35j7Z9BLUoeNicYWVW
X-Orig-Path: sick-of-spam.invalid!bob
Cancel-Lock: sha1:uT0SHaYg1qUjGmj08Qr+HDyVr8c= sha256:u05mZefPboLXiBMBBy5OnE+fnlGLp83NYg+YA/HZwQI=
X-No-Archive: Yes
User-Agent: NewsHound/v1.53-32 RC1
 by: Bob Latham - Sat, 29 Jul 2023 13:37 UTC

In article <5acaae0566bob@sick-of-spam.invalid>,
Bob Latham <bob@sick-of-spam.invalid> wrote:

> I can indeed ssh into my pi with this latest build all be it with
> many lines of dots first.

Would I be right in thinking I'm expecting too much for sudo
raspi-config to work? You get a menu but can't use anything.

Cheers,

Bob.

Re: Nettle can't SSH into RaspPi

<G9j*HgAmz@news.chiark.greenend.org.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1696&group=comp.sys.acorn.apps#1696

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsfeed.xs3.de!callisto.xs3.de!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+n...@chiark.greenend.org.uk (Theo)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: 30 Jul 2023 16:49:24 +0100 (BST)
Organization: University of Cambridge, England
Message-ID: <G9j*HgAmz@news.chiark.greenend.org.uk>
References: <5ac99d449fbob@sick-of-spam.invalid> <2bb1bfc95a.BrianNews@brianhowlett.me.uk> <J9j*LWdmz@news.chiark.greenend.org.uk> <5ac9f81ac4bob@sick-of-spam.invalid> <G9j*e6kmz@news.chiark.greenend.org.uk> <5acaae0566bob@sick-of-spam.invalid> <5acb960b1cbob@sick-of-spam.invalid>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="9610"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Sun, 30 Jul 2023 15:49 UTC

Bob Latham <bob@sick-of-spam.invalid> wrote:
> In article <5acaae0566bob@sick-of-spam.invalid>,
> Bob Latham <bob@sick-of-spam.invalid> wrote:
>
> > I can indeed ssh into my pi with this latest build all be it with
> > many lines of dots first.
>
> Would I be right in thinking I'm expecting too much for sudo
> raspi-config to work? You get a menu but can't use anything.

Hmm, that's puzzling. There's several things going wrong that I can see.

First of all, Nettle defaults to vt220 terminal. If you choose xterm-color,
you get colours. You can tell Nettle to remember that in settings.

Second, on my setup the Pi defaults to UTF-8 character set, but ZapRedraw in
Nettle is defaulting to ISO8859-1. This means the box drawing is messed up.
You can fix that by running on the Pi:

sudo dpkg-reconfigure locales

and select en_GB.iso8859-1 to install. Once installed, run

export LANG=en_GB.iso8859-1

in your SSH session, then you can 'sudo raspi-config'. Now the box drawing
should work.

But the thing I can't work out is why the Return key doesn't work, so you
can't choose any options. I ran a terminal debugger
(/usr/lib/ncurses/examples/demo_altkeys after installing the
ncurses-examples package) and both Return and keypad Enter are sending the
newline character (10, ^J), which is the same as my Linux laptop (both
natively and SSHed into the same Pi). So puzzled as to why Nettle isn't
working.

I'll continue to ponder in search of ideas as to what might be wrong...

Theo

Re: Nettle can't SSH into RaspPi

<5acc3f8ea5bob@sick-of-spam.invalid>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=1697&group=comp.sys.acorn.apps#1697

  copy link   Newsgroups: comp.sys.acorn.apps
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bob...@sick-of-spam.invalid (Bob Latham)
Newsgroups: comp.sys.acorn.apps
Subject: Re: Nettle can't SSH into RaspPi
Date: Sun, 30 Jul 2023 21:29:02 +0100
Organization: None
Lines: 49
Message-ID: <5acc3f8ea5bob@sick-of-spam.invalid>
References: <5ac99d449fbob@sick-of-spam.invalid> <2bb1bfc95a.BrianNews@brianhowlett.me.uk> <J9j*LWdmz@news.chiark.greenend.org.uk> <5ac9f81ac4bob@sick-of-spam.invalid> <G9j*e6kmz@news.chiark.greenend.org.uk> <5acaae0566bob@sick-of-spam.invalid> <5acb960b1cbob@sick-of-spam.invalid> <G9j*HgAmz@news.chiark.greenend.org.uk>
X-Trace: individual.net sa/Exk68dAEogkXfCGtLKgHSX2TYIlXmGqVk2i85koCE0bajyE
X-Orig-Path: sick-of-spam.invalid!bob
Cancel-Lock: sha1:g8NAWrY7pCEDX1bHYBvR5BPEgks= sha256:EOanab2/i+kQhnb/MUERtaSwCg/mJLa+eK2s+2Rl6+g=
X-No-Archive: Yes
User-Agent: NewsHound/v1.53-32 RC1
 by: Bob Latham - Sun, 30 Jul 2023 20:29 UTC

In article <G9j*HgAmz@news.chiark.greenend.org.uk>,
Theo <theom+news@chiark.greenend.org.uk> wrote:
> Bob Latham <bob@sick-of-spam.invalid> wrote:
> > In article <5acaae0566bob@sick-of-spam.invalid>,
> > Bob Latham <bob@sick-of-spam.invalid> wrote:
> >
> > > I can indeed ssh into my pi with this latest build all be it with
> > > many lines of dots first.
> >
> > Would I be right in thinking I'm expecting too much for sudo
> > raspi-config to work? You get a menu but can't use anything.

> Hmm, that's puzzling. There's several things going wrong that I
> can see.

> First of all, Nettle defaults to vt220 terminal. If you choose
> xterm-color, you get colours. You can tell Nettle to remember that
> in settings.

> Second, on my setup the Pi defaults to UTF-8 character set, but
> ZapRedraw in Nettle is defaulting to ISO8859-1. This means the box
> drawing is messed up. You can fix that by running on the Pi:

> sudo dpkg-reconfigure locales

> and select en_GB.iso8859-1 to install. Once installed, run

> export LANG=en_GB.iso8859-1

> in your SSH session, then you can 'sudo raspi-config'. Now the box
> drawing should work.

> But the thing I can't work out is why the Return key doesn't work,
> so you can't choose any options. I ran a terminal debugger
> (/usr/lib/ncurses/examples/demo_altkeys after installing the
> ncurses-examples package) and both Return and keypad Enter are
> sending the newline character (10, ^J), which is the same as my
> Linux laptop (both natively and SSHed into the same Pi). So
> puzzled as to why Nettle isn't working.

> I'll continue to ponder in search of ideas as to what might be
> wrong...

Interesting and thanks once again.

Cheers,

Bob.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor