Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"When it comes to humility, I'm the greatest." -- Bullwinkle Moose


computers / alt.comp.os.windows-10 / Can't connect SSH server to pc

SubjectAuthor
* Can't connect SSH server to pcFokke Nauta
+* Re: Can't connect SSH server to pcVanguardLH
|`- Re: Can't connect SSH server to pcFokke Nauta
+* Re: Can't connect SSH server to pcPaul
|`* Re: Can't connect SSH server to pcFokke Nauta
| `* Re: Can't connect SSH server to pcPaul
|  `- Re: Can't connect SSH server to pcFokke Nauta
`* Re: Can't connect SSH server to pcPeter Johnson
 `- Re: Can't connect SSH server to pcFokke Nauta

1
Can't connect SSH server to pc

<l29gahFr8ldU2@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=78082&group=alt.comp.os.windows-10#78082

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@solfon.nl (Fokke Nauta)
Newsgroups: alt.comp.os.windows-10
Subject: Can't connect SSH server to pc
Date: Sun, 4 Feb 2024 14:04:17 +0100
Lines: 31
Message-ID: <l29gahFr8ldU2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net tZxcOJ0IusLUQ9ShREVfyAcCuLol9/8nzwDwMN1o36JF31Qq4F
Cancel-Lock: sha1:eD0eelyYoFSiB+JFVigc9qUfRm0= sha256:mmAoLZBPzkteK/QVzP3jVbrmaxJ/YzjFLtLTEFG7CBU=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: nl
 by: Fokke Nauta - Sun, 4 Feb 2024 13:04 UTC

Hi all,

We have two smartphones, a Samsung S10 and a Samsung A53. On both phones
I installed a SSH server. ón my pc (Windows 10 Pro) I have an FTP
client, CuteFTP 9.3. With this client I can make a connection with the
A53 phone, after starting up the SSH server. Very easy!
However, with the S10 phone it won't work. The same SSH server, a
different user name and password. If I try to make a connection, there
is an error. This shows up in the client on the pc:

STATUS:> [04/02/2024 13:45:21] Getting listing ""...
STATUS:> [04/02/2024 13:45:21] Connecting to SFTP server...
192.168.1.160:2222 (ip = 192.168.1.160)...
ERROR:> [04/02/2024 13:45:22] Disconnect: key exchange failed.
ERROR:> [04/02/2024 13:45:22] Check security settings; make sure
that the username and password are correct, and that the chosen
encryption algorithms are supported by server.
STATUS:> [04/02/2024 13:45:22] Can't connect to 192.168.1.160:2222.
STATUS:> [04/02/2024 13:45:22] SFTP connection closed.

The user name and password is OK, no problem there. The chosen
encryption algorithms are the same on both phones, as the configuration
of the SSH servers on the phone is the same, apart from the user names
and passwords. But they are correct.

What may be wrong?

Many thanks in advance for your help.

With regards,
Fokke Nauta

Re: Can't connect SSH server to pc

<1bj9md673hclw.dlg@v.nguard.lh>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=78085&group=alt.comp.os.windows-10#78085

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: V@nguard.LH (VanguardLH)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Can't connect SSH server to pc
Date: Sun, 4 Feb 2024 10:23:28 -0600
Organization: Usenet Elder
Lines: 32
Sender: V@nguard.LH
Message-ID: <1bj9md673hclw.dlg@v.nguard.lh>
References: <l29gahFr8ldU2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 6iPwoNhWh00oQU6PatmnfATRZ997L2JIZNMrpBSsGmGYz+QJFJ
Keywords: VanguardLH,VLH
Cancel-Lock: sha1:vAJjqwqakv1QlRQXkuR9w/htVuc= sha256:Xydias72A2rp+OnIS2hLNkGrlxS6K/Om7bTlawstd/0=
User-Agent: 40tude_Dialog/2.0.15.41
 by: VanguardLH - Sun, 4 Feb 2024 16:23 UTC

Fokke Nauta <usenet@solfon.nl> wrote:

> We have two smartphones, a Samsung S10 and a Samsung A53. On both phones
> I installed a SSH server. ón my pc (Windows 10 Pro) I have an FTP
> client, CuteFTP 9.3. With this client I can make a connection with the
> A53 phone, after starting up the SSH server. Very easy!
> However, with the S10 phone it won't work. The same SSH server, a
> different user name and password. If I try to make a connection, there
> is an error. This shows up in the client on the pc:
>
> STATUS:> [04/02/2024 13:45:21] Getting listing ""...
> STATUS:> [04/02/2024 13:45:21] Connecting to SFTP server...
> 192.168.1.160:2222 (ip = 192.168.1.160)...
> ERROR:> [04/02/2024 13:45:22] Disconnect: key exchange failed.
> ERROR:> [04/02/2024 13:45:22] Check security settings; make sure
> that the username and password are correct, and that the chosen
> encryption algorithms are supported by server.
> STATUS:> [04/02/2024 13:45:22] Can't connect to 192.168.1.160:2222.
> STATUS:> [04/02/2024 13:45:22] SFTP connection closed.
>
> The user name and password is OK, no problem there. The chosen
> encryption algorithms are the same on both phones, as the configuration
> of the SSH servers on the phone is the same, apart from the user names
> and passwords. But they are correct.

Since the error says "key", perhaps the error is not about supported
ciphers, but about a certificate. To do sFTP, wouldn't the SSH server
need to have a certificate? Did you check Security -> Encryption &
Credentials to make sure the SSH install on your S10 phone added a
certificate (and compare to the A53 phone)?

https://smallstep.com/blog/use-ssh-certificates/

Re: Can't connect SSH server to pc

<upoqa9$3q4jr$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=78097&group=alt.comp.os.windows-10#78097

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@needed.invalid (Paul)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Can't connect SSH server to pc
Date: Sun, 4 Feb 2024 14:59:03 -0500
Organization: A noiseless patient Spider
Lines: 74
Message-ID: <upoqa9$3q4jr$1@dont-email.me>
References: <l29gahFr8ldU2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 4 Feb 2024 19:59:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ba1b7113392ddaee1687d73b02fd8bfc";
logging-data="4002427"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LFVY0R+KPnkA5hjIuBfbmOjE4VZjAU6E="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:0JAFt7mRzYRRHV4tAj9O/P2TuM8=
In-Reply-To: <l29gahFr8ldU2@mid.individual.net>
Content-Language: en-US
 by: Paul - Sun, 4 Feb 2024 19:59 UTC

On 2/4/2024 8:04 AM, Fokke Nauta wrote:
> Hi all,
>
> We have two smartphones, a Samsung S10 and a Samsung A53. On both phones I installed a SSH server. ón my pc (Windows 10 Pro) I have an FTP client, CuteFTP 9.3. With this client I can make a connection with the A53 phone, after starting up the SSH server. Very easy!
> However, with the S10 phone it won't work. The same SSH server, a different user name and password. If I try to make a connection, there is an error. This shows up in the client on the pc:
>
> STATUS:>      [04/02/2024 13:45:21] Getting listing ""...
> STATUS:>      [04/02/2024 13:45:21] Connecting to SFTP server... 192.168.1.160:2222 (ip = 192.168.1.160)...
> ERROR:>       [04/02/2024 13:45:22] Disconnect: key exchange failed.
> ERROR:>       [04/02/2024 13:45:22] Check security settings; make sure that the username and password are correct, and that the chosen encryption algorithms are supported by server.
> STATUS:>      [04/02/2024 13:45:22] Can't connect to 192.168.1.160:2222.
> STATUS:>      [04/02/2024 13:45:22] SFTP connection closed.
>
> The user name and password is OK, no problem there. The chosen encryption algorithms are the same on both phones, as the configuration of the SSH servers on the phone is the same, apart from the user names and passwords. But they are correct.
>
> What may be wrong?
>
> Many thanks in advance for your help.
>
> With regards,
> Fokke Nauta

https://winscp.net/eng/index.php

One of the problems with your log, is it isn't detailed enough.

This tool has "Debug level 2", which may show a bit more information
about what OpenSSL is doing during TLS handshake. But since there is
no visual proof on this web page, I really doubt there will be
"meat" in this log either. It seems to report a few details
about crypto, but not everything. The error message is more detailed (maybe).

https://winscp.net/forum/viewtopic.php?t=22968

Filezilla is another potential tool.

I would tell you to use ssllabs server test for this, but
I don't think their offering is for anything but https:
and is not for sftp: . And in any case, ssllabs output
would not tell you about "Diffie Hellman length".

https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange

The problem is likely to be coming from an OpenSSL library
used to handle secure connections. The application developer
could in fact be as dumb as a post, when writing code for this.
Error descriptions do not necessarily need to percolate up
the stack and be printed on the screen in an intelligible manner.
For example "Connection Error" is about as much work as a
lazy programmer is required to do. That's the beauty of using
OpenSSL lib and not knowing how it works.

If the developers were forced to write their own SSL/TLS code,
there would be a richer log at default level.

I've had this problem at work. Some dopey application would
report "error 5" and I would ask the software developer
sitting in cubicle city "why is this error so terse?". And
one of them explained there are two error levels, and adding
about five lines of code gets the "original" error. This is the
level of care and attention required of developers -- to do a
superior job, errors must be allowed to percolate up, complete
with all the text describing what is wrong. You can't just be
printing "error 5" and be heading off for a coffee and donut.
"Do the work", is what I tell them. During this interval, I
actually wrote my own code, to see how hard it was to get
the detailed error message. Even I could manage to do it :-)
(Hobby programmer)

There are hooks for it.

https://stackoverflow.com/questions/44585974/openssl-debug-information-when-using-the-library

Paul

Re: Can't connect SSH server to pc

<l2c0c5F9q8gU4@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=78105&group=alt.comp.os.windows-10#78105

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@solfon.nl (Fokke Nauta)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 12:50:30 +0100
Lines: 40
Message-ID: <l2c0c5F9q8gU4@mid.individual.net>
References: <l29gahFr8ldU2@mid.individual.net> <1bj9md673hclw.dlg@v.nguard.lh>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net L23lWDm1ofLx29jbvrOpdwmhrEPF9rH0M/6x8xBlASDAqDL4Zv
Cancel-Lock: sha1:oA4aa4BZdcfIsBdNpLQg+NVf1j0= sha256:GESnWNpVnvl8tUVFNnd0+oYIG9uerR1iHvSgVrtgWYk=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: nl
In-Reply-To: <1bj9md673hclw.dlg@v.nguard.lh>
 by: Fokke Nauta - Mon, 5 Feb 2024 11:50 UTC

On 04/02/2024 17:23, VanguardLH wrote:
> Fokke Nauta <usenet@solfon.nl> wrote:
>
>> We have two smartphones, a Samsung S10 and a Samsung A53. On both phones
>> I installed a SSH server. ón my pc (Windows 10 Pro) I have an FTP
>> client, CuteFTP 9.3. With this client I can make a connection with the
>> A53 phone, after starting up the SSH server. Very easy!
>> However, with the S10 phone it won't work. The same SSH server, a
>> different user name and password. If I try to make a connection, there
>> is an error. This shows up in the client on the pc:
>>
>> STATUS:> [04/02/2024 13:45:21] Getting listing ""...
>> STATUS:> [04/02/2024 13:45:21] Connecting to SFTP server...
>> 192.168.1.160:2222 (ip = 192.168.1.160)...
>> ERROR:> [04/02/2024 13:45:22] Disconnect: key exchange failed.
>> ERROR:> [04/02/2024 13:45:22] Check security settings; make sure
>> that the username and password are correct, and that the chosen
>> encryption algorithms are supported by server.
>> STATUS:> [04/02/2024 13:45:22] Can't connect to 192.168.1.160:2222.
>> STATUS:> [04/02/2024 13:45:22] SFTP connection closed.
>>
>> The user name and password is OK, no problem there. The chosen
>> encryption algorithms are the same on both phones, as the configuration
>> of the SSH servers on the phone is the same, apart from the user names
>> and passwords. But they are correct.
>
> Since the error says "key", perhaps the error is not about supported
> ciphers, but about a certificate. To do sFTP, wouldn't the SSH server
> need to have a certificate? Did you check Security -> Encryption &
> Credentials to make sure the SSH install on your S10 phone added a
> certificate (and compare to the A53 phone)?
>
> https://smallstep.com/blog/use-ssh-certificates/

Thanks.

On both phones I could not find a certificate for the SSH server.

Fokke

Re: Can't connect SSH server to pc

<l2c0sdF9q8gU5@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=78106&group=alt.comp.os.windows-10#78106

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@solfon.nl (Fokke Nauta)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 12:59:09 +0100
Lines: 86
Message-ID: <l2c0sdF9q8gU5@mid.individual.net>
References: <l29gahFr8ldU2@mid.individual.net> <upoqa9$3q4jr$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ug/p7x5xbBY42bXBhv1E0QXL+YuYfEfw1F+M0n6TqV6xMFHbNW
Cancel-Lock: sha1:xVmQdb+RwOGUn+aMnpaiXyVFcqk= sha256:f2tUzuEIBYEiTg0gyaBSJhEzHnkn7rDKsafsvOiQcUM=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: nl
In-Reply-To: <upoqa9$3q4jr$1@dont-email.me>
 by: Fokke Nauta - Mon, 5 Feb 2024 11:59 UTC

On 04/02/2024 20:59, Paul wrote:
> On 2/4/2024 8:04 AM, Fokke Nauta wrote:
>> Hi all,
>>
>> We have two smartphones, a Samsung S10 and a Samsung A53. On both phones I installed a SSH server. ón my pc (Windows 10 Pro) I have an FTP client, CuteFTP 9.3. With this client I can make a connection with the A53 phone, after starting up the SSH server. Very easy!
>> However, with the S10 phone it won't work. The same SSH server, a different user name and password. If I try to make a connection, there is an error. This shows up in the client on the pc:
>>
>> STATUS:>      [04/02/2024 13:45:21] Getting listing ""...
>> STATUS:>      [04/02/2024 13:45:21] Connecting to SFTP server... 192.168.1.160:2222 (ip = 192.168.1.160)...
>> ERROR:>       [04/02/2024 13:45:22] Disconnect: key exchange failed.
>> ERROR:>       [04/02/2024 13:45:22] Check security settings; make sure that the username and password are correct, and that the chosen encryption algorithms are supported by server.
>> STATUS:>      [04/02/2024 13:45:22] Can't connect to 192.168.1.160:2222.
>> STATUS:>      [04/02/2024 13:45:22] SFTP connection closed.
>>
>> The user name and password is OK, no problem there. The chosen encryption algorithms are the same on both phones, as the configuration of the SSH servers on the phone is the same, apart from the user names and passwords. But they are correct.
>>
>> What may be wrong?
>>
>> Many thanks in advance for your help.
>>
>> With regards,
>> Fokke Nauta
>
> https://winscp.net/eng/index.php
>
> One of the problems with your log, is it isn't detailed enough.
>
> This tool has "Debug level 2", which may show a bit more information
> about what OpenSSL is doing during TLS handshake. But since there is
> no visual proof on this web page, I really doubt there will be
> "meat" in this log either. It seems to report a few details
> about crypto, but not everything. The error message is more detailed (maybe).
>
> https://winscp.net/forum/viewtopic.php?t=22968
>
> Filezilla is another potential tool.
>
> I would tell you to use ssllabs server test for this, but
> I don't think their offering is for anything but https:
> and is not for sftp: . And in any case, ssllabs output
> would not tell you about "Diffie Hellman length".
>
> https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange
>
> The problem is likely to be coming from an OpenSSL library
> used to handle secure connections. The application developer
> could in fact be as dumb as a post, when writing code for this.
> Error descriptions do not necessarily need to percolate up
> the stack and be printed on the screen in an intelligible manner.
> For example "Connection Error" is about as much work as a
> lazy programmer is required to do. That's the beauty of using
> OpenSSL lib and not knowing how it works.
>
> If the developers were forced to write their own SSL/TLS code,
> there would be a richer log at default level.
>
> I've had this problem at work. Some dopey application would
> report "error 5" and I would ask the software developer
> sitting in cubicle city "why is this error so terse?". And
> one of them explained there are two error levels, and adding
> about five lines of code gets the "original" error. This is the
> level of care and attention required of developers -- to do a
> superior job, errors must be allowed to percolate up, complete
> with all the text describing what is wrong. You can't just be
> printing "error 5" and be heading off for a coffee and donut.
> "Do the work", is what I tell them. During this interval, I
> actually wrote my own code, to see how hard it was to get
> the detailed error message. Even I could manage to do it :-)
> (Hobby programmer)
>
> There are hooks for it.
>
> https://stackoverflow.com/questions/44585974/openssl-debug-information-when-using-the-library
>
> Paul

Thanks, Paul.
Thanks for the information.

I tried Filezilla, but that didn't work either.
On both phones the SSH server is configured in the same way. The only
differences are the user names and passwords. And I know these are correct.
So, what's actually wrong, I don't know.

Fokke

Re: Can't connect SSH server to pc

<upr487$cgi1$2@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=78113&group=alt.comp.os.windows-10#78113

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!nntp.comgw.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@needed.invalid (Paul)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 12:00:55 -0500
Organization: A noiseless patient Spider
Lines: 93
Message-ID: <upr487$cgi1$2@dont-email.me>
References: <l29gahFr8ldU2@mid.individual.net> <upoqa9$3q4jr$1@dont-email.me>
<l2c0sdF9q8gU5@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 5 Feb 2024 17:00:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0f084e89f3ceb8b2ebe25351ab457170";
logging-data="410177"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/1uWZBgYk12zO7CKDrpuawT0hEHHwMHwQ="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:zasG8DJm0bvAy11QPVVj0+g+3JM=
In-Reply-To: <l2c0sdF9q8gU5@mid.individual.net>
Content-Language: en-US
 by: Paul - Mon, 5 Feb 2024 17:00 UTC

On 2/5/2024 6:59 AM, Fokke Nauta wrote:
> On 04/02/2024 20:59, Paul wrote:
>> On 2/4/2024 8:04 AM, Fokke Nauta wrote:
>>> Hi all,
>>>
>>> We have two smartphones, a Samsung S10 and a Samsung A53. On both phones I installed a SSH server. ón my pc (Windows 10 Pro) I have an FTP client, CuteFTP 9.3. With this client I can make a connection with the A53 phone, after starting up the SSH server. Very easy!
>>> However, with the S10 phone it won't work. The same SSH server, a different user name and password. If I try to make a connection, there is an error. This shows up in the client on the pc:
>>>
>>> STATUS:>      [04/02/2024 13:45:21] Getting listing ""...
>>> STATUS:>      [04/02/2024 13:45:21] Connecting to SFTP server... 192.168.1.160:2222 (ip = 192.168.1.160)...
>>> ERROR:>       [04/02/2024 13:45:22] Disconnect: key exchange failed.
>>> ERROR:>       [04/02/2024 13:45:22] Check security settings; make sure that the username and password are correct, and that the chosen encryption algorithms are supported by server.
>>> STATUS:>      [04/02/2024 13:45:22] Can't connect to 192.168.1.160:2222.
>>> STATUS:>      [04/02/2024 13:45:22] SFTP connection closed.
>>>
>>> The user name and password is OK, no problem there. The chosen encryption algorithms are the same on both phones, as the configuration of the SSH servers on the phone is the same, apart from the user names and passwords. But they are correct.
>>>
>>> What may be wrong?
>>>
>>> Many thanks in advance for your help.
>>>
>>> With regards,
>>> Fokke Nauta
>>
>> https://winscp.net/eng/index.php
>>
>> One of the problems with your log, is it isn't detailed enough.
>>
>> This tool has "Debug level 2", which may show a bit more information
>> about what OpenSSL is doing during TLS handshake. But since there is
>> no visual proof on this web page, I really doubt there will be
>> "meat" in this log either. It seems to report a few details
>> about crypto, but not everything. The error message is more detailed (maybe).
>>
>> https://winscp.net/forum/viewtopic.php?t=22968
>>
>> Filezilla is another potential tool.
>>
>> I would tell you to use ssllabs server test for this, but
>> I don't think their offering is for anything but https:
>> and is not for sftp: . And in any case, ssllabs output
>> would not tell you about "Diffie Hellman length".
>>
>> https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange
>>
>> The problem is likely to be coming from an OpenSSL library
>> used to handle secure connections. The application developer
>> could in fact be as dumb as a post, when writing code for this.
>> Error descriptions do not necessarily need to percolate up
>> the stack and be printed on the screen in an intelligible manner.
>> For example "Connection Error" is about as much work as a
>> lazy programmer is required to do. That's the beauty of using
>> OpenSSL lib and not knowing how it works.
>>
>> If the developers were forced to write their own SSL/TLS code,
>> there would be a richer log at default level.
>>
>> I've had this problem at work. Some dopey application would
>> report "error 5" and I would ask the software developer
>> sitting in cubicle city "why is this error so terse?". And
>> one of them explained there are two error levels, and adding
>> about five lines of code gets the "original" error. This is the
>> level of care and attention required of developers -- to do a
>> superior job, errors must be allowed to percolate up, complete
>> with all the text describing what is wrong. You can't just be
>> printing "error 5" and be heading off for a coffee and donut.
>> "Do the work", is what I tell them. During this interval, I
>> actually wrote my own code, to see how hard it was to get
>> the detailed error message. Even I could manage to do it :-)
>> (Hobby programmer)
>>
>> There are hooks for it.
>>
>> https://stackoverflow.com/questions/44585974/openssl-debug-information-when-using-the-library
>>
>>     Paul
>
>
> Thanks, Paul.
> Thanks for the information.
>
> I tried Filezilla, but that didn't work either.
> On both phones the SSH server is configured in the same way. The only differences are the user names and passwords. And I know these are correct.
> So, what's actually wrong, I don't know.
>
> Fokke

What you need to do, is find one of these tools,
where you have control of "Debug Level" setting.
The debug level determines how informative any
log file will be.

Paul

Re: Can't connect SSH server to pc

<gd52sil0ki6mrqebq5jdai8ecotg535p2v@4ax.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=78114&group=alt.comp.os.windows-10#78114

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: peter@parksidewood.nospam (Peter Johnson)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Can't connect SSH server to pc
Date: Mon, 05 Feb 2024 17:12:20 +0000
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <gd52sil0ki6mrqebq5jdai8ecotg535p2v@4ax.com>
References: <l29gahFr8ldU2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="263f2aaf7ab310f26c9b3b03a86800c9";
logging-data="415934"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18drW5iTHpTOE/WWVhqXSopMPnsJmQuSfo="
User-Agent: ForteAgent/8.00.32.1272
Cancel-Lock: sha1:WX5ieI2aBZBteI0Gun7dus26OBU=
 by: Peter Johnson - Mon, 5 Feb 2024 17:12 UTC

On Sun, 4 Feb 2024 14:04:17 +0100, Fokke Nauta <usenet@solfon.nl>
wrote:

>Hi all,
>
>We have two smartphones, a Samsung S10 and a Samsung A53. On both phones
>I installed a SSH server. ón my pc (Windows 10 Pro) I have an FTP
>client, CuteFTP 9.3. With this client I can make a connection with the
>A53 phone, after starting up the SSH server. Very easy!
>However, with the S10 phone it won't work. The same SSH server, a
>different user name and password. If I try to make a connection, there
>is an error. This shows up in the client on the pc:

I don't know anything about SSH in this context but when I want to
access the file structure on my (Samsung) phone I connect it to my PC
by cable and use Windows File Manager to copy files in both
directions. No passwords or usernames required.

Re: Can't connect SSH server to pc

<l2cmu9FebdkU1@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=78117&group=alt.comp.os.windows-10#78117

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!news.samoylyk.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@solfon.nl (Fokke Nauta)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 19:15:37 +0100
Lines: 23
Message-ID: <l2cmu9FebdkU1@mid.individual.net>
References: <l29gahFr8ldU2@mid.individual.net>
<gd52sil0ki6mrqebq5jdai8ecotg535p2v@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net WpOduvzqmvTLrAerfwEyZABZLy1VCOYBmH3At/gkcZbZrXzTaq
Cancel-Lock: sha1:nvhttTURmhcF6n/Qa6nbwLnYC4E= sha256:ElgaOxu+bjnlbYJ3Zzz5XZZZBDmLfVqjACGMsfFO+hc=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: nl
In-Reply-To: <gd52sil0ki6mrqebq5jdai8ecotg535p2v@4ax.com>
 by: Fokke Nauta - Mon, 5 Feb 2024 18:15 UTC

On 05/02/2024 18:12, Peter Johnson wrote:
> On Sun, 4 Feb 2024 14:04:17 +0100, Fokke Nauta <usenet@solfon.nl>
> wrote:
>
>> Hi all,
>>
>> We have two smartphones, a Samsung S10 and a Samsung A53. On both phones
>> I installed a SSH server. ón my pc (Windows 10 Pro) I have an FTP
>> client, CuteFTP 9.3. With this client I can make a connection with the
>> A53 phone, after starting up the SSH server. Very easy!
>> However, with the S10 phone it won't work. The same SSH server, a
>> different user name and password. If I try to make a connection, there
>> is an error. This shows up in the client on the pc:
>
> I don't know anything about SSH in this context but when I want to
> access the file structure on my (Samsung) phone I connect it to my PC
> by cable and use Windows File Manager to copy files in both
> directions. No passwords or usernames required.

Yes, that's also possible and that is what we are doing now with the S10
phone. But using the wifi is easier.

Fokke

Re: Can't connect SSH server to pc

<l2h0d7F6gi9U1@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=78157&group=alt.comp.os.windows-10#78157

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@solfon.nl (Fokke Nauta)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Can't connect SSH server to pc
Date: Wed, 7 Feb 2024 10:21:43 +0100
Lines: 100
Message-ID: <l2h0d7F6gi9U1@mid.individual.net>
References: <l29gahFr8ldU2@mid.individual.net> <upoqa9$3q4jr$1@dont-email.me>
<l2c0sdF9q8gU5@mid.individual.net> <upr487$cgi1$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net iHYtwCx04fc1PeMbZsMimgy7I6MxryAAB2BfDik9ZPpxzJHI9H
Cancel-Lock: sha1:OMDMUugfN51BR1k6pF147ZJXSMk= sha256:bhDNvIORZ2Np3fkA9AOUUnZveAPMP5jLnl0mjBfmRIU=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: nl
In-Reply-To: <upr487$cgi1$2@dont-email.me>
 by: Fokke Nauta - Wed, 7 Feb 2024 09:21 UTC

On 05/02/2024 18:00, Paul wrote:
> On 2/5/2024 6:59 AM, Fokke Nauta wrote:
>> On 04/02/2024 20:59, Paul wrote:
>>> On 2/4/2024 8:04 AM, Fokke Nauta wrote:
>>>> Hi all,
>>>>
>>>> We have two smartphones, a Samsung S10 and a Samsung A53. On both phones I installed a SSH server. ón my pc (Windows 10 Pro) I have an FTP client, CuteFTP 9.3. With this client I can make a connection with the A53 phone, after starting up the SSH server. Very easy!
>>>> However, with the S10 phone it won't work. The same SSH server, a different user name and password. If I try to make a connection, there is an error. This shows up in the client on the pc:
>>>>
>>>> STATUS:>      [04/02/2024 13:45:21] Getting listing ""...
>>>> STATUS:>      [04/02/2024 13:45:21] Connecting to SFTP server... 192.168.1.160:2222 (ip = 192.168.1.160)...
>>>> ERROR:>       [04/02/2024 13:45:22] Disconnect: key exchange failed.
>>>> ERROR:>       [04/02/2024 13:45:22] Check security settings; make sure that the username and password are correct, and that the chosen encryption algorithms are supported by server.
>>>> STATUS:>      [04/02/2024 13:45:22] Can't connect to 192.168.1.160:2222.
>>>> STATUS:>      [04/02/2024 13:45:22] SFTP connection closed.
>>>>
>>>> The user name and password is OK, no problem there. The chosen encryption algorithms are the same on both phones, as the configuration of the SSH servers on the phone is the same, apart from the user names and passwords. But they are correct.
>>>>
>>>> What may be wrong?
>>>>
>>>> Many thanks in advance for your help.
>>>>
>>>> With regards,
>>>> Fokke Nauta
>>>
>>> https://winscp.net/eng/index.php
>>>
>>> One of the problems with your log, is it isn't detailed enough.
>>>
>>> This tool has "Debug level 2", which may show a bit more information
>>> about what OpenSSL is doing during TLS handshake. But since there is
>>> no visual proof on this web page, I really doubt there will be
>>> "meat" in this log either. It seems to report a few details
>>> about crypto, but not everything. The error message is more detailed (maybe).
>>>
>>> https://winscp.net/forum/viewtopic.php?t=22968
>>>
>>> Filezilla is another potential tool.
>>>
>>> I would tell you to use ssllabs server test for this, but
>>> I don't think their offering is for anything but https:
>>> and is not for sftp: . And in any case, ssllabs output
>>> would not tell you about "Diffie Hellman length".
>>>
>>> https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange
>>>
>>> The problem is likely to be coming from an OpenSSL library
>>> used to handle secure connections. The application developer
>>> could in fact be as dumb as a post, when writing code for this.
>>> Error descriptions do not necessarily need to percolate up
>>> the stack and be printed on the screen in an intelligible manner.
>>> For example "Connection Error" is about as much work as a
>>> lazy programmer is required to do. That's the beauty of using
>>> OpenSSL lib and not knowing how it works.
>>>
>>> If the developers were forced to write their own SSL/TLS code,
>>> there would be a richer log at default level.
>>>
>>> I've had this problem at work. Some dopey application would
>>> report "error 5" and I would ask the software developer
>>> sitting in cubicle city "why is this error so terse?". And
>>> one of them explained there are two error levels, and adding
>>> about five lines of code gets the "original" error. This is the
>>> level of care and attention required of developers -- to do a
>>> superior job, errors must be allowed to percolate up, complete
>>> with all the text describing what is wrong. You can't just be
>>> printing "error 5" and be heading off for a coffee and donut.
>>> "Do the work", is what I tell them. During this interval, I
>>> actually wrote my own code, to see how hard it was to get
>>> the detailed error message. Even I could manage to do it :-)
>>> (Hobby programmer)
>>>
>>> There are hooks for it.
>>>
>>> https://stackoverflow.com/questions/44585974/openssl-debug-information-when-using-the-library
>>>
>>>     Paul
>>
>>
>> Thanks, Paul.
>> Thanks for the information.
>>
>> I tried Filezilla, but that didn't work either.
>> On both phones the SSH server is configured in the same way. The only differences are the user names and passwords. And I know these are correct.
>> So, what's actually wrong, I don't know.
>>
>> Fokke
>
> What you need to do, is find one of these tools,
> where you have control of "Debug Level" setting.
> The debug level determines how informative any
> log file will be.
>
> Paul

Thanks.

I'm gonna try.

Fokke

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor