Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"The geeks shall inherit the earth." -- Karl Lehenbauer


computers / comp.mobile.android / Can't connect SSH server to pc

SubjectAuthor
* Can't connect SSH server to pcFokke Nauta
+* Re: Can't connect SSH server to pcArno Welzel
|`- Re: Can't connect SSH server to pcFokke Nauta
+* Re: Can't connect SSH server to pcTheo
|`* Re: Can't connect SSH server to pcFokke Nauta
| +- Re: Can't connect SSH server to pcFokke Nauta
| +* Re: Can't connect SSH server to pcChris Green
| |`* Re: Can't connect SSH server to pcFokke Nauta
| | +* Re: Can't connect SSH server to pcAndy Burns
| | |`* Re: Can't connect SSH server to pcFokke Nauta
| | | `* Re: Can't connect SSH server to pcAndy Burns
| | |  `* Re: Can't connect SSH server to pcFokke Nauta
| | |   `* Re: Can't connect SSH server to pcAndy Burns
| | |    `* Re: Can't connect SSH server to pcFokke Nauta
| | |     `- Re: Can't connect SSH server to pcAndy Burns
| | `* Re: Can't connect SSH server to pcTheo
| |  `- Re: Can't connect SSH server to pcFokke Nauta
| +* Re: Can't connect SSH server to pcArno Welzel
| |+* Re: Can't connect SSH server to pcFokke Nauta
| ||`* Re: Can't connect SSH server to pcAndy Burns
| || `- Re: Can't connect SSH server to pcFokke Nauta
| |`* Re: Can't connect SSH server to pcFokke Nauta
| | +* Re: Can't connect SSH server to pcAndy Burns
| | |`* Re: Can't connect SSH server to pcFokke Nauta
| | | `- Re: Can't connect SSH server to pcFokke Nauta
| | `* Re: Can't connect SSH server to pcTheo
| |  `- Re: Can't connect SSH server to pcFokke Nauta
| `* Re: Can't connect SSH server to pcCarlos E.R.
|  `* Re: Can't connect SSH server to pcFokke Nauta
|   +* Re: Can't connect SSH server to pcAndy Burns
|   |`- Re: Can't connect SSH server to pcFokke Nauta
|   `* Re: Can't connect SSH server to pcCarlos E.R.
|    `- Re: Can't connect SSH server to pcFokke Nauta
`* Re: Can't connect SSH server to pcFokke Nauta
 `- Re: Can't connect SSH server to pcCarlos E.R.

Pages:12
Can't connect SSH server to pc

<l29g6nFr8ldU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49672&group=comp.mobile.android#49672

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.niel.me!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Can't connect SSH server to pc
Date: Sun, 4 Feb 2024 14:02:15 +0100
Lines: 31
Message-ID: <l29g6nFr8ldU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net hVRP81DhXdTybTNStSMH3AdBz13jgqOgNsJaL8/qy4pRZLuU1s
Cancel-Lock: sha1:wrwVd68K8Y7VgyYFpHyoDCrfIPs= sha256:8ou7hIuRtvNwq8g3wqoVGgSYSTcrEg24GCSb2RM/Q/A=
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:02 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

<l2bompF92atU2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49691&group=comp.mobile.android#49691

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@arnowelzel.de (Arno Welzel)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 10:39:38 +0100
Lines: 19
Message-ID: <l2bompF92atU2@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net CRtNVqqgjgNm85+/eaA08gy0mSr5Z3qPVZSDJtYFhMrbfofqKq
Cancel-Lock: sha1:EHhLy8FFFOMmub9niyo5F/1FQB4= sha256:/9ZxOZjW7B+T7IgGJ4yuIQo/mH0pq8wskUYODHyuwNo=
Content-Language: de-DE
In-Reply-To: <l29g6nFr8ldU1@mid.individual.net>
 by: Arno Welzel - Mon, 5 Feb 2024 09:39 UTC

Fokke Nauta, 2024-02-04 14:02:

[...]
> 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?

Just to be sure that it's not a issue with the client, try FileZilla:

<https://filezilla-project.org/>

--
Arno Welzel
https://arnowelzel.de

Re: Can't connect SSH server to pc

<8Nn*Z9cCz@news.chiark.greenend.org.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49694&group=comp.mobile.android#49694

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsfeed.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.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: 05 Feb 2024 10:51:56 +0000 (GMT)
Organization: University of Cambridge, England
Message-ID: <8Nn*Z9cCz@news.chiark.greenend.org.uk>
References: <l29g6nFr8ldU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="15715"; 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 - Mon, 5 Feb 2024 10:51 UTC

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:
>
> 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.

Something is failing in the negotiation when you connect, but not enough
info to be clear what it is.

Open a Windows command prompt or Powershell and type:

ssh -vvv -p 2222 phone_username@192.168.1.160

(assuming that is the IP of the phone, replacing phone_username with the
username you configured on the phone)

and post the log here.

As a wild guess it's possible the SSH server is configured to use SSH keys
rather than password authentication, but I'm not familiar with the way
CuteFTP logs things to be sure.

Theo

Re: Can't connect SSH server to pc

<l2bt0dF9q8gU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49695&group=comp.mobile.android#49695

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 11:53:01 +0100
Lines: 22
Message-ID: <l2bt0dF9q8gU1@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<l2bompF92atU2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net BedcTuacze7VghRC4EMNsgkYzzPkObNHHI3fDXZ7uv+XfjRv9l
Cancel-Lock: sha1:71W6128CIXuUj6dTSfHnryHzLx0= sha256:iZqy20xQyC27tMt+ViU/znJNt3E1TPc31/gmXLPb2jw=
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: <l2bompF92atU2@mid.individual.net>
 by: Fokke Nauta - Mon, 5 Feb 2024 10:53 UTC

On 05/02/2024 10:39, Arno Welzel wrote:
> Fokke Nauta, 2024-02-04 14:02:
>
> [...]
>> 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?
>
> Just to be sure that it's not a issue with the client, try FileZilla:
>
> <https://filezilla-project.org/>
>
>

Thanks. I downloaded and installed it, but it didn't connect. It gave an
error message.
So - it's not the client.

Fokke

Re: Can't connect SSH server to pc

<l2bu29F9q8gU2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49696&group=comp.mobile.android#49696

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 12:11:05 +0100
Lines: 55
Message-ID: <l2bu29F9q8gU2@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net DD1N/9Wq0fO8OUf0eqpoFwpskXg1bYwyZJzVQzUtE0tBfsI1o1
Cancel-Lock: sha1:FljVJ/rbe+buh5go8DGcj1hYZwc= sha256:bbO2GcBMivc3/a/VsXFts6ZcHjO1dh31+VffuH/JMJQ=
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: <8Nn*Z9cCz@news.chiark.greenend.org.uk>
 by: Fokke Nauta - Mon, 5 Feb 2024 11:11 UTC

On 05/02/2024 11:51, Theo wrote:
> 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:
>>
>> 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.
>
> Something is failing in the negotiation when you connect, but not enough
> info to be clear what it is.
>
> Open a Windows command prompt or Powershell and type:
>
> ssh -vvv -p 2222 phone_username@192.168.1.160
>
> (assuming that is the IP of the phone, replacing phone_username with the
> username you configured on the phone)
>
> and post the log here.
>
>
> As a wild guess it's possible the SSH server is configured to use SSH keys
> rather than password authentication, but I'm not familiar with the way
> CuteFTP logs things to be sure.
>
> Theo

Thanks.

I opened the command prompt and saw a long log text, but I didn't manage
yet to get it into a text file.
I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
There is a file called msg.txt but it is empty.
Perhaps I should use Powershell?

Fokke

Re: Can't connect SSH server to pc

<l2bvndF9q8gU3@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49697&group=comp.mobile.android#49697

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 12:39:25 +0100
Lines: 65
Message-ID: <l2bvndF9q8gU3@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net y7s/c/asblCvjxT2sKChFw6DrgrAophvnwmUeUKQYQvUHj4hfd
Cancel-Lock: sha1:s4WwkusrxgoybE6TKCcg1yVRk7k= sha256:oLeSBvJjzgOITASn6DJ7UIuA0ckmvtLo23yZH65ju3Y=
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: <l2bu29F9q8gU2@mid.individual.net>
 by: Fokke Nauta - Mon, 5 Feb 2024 11:39 UTC

On 05/02/2024 12:11, Fokke Nauta wrote:
> On 05/02/2024 11:51, Theo wrote:
>> 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:
>>>
>>> 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.
>>
>> Something is failing in the negotiation when you connect, but not enough
>> info to be clear what it is.
>>
>> Open a Windows command prompt or Powershell and type:
>>
>> ssh -vvv -p 2222 phone_username@192.168.1.160
>>
>> (assuming that is the IP of the phone, replacing phone_username with the
>> username you configured on the phone)
>>
>> and post the log here.
>>
>>
>> As a wild guess it's possible the SSH server is configured to use SSH
>> keys
>> rather than password authentication, but I'm not familiar with the way
>> CuteFTP logs things to be sure.
>>
>> Theo
>
> Thanks.
>
> I opened the command prompt and saw a long log text, but I didn't manage
> yet to get it into a text file.
> I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
> There is a file called msg.txt but it is empty.
> Perhaps I should use Powershell?
>
> Fokke

With powershell I get a very short text, but again I can not save it
into a file.

Fokke

Re: Can't connect SSH server to pc

<bd679k-qb4p2.ln1@esprimo.zbmc.eu>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49701&group=comp.mobile.android#49701

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.niel.me!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: cl...@isbd.net (Chris Green)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 14:02:51 +0000
Lines: 16
Message-ID: <bd679k-qb4p2.ln1@esprimo.zbmc.eu>
References: <l29g6nFr8ldU1@mid.individual.net> <8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ELRcoFf+RowaSTVjjXswag5KP4aY06FfhQlpDKtsEQ7LOjPRg=
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:45BDF+0Quz9CQfzBIRMOtbdlv3Y= sha256:ftxC+lVCsFZjHwXDvLFHPjPznWgxjbC5df06NNirMG0=
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-91-generic (x86_64))
 by: Chris Green - Mon, 5 Feb 2024 14:02 UTC

Fokke Nauta <usenet@solfon.nl> wrote:
>
> I opened the command prompt and saw a long log text, but I didn't manage
> yet to get it into a text file.
> I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
> There is a file called msg.txt but it is empty.
> Perhaps I should use Powershell?
>
You probably need something like:-
ssh -vvv -p 2222 slauf@192.168.1.160 >A:\msg.txt 2>&1

The '2>&1' redirects stderr to stdout (which is already going to msg.txt)

--
Chris Green
·

Re: Can't connect SSH server to pc

<l2cclaFch5iU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49702&group=comp.mobile.android#49702

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@arnowelzel.de (Arno Welzel)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 16:20:11 +0100
Lines: 16
Message-ID: <l2cclaFch5iU1@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net Gh/X87rLjvEAa6SJuBgpNAYu8+vfEOicP69q+SrH/swcpLRJLF
Cancel-Lock: sha1:dQLK3tqpJjQI6Rpk2qYoZf7otOM= sha256:B/nG5p65wZdAX6IcYOYdpXWmFfctDOSn+SHm/bYdYcs=
Content-Language: de-DE
In-Reply-To: <l2bu29F9q8gU2@mid.individual.net>
 by: Arno Welzel - Mon, 5 Feb 2024 15:20 UTC

Fokke Nauta, 2024-02-05 12:11:

[...]
> I opened the command prompt and saw a long log text, but I didn't manage
> yet to get it into a text file.
> I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
> There is a file called msg.txt but it is empty.
> Perhaps I should use Powershell?

You should also be able to select the text in the command prompt windows
and copy it without redirecting the output of ssh to a file.

--
Arno Welzel
https://arnowelzel.de

Re: Can't connect SSH server to pc

<l2chv2Fdg5fU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49705&group=comp.mobile.android#49705

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 17:50:42 +0100
Lines: 17
Message-ID: <l2chv2Fdg5fU1@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<l2cclaFch5iU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net kw3nFTRBZJHUXOcsEiP2vQVUH9QOcpZVmIeFbY4ksm+vRD5WoP
Cancel-Lock: sha1:2qjxp+37uMT4XOxlPcrki76XaB0= sha256:EvMPHndVacqDUhjLgR1y5gTbPfFwkYaBMJI9izIPadY=
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: <l2cclaFch5iU1@mid.individual.net>
 by: Fokke Nauta - Mon, 5 Feb 2024 16:50 UTC

On 05/02/2024 16:20, Arno Welzel wrote:
> Fokke Nauta, 2024-02-05 12:11:
>
> [...]
>> I opened the command prompt and saw a long log text, but I didn't manage
>> yet to get it into a text file.
>> I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
>> There is a file called msg.txt but it is empty.
>> Perhaps I should use Powershell?
>
> You should also be able to select the text in the command prompt windows
> and copy it without redirecting the output of ssh to a file.
>

OK, but how do I select the text in the command prompt window?

Fokke

Re: Can't connect SSH server to pc

<l2ci9fFacrvU2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49706&group=comp.mobile.android#49706

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@andyburns.uk (Andy Burns)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 16:56:14 +0000
Lines: 6
Message-ID: <l2ci9fFacrvU2@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<l2cclaFch5iU1@mid.individual.net> <l2chv2Fdg5fU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net SxYeJSnt5NTguafi7rn2rg+L7jCxCsvaI5+cHFOZE/TlY9rfv2
Cancel-Lock: sha1:i2U5u2/57eQwagFqAz3cDHPfi3s= sha256:vtSMNf4bwTyUtfHivHBb//BSNzTpKmh0TaQ9wStwnjQ=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <l2chv2Fdg5fU1@mid.individual.net>
 by: Andy Burns - Mon, 5 Feb 2024 16:56 UTC

Fokke Nauta wrote:

> how do I select the text in the command prompt window?

Drag a rectangular area with the mouse to select, press enter to copy

Re: Can't connect SSH server to pc

<l2cnagFebdkU2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49711&group=comp.mobile.android#49711

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 19:22:08 +0100
Lines: 11
Message-ID: <l2cnagFebdkU2@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<l2cclaFch5iU1@mid.individual.net> <l2chv2Fdg5fU1@mid.individual.net>
<l2ci9fFacrvU2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net oJVXfr4STKYPv06vE7LKRgB+StVzBF+jijxZLZc+Bs/Nv0CYeX
Cancel-Lock: sha1:t6BNnDQpxjjobYmGkWSq9hUweVA= sha256:9pOHlKf1HiY4ZF0/mecBwYq8/zJpTPofBmlqeRfm4lQ=
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: <l2ci9fFacrvU2@mid.individual.net>
 by: Fokke Nauta - Mon, 5 Feb 2024 18:22 UTC

On 05/02/2024 17:56, Andy Burns wrote:
> Fokke Nauta wrote:
>
>> how do I select the text in the command prompt window?
>
> Drag a rectangular area with the mouse to select, press enter to copy
>

Thanks. I'll do this.

Fokke

Re: Can't connect SSH server to pc

<h6p79kx8m7.ln2@Telcontar.valinor>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49713&group=comp.mobile.android#49713

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_li...@es.invalid (Carlos E.R.)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 20:23:29 +0100
Lines: 16
Message-ID: <h6p79kx8m7.ln2@Telcontar.valinor>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net HoykWD/inJqApBraAu4WfwnyIfc2yOESGyvhbSK/zW5HL3OcnA
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:qSuKsmCXFRQhjW5uqSBsL2is8bk= sha256:eJtU5HezS33HjXnrby7nVgPtBLVd0GWm4/Pl9LpvgrM=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <l2bu29F9q8gU2@mid.individual.net>
 by: Carlos E.R. - Mon, 5 Feb 2024 19:23 UTC

On 2024-02-05 12:11, Fokke Nauta wrote:
> On 05/02/2024 11:51, Theo wrote:
>> Fokke Nauta <usenet@solfon.nl> wrote:

> I opened the command prompt and saw a long log text, but I didn't manage
> yet to get it into a text file.
> I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
> There is a file called msg.txt but it is empty.
> Perhaps I should use Powershell?

Do you have a formatted floppy in the drive?

--
Cheers, Carlos.

Re: Can't connect SSH server to pc

<l2cu1kFfij5U1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49714&group=comp.mobile.android#49714

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 21:16:52 +0100
Lines: 19
Message-ID: <l2cu1kFfij5U1@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<h6p79kx8m7.ln2@Telcontar.valinor>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net rtz6c/8g5nFiXYXhjQPTagy8lkA4qf7+mMFtdDNtKT0oM5OCnB
Cancel-Lock: sha1:IOe1KrwAeElJAm+Rtb+IcMCehkg= sha256:jOFqsA4D2SBSWmUctEEeQCwvANpWaoPT2q7o69hMAcQ=
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: <h6p79kx8m7.ln2@Telcontar.valinor>
 by: Fokke Nauta - Mon, 5 Feb 2024 20:16 UTC

On 05/02/2024 20:23, Carlos E.R. wrote:
> On 2024-02-05 12:11, Fokke Nauta wrote:
>> On 05/02/2024 11:51, Theo wrote:
>>> Fokke Nauta <usenet@solfon.nl> wrote:
>
>
>> I opened the command prompt and saw a long log text, but I didn't
>> manage yet to get it into a text file.
>> I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
>> There is a file called msg.txt but it is empty.
>> Perhaps I should use Powershell?
>
> Do you have a formatted floppy in the drive?
>

Floppy? Floppy drive?
We don't have this for many years!

Fokke

Re: Can't connect SSH server to pc

<l2cud8Ffcl7U1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49715&group=comp.mobile.android#49715

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@andyburns.uk (Andy Burns)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 20:23:03 +0000
Lines: 11
Message-ID: <l2cud8Ffcl7U1@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<h6p79kx8m7.ln2@Telcontar.valinor> <l2cu1kFfij5U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net wkqborKJFeirQWqkaaHfowzLa11f+etVA2RpuSALrfYxOCNlr8
Cancel-Lock: sha1:1rvHsIfU/Nrw0Q1D3etTxtBvy+M= sha256:miJOBGskXWrEGz6jSbjUlSj2ukJT8N6zZ/JCj0rfp+Y=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <l2cu1kFfij5U1@mid.individual.net>
 by: Andy Burns - Mon, 5 Feb 2024 20:23 UTC

Fokke Nauta wrote:

> Carlos E.R. wrote:
>
>> Do you have a formatted floppy in the drive?
>
> Floppy? Floppy drive?
> We don't have this for many years!

traditionally A: was a floppy drive ...

Re: Can't connect SSH server to pc

<eku79kxhti.ln2@Telcontar.valinor>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49716&group=comp.mobile.android#49716

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_li...@es.invalid (Carlos E.R.)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Mon, 5 Feb 2024 21:56:14 +0100
Lines: 27
Message-ID: <eku79kxhti.ln2@Telcontar.valinor>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<h6p79kx8m7.ln2@Telcontar.valinor> <l2cu1kFfij5U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 1bzX72oX0zBBKmOqsza6zQ8LD7rYHoX+xfPntss1ofY32tUjBT
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:mr79z9Ag0sxTstq67HLiB2wIvo8= sha256:o/XqSPgnkTVhRpPHeHtbzopEKnUU+6hvnNMuYyXowtQ=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <l2cu1kFfij5U1@mid.individual.net>
 by: Carlos E.R. - Mon, 5 Feb 2024 20:56 UTC

On 2024-02-05 21:16, Fokke Nauta wrote:
> On 05/02/2024 20:23, Carlos E.R. wrote:
>> On 2024-02-05 12:11, Fokke Nauta wrote:
>>> On 05/02/2024 11:51, Theo wrote:
>>>> Fokke Nauta <usenet@solfon.nl> wrote:
>>
>>
>>> I opened the command prompt and saw a long log text, but I didn't
>>> manage yet to get it into a text file.
>>> I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
>>> There is a file called msg.txt but it is empty.
>>> Perhaps I should use Powershell?
>>
>> Do you have a formatted floppy in the drive?
>>
>
> Floppy? Floppy drive?
> We don't have this for many years!

Then why do you tell the shell to dump the text to a floppy? It is
clearly there:

.... > A:\msg.txt

--
Cheers, Carlos.

Re: Can't connect SSH server to pc

<l2e74oFm8faU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49722&group=comp.mobile.android#49722

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Tue, 6 Feb 2024 08:58:16 +0100
Lines: 16
Message-ID: <l2e74oFm8faU1@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<h6p79kx8m7.ln2@Telcontar.valinor> <l2cu1kFfij5U1@mid.individual.net>
<l2cud8Ffcl7U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net fc8e8F0Nmcl6D+UEk5XBYQFT2mMldaAou+FxFYtpFhguLJMocv
Cancel-Lock: sha1:j/Nh+EqeAAqlMOVaiTAec+hkvqc= sha256:IRClboJii/8FiCcOHKPj9M9hO1Dsvv3a3cNuwttiFMg=
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: <l2cud8Ffcl7U1@mid.individual.net>
 by: Fokke Nauta - Tue, 6 Feb 2024 07:58 UTC

On 05/02/2024 21:23, Andy Burns wrote:
> Fokke Nauta wrote:
>
>> Carlos E.R. wrote:
>>
>>> Do you have a formatted floppy in the drive?
>>
>> Floppy? Floppy drive?
>> We don't have this for many years!
>
> traditionally A: was a floppy drive ...
>

Yes, you are right. On my PC A: is a virtual drive.

Fokke

Re: Can't connect SSH server to pc

<l2e773Fm8faU2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49723&group=comp.mobile.android#49723

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Tue, 6 Feb 2024 08:59:31 +0100
Lines: 29
Message-ID: <l2e773Fm8faU2@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<h6p79kx8m7.ln2@Telcontar.valinor> <l2cu1kFfij5U1@mid.individual.net>
<eku79kxhti.ln2@Telcontar.valinor>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net uITTq4w4KbZvGKsVVBbgLgqTX51JtItUSJ7Ug/IDpN8N6YgmXf
Cancel-Lock: sha1:tOgiwek7BXtBPJC05O/tQ7kyNRM= sha256:EsJEh5YT6uoIKdwAodTT55ENzqywa8jFqpLmDh6CUq0=
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: <eku79kxhti.ln2@Telcontar.valinor>
 by: Fokke Nauta - Tue, 6 Feb 2024 07:59 UTC

On 05/02/2024 21:56, Carlos E.R. wrote:
> On 2024-02-05 21:16, Fokke Nauta wrote:
>> On 05/02/2024 20:23, Carlos E.R. wrote:
>>> On 2024-02-05 12:11, Fokke Nauta wrote:
>>>> On 05/02/2024 11:51, Theo wrote:
>>>>> Fokke Nauta <usenet@solfon.nl> wrote:
>>>
>>>
>>>> I opened the command prompt and saw a long log text, but I didn't
>>>> manage yet to get it into a text file.
>>>> I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
>>>> There is a file called msg.txt but it is empty.
>>>> Perhaps I should use Powershell?
>>>
>>> Do you have a formatted floppy in the drive?
>>>
>>
>> Floppy? Floppy drive?
>> We don't have this for many years!
>
> Then why do you tell the shell to dump the text to a floppy? It is
> clearly there:
>
> ... > A:\msg.txt
>

Well, on my pc A: is a virtual drive. I use it for temporary things.

Fokke

Re: Can't connect SSH server to pc

<l2h0vaF6gi9U2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49735&group=comp.mobile.android#49735

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Wed, 7 Feb 2024 10:31:22 +0100
Lines: 254
Message-ID: <l2h0vaF6gi9U2@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<bd679k-qb4p2.ln1@esprimo.zbmc.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net sjy0fLmVOMaj/qGx4+4SlQeMF8VwCpDqgTcYgojyg8IjmsIjQH
Cancel-Lock: sha1:xLWWVXfqnN4mMu9cqZoo+St8UjI= sha256:cEicUan9G7vcXuOKLVEsBOGDzxIQwsPlTcRDaPCjemY=
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: <bd679k-qb4p2.ln1@esprimo.zbmc.eu>
 by: Fokke Nauta - Wed, 7 Feb 2024 09:31 UTC

On 05/02/2024 15:02, Chris Green wrote:
> Fokke Nauta <usenet@solfon.nl> wrote:
>>
>> I opened the command prompt and saw a long log text, but I didn't manage
>> yet to get it into a text file.
>> I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
>> There is a file called msg.txt but it is empty.
>> Perhaps I should use Powershell?
>>
> You probably need something like:-
> ssh -vvv -p 2222 slauf@192.168.1.160 >A:\msg.txt 2>&1
>
> The '2>&1' redirects stderr to stdout (which is already going to msg.txt)
>

I tried this in the command prompt. It asked for the password, which I
entered. And indeed, this worked. Thanks. I will copy the content here.

OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/config error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
debug2: resolve_canonicalize: hostname 192.168.1.160 is address
debug2: ssh_connect_direct
debug1: Connecting to 192.168.1.160 [192.168.1.160] port 2222.
debug1: Connection established.
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_rsa error:2
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_rsa.pub error:2
debug1: identity file C:\\Users\\Fokke Nauta/.ssh/id_rsa type -1
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_rsa-cert error:2
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_rsa-cert.pub
error:2
debug1: identity file C:\\Users\\Fokke Nauta/.ssh/id_rsa-cert type -1
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_dsa error:2
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_dsa.pub error:2
debug1: identity file C:\\Users\\Fokke Nauta/.ssh/id_dsa type -1
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_dsa-cert error:2
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_dsa-cert.pub
error:2
debug1: identity file C:\\Users\\Fokke Nauta/.ssh/id_dsa-cert type -1
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_ecdsa error:2
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_ecdsa.pub error:2
debug1: identity file C:\\Users\\Fokke Nauta/.ssh/id_ecdsa type -1
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_ecdsa-cert error:2
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_ecdsa-cert.pub
error:2
debug1: identity file C:\\Users\\Fokke Nauta/.ssh/id_ecdsa-cert type -1
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_ed25519 error:2
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_ed25519.pub error:2
debug1: identity file C:\\Users\\Fokke Nauta/.ssh/id_ed25519 type -1
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_ed25519-cert
error:2
debug3: Failed to open file:C:/Users/Fokke
Nauta/.ssh/id_ed25519-cert.pub error:2
debug1: identity file C:\\Users\\Fokke Nauta/.ssh/id_ed25519-cert type -1
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_xmss error:2
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_xmss.pub error:2
debug1: identity file C:\\Users\\Fokke Nauta/.ssh/id_xmss type -1
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_xmss-cert error:2
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_xmss-cert.pub
error:2
debug1: identity file C:\\Users\\Fokke Nauta/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
debug1: Remote protocol version 2.0, remote software version SSH Server
- Banana Studio
debug1: no match: SSH Server - Banana Studio
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.1.160:2222 as 'slauf'
debug3: put_host_port: [192.168.1.160]:2222
debug3: hostkeys_foreach: reading file "C:\\Users\\Fokke
Nauta/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file C:\\Users\\Fokke
Nauta/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from [192.168.1.160]:2222
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/known_hosts2 error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
debug3: order_hostkeyalgs: prefer hostkeyalgs:
ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug3: send packet: type 20
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-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,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos:
chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc:
chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos:
umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc:
umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms:
diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1
debug2: host key algorithms: ecdsa-sha2-nistp256
debug2: ciphers ctos:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour128,arcfour256,aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
debug2: ciphers stoc:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour128,arcfour256,aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
debug2: MACs ctos:
hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96
debug2: MACs stoc:
hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96
debug2: compression ctos: none
debug2: compression stoc: none
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: ecdh-sha2-nistp256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256
compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256
compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256
SHA256:JD2yGa1+aF6yPMMZpeFGBkMHM5qLhfBo5mRERuyOOT4
debug3: put_host_port: [192.168.1.160]:2222
debug3: put_host_port: [192.168.1.160]:2222
debug3: hostkeys_foreach: reading file "C:\\Users\\Fokke
Nauta/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file C:\\Users\\Fokke
Nauta/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from [192.168.1.160]:2222
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/known_hosts2 error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
debug3: hostkeys_foreach: reading file "C:\\Users\\Fokke
Nauta/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file C:\\Users\\Fokke
Nauta/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from [192.168.1.160]:2222
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/known_hosts2 error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
debug1: Host '[192.168.1.160]:2222' is known and matches the ECDSA host key.
debug1: Found key in C:\\Users\\Fokke Nauta/.ssh/known_hosts:1
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey in after 4294967296 blocks
debug3: unable to connect to pipe \\\\.\\pipe\\openssh-ssh-agent, error: 2
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or
directory
debug1: Will attempt key: C:\\Users\\Fokke Nauta/.ssh/id_rsa
debug1: Will attempt key: C:\\Users\\Fokke Nauta/.ssh/id_dsa
debug1: Will attempt key: C:\\Users\\Fokke Nauta/.ssh/id_ecdsa
debug1: Will attempt key: C:\\Users\\Fokke Nauta/.ssh/id_ed25519
debug1: Will attempt key: C:\\Users\\Fokke Nauta/.ssh/id_xmss
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue:
password,keyboard-interactive,publickey
debug3: start over, passed a different list
password,keyboard-interactive,publickey
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: C:\\Users\\Fokke Nauta/.ssh/id_rsa
debug3: no such identity: C:\\Users\\Fokke Nauta/.ssh/id_rsa: No such
file or directory
debug1: Trying private key: C:\\Users\\Fokke Nauta/.ssh/id_dsa
debug3: no such identity: C:\\Users\\Fokke Nauta/.ssh/id_dsa: No such
file or directory
debug1: Trying private key: C:\\Users\\Fokke Nauta/.ssh/id_ecdsa
debug3: no such identity: C:\\Users\\Fokke Nauta/.ssh/id_ecdsa: No such
file or directory
debug1: Trying private key: C:\\Users\\Fokke Nauta/.ssh/id_ed25519
debug3: no such identity: C:\\Users\\Fokke Nauta/.ssh/id_ed25519: No
such file or directory
debug1: Trying private key: C:\\Users\\Fokke Nauta/.ssh/id_xmss
debug3: no such identity: C:\\Users\\Fokke Nauta/.ssh/id_xmss: No such
file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug3: send packet: type 50
debug2: we sent a keyboard-interactive packet, wait for reply
debug3: receive packet: type 60
debug2: input_userauth_info_req
Password authentication
debug2: input_userauth_info_req: num_prompts 1
debug3: failed to open file:C:/dev/tty error:3
debug1: read_passphrase: can't open /dev/tty: No such file or directory
debug3: send packet: type 61
debug3: receive packet: type 52
debug1: Authentication succeeded (keyboard-interactive).
Authenticated to 192.168.1.160 ([192.168.1.160]:2222).
debug2: fd 5 setting O_NONBLOCK
debug2: fd 6 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Entering interactive session.
debug1: pledge: network
debug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the
VTSequence from console
debug3: This windows OS supports conpty
debug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console
supports the ansi parsing
debug3: Successfully set console output code page from:65001 to 65001
debug3: Successfully set console input code page from:850 to 65001
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 3 setting TCP_NODELAY
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug3: send packet: type 98
debug2: channel 0: request shell confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 2097152 rmax 32768
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
:/ $


Click here to read the complete article
Re: Can't connect SSH server to pc

<l2h14jF6gi9U3@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49737&group=comp.mobile.android#49737

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Wed, 7 Feb 2024 10:34:11 +0100
Lines: 29
Message-ID: <l2h14jF6gi9U3@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<l2cclaFch5iU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net aA6zJQ0BJ966Vmic5+AXuATuuISkEtdAyp8xLUHNsBQN/A6DE1
Cancel-Lock: sha1:zcVKKX9M3AsNu+bJjXpmnvG9ck4= sha256:plSfl5GbqFt0isbeleV3VLLDxfh+b/HoV2XrD1YGeOE=
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: <l2cclaFch5iU1@mid.individual.net>
 by: Fokke Nauta - Wed, 7 Feb 2024 09:34 UTC

On 05/02/2024 16:20, Arno Welzel wrote:
> Fokke Nauta, 2024-02-05 12:11:
>
> [...]
>> I opened the command prompt and saw a long log text, but I didn't manage
>> yet to get it into a text file.
>> I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
>> There is a file called msg.txt but it is empty.
>> Perhaps I should use Powershell?
>
> You should also be able to select the text in the command prompt windows
> and copy it without redirecting the output of ssh to a file.
>

Thanks. That worked! The result:

[C:\Program Files\JPSoft\TCCLE14x64] ssh -vvv -p 2222 slauf@192.168.1.160
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/config error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
debug2: resolve_canonicalize: hostname 192.168.1.160 is address
debug2: ssh_connect_direct
debug1: Connecting to 192.168.1.160 [192.168.1.160] port 2222.
debug3: finish_connect - ERROR: async io completed with error: 10060,
io:000002AAF3CBF930
debug1: connect to address 192.168.1.160 port 2222: Connection timed out
ssh: connect to host 192.168.1.160 port 2222: Connection timed out

Fokke

Re: Can't connect SSH server to pc

<l2h1sfF5q55U2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49739&group=comp.mobile.android#49739

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@andyburns.uk (Andy Burns)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Wed, 7 Feb 2024 09:46:55 +0000
Lines: 26
Message-ID: <l2h1sfF5q55U2@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<bd679k-qb4p2.ln1@esprimo.zbmc.eu> <l2h0vaF6gi9U2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net agXdTETyGkM0VqO8uN8OGQw8n5YOTdbPs64h0pgD04s+xTo7Xu
Cancel-Lock: sha1:uNTGaDGS8NnwosnaNkBIUM7uDMw= sha256:I4IFKEuP1hR3xJQo7mSQ/PurPb2neRTU/PFk5uci9l4=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <l2h0vaF6gi9U2@mid.individual.net>
 by: Andy Burns - Wed, 7 Feb 2024 09:46 UTC

Fokke Nauta wrote:

> OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
> debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/config error:2
> debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
> debug2: resolve_canonicalize: hostname 192.168.1.160 is address
> debug2: ssh_connect_direct
> debug1: Connecting to 192.168.1.160 [192.168.1.160] port 2222.
> debug1: Connection established.
> debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_rsa error:2
[snip]
> debug2: PTY allocation request accepted on channel 0
> debug3: receive packet: type 99
> debug2: channel_input_status_confirm: type 99 id 0
> debug2: shell request accepted on channel 0
> :/ $
>
> There are errors, but I don't know how this works.

The errors I see are just from it looking for optional files which don't
exist in your case, but it looks like it actually succeeded and you
arrive at a $ prompt

What happens when you type shell commands after that?

Re: Can't connect SSH server to pc

<l2h202F5q55U3@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49740&group=comp.mobile.android#49740

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@andyburns.uk (Andy Burns)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Wed, 7 Feb 2024 09:48:49 +0000
Lines: 23
Message-ID: <l2h202F5q55U3@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<l2cclaFch5iU1@mid.individual.net> <l2h14jF6gi9U3@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net Kneq749A09hmG6TK+gOQRwpzWbAKEkhDq+a/tgW5PPFUPFlvfN
Cancel-Lock: sha1:44cf7ZRmuSHbOLW5xeN256WwLvg= sha256:6VeKenv3eD01iJyfh62S9CKkasFGnDbdch8PjWtieyE=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <l2h14jF6gi9U3@mid.individual.net>
 by: Andy Burns - Wed, 7 Feb 2024 09:48 UTC

Fokke Nauta wrote:

> [C:\Program Files\JPSoft\TCCLE14x64] ssh -vvv -p 2222 slauf@192.168.1.160
> OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
> debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/config error:2
> debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
> debug2: resolve_canonicalize: hostname 192.168.1.160 is address
> debug2: ssh_connect_direct
> debug1: Connecting to 192.168.1.160 [192.168.1.160] port 2222.
> debug3: finish_connect - ERROR: async io completed with error: 10060,
> io:000002AAF3CBF930
> debug1: connect to address 192.168.1.160 port 2222: Connection timed out
> ssh: connect to host 192.168.1.160 port 2222: Connection timed out

Is this to the "other" phone?

can you open s terminal window in that phone itself (i.e. not across the
network)

Is one phone rooted and the other is not?

Re: Can't connect SSH server to pc

<8Nn*htnCz@news.chiark.greenend.org.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49741&group=comp.mobile.android#49741

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsfeed.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.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: 07 Feb 2024 09:53:32 +0000 (GMT)
Organization: University of Cambridge, England
Message-ID: <8Nn*htnCz@news.chiark.greenend.org.uk>
References: <l29g6nFr8ldU1@mid.individual.net> <8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net> <bd679k-qb4p2.ln1@esprimo.zbmc.eu> <l2h0vaF6gi9U2@mid.individual.net>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="32682"; 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, 7 Feb 2024 09:53 UTC

Fokke Nauta <usenet@solfon.nl> wrote:
> On 05/02/2024 15:02, Chris Green wrote:
> > Fokke Nauta <usenet@solfon.nl> wrote:
> >>
> >> I opened the command prompt and saw a long log text, but I didn't manage
> >> yet to get it into a text file.
> >> I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
> >> There is a file called msg.txt but it is empty.
> >> Perhaps I should use Powershell?
> >>
> > You probably need something like:-
> > ssh -vvv -p 2222 slauf@192.168.1.160 >A:\msg.txt 2>&1
> >
> > The '2>&1' redirects stderr to stdout (which is already going to msg.txt)
> >
>
> I tried this in the command prompt. It asked for the password, which I
> entered. And indeed, this worked. Thanks. I will copy the content here.
>
> OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
> debug1: Connecting to 192.168.1.160 [192.168.1.160] port 2222.
> debug1: Connection established.
> debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
> debug1: Remote protocol version 2.0, remote software version SSH Server
> - Banana Studio

> debug3: order_hostkeyalgs: prefer hostkeyalgs:
> ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
> 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-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,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
> debug2: ciphers ctos:
> chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
> debug2: ciphers stoc:
> chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
> debug2: MACs ctos:
> umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
> debug2: MACs stoc:
> umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
> debug2: compression ctos: none,zlib@openssh.com,zlib
> debug2: compression stoc: none,zlib@openssh.com,zlib

> debug2: peer server KEXINIT proposal
> debug2: KEX algorithms:
> diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1
> debug2: host key algorithms: ecdsa-sha2-nistp256
> debug2: ciphers ctos:
> aes128-ctr,aes192-ctr,aes256-ctr,arcfour128,arcfour256,aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
> debug2: ciphers stoc:
> aes128-ctr,aes192-ctr,aes256-ctr,arcfour128,arcfour256,aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
> debug2: MACs ctos:
> hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96
> debug2: MACs stoc:
> hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96

> debug2: reserved 0
> debug1: kex: algorithm: ecdh-sha2-nistp256
> debug1: kex: host key algorithm: ecdsa-sha2-nistp256
> debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256
> compression: none
> debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256
> compression: none
> debug1: Authentications that can continue:
> password,keyboard-interactive,publickey
> debug3: start over, passed a different list
> password,keyboard-interactive,publickey
> debug3: preferred publickey,keyboard-interactive,password
> debug3: authmethod_lookup publickey
> debug3: remaining preferred: keyboard-interactive,password
> Password authentication
> debug1: Authentication succeeded (keyboard-interactive).
> Authenticated to 192.168.1.160 ([192.168.1.160]:2222).
> :/ $
>
>
> There are errors, but I don't know how this works.

SSH is negotiating various options - you would never have every possibility
set up but it looks to find something the client and server can agree on.

I trimmed the list above which shows you successfully got in. As to why
CuteFTP doesn't work we don't know in the absence of a similar log, but a
stab in the dark might be the limited range of KEX (key exchange), host key
algorithms, ciphers and HMACs. In the second block the client says which
algorithms it supports, then the third block the server says what it can do,
and in the fourth block they settle on a subset that both can do. In this
case the list from the server looks a bit limited, and I wonder if CuteFTP
also supports a limited and non-overlapping list. If that happens they
couldn't agree on a subset and the connection would fail.

You could try and see if the CuteFTP config has any options to enable
ciphers/KEX/host key algs/HMACs and tick them all. Failing that, maybe
there's an option in CuteFTP to give a more detailed log of what it's trying
to do and possible to spot what's going wrong.

Theo

Re: Can't connect SSH server to pc

<l2hbheF8cqbU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49742&group=comp.mobile.android#49742

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Wed, 7 Feb 2024 13:31:42 +0100
Lines: 31
Message-ID: <l2hbheF8cqbU1@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<bd679k-qb4p2.ln1@esprimo.zbmc.eu> <l2h0vaF6gi9U2@mid.individual.net>
<l2h1sfF5q55U2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net KtUGuFLMIhFDnCWlrWBhfwUtnJRh+peZ+8VknIYTxOfZS70m4y
Cancel-Lock: sha1:M5/XAEeY5SM8IjSXmaF+TL4IkKU= sha256:SZu2hOqEd8ge9wLH5f0kc2BB/sqSANW+qIUCV9xP2M4=
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: <l2h1sfF5q55U2@mid.individual.net>
 by: Fokke Nauta - Wed, 7 Feb 2024 12:31 UTC

On 07/02/2024 10:46, Andy Burns wrote:
> Fokke Nauta wrote:
>
>> OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
>> debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/config error:2
>> debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
>> debug2: resolve_canonicalize: hostname 192.168.1.160 is address
>> debug2: ssh_connect_direct
>> debug1: Connecting to 192.168.1.160 [192.168.1.160] port 2222.
>> debug1: Connection established.
>> debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/id_rsa error:2
> [snip]
>> debug2: PTY allocation request accepted on channel 0
>> debug3: receive packet: type 99
>> debug2: channel_input_status_confirm: type 99 id 0
>> debug2: shell request accepted on channel 0
>> :/ $
>>
>> There are errors, but I don't know how this works.
>
> The errors I see are just from it looking for optional files which don't
> exist in your case, but it looks like it actually succeeded and you
> arrive at a $ prompt
>
> What happens when you type shell commands after that?
>
>

Which commands should I use? In the command prompt?

Fokke

Re: Can't connect SSH server to pc

<l2hbloF8cqbU2@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49743&group=comp.mobile.android#49743

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Wed, 7 Feb 2024 13:34:01 +0100
Lines: 104
Message-ID: <l2hbloF8cqbU2@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<bd679k-qb4p2.ln1@esprimo.zbmc.eu> <l2h0vaF6gi9U2@mid.individual.net>
<8Nn*htnCz@news.chiark.greenend.org.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 4LX0Gq7jWuc4RBhFzxiusQSIxH4OUieXy0EyqN1g2G+9DKwX+P
Cancel-Lock: sha1:+XkK3SvgNXSSZGFfpOMDsa8LY3A= sha256:HvrwOwghNpmWZ128dFCPrqxtaF3SJLg8SUEoTnLuOzU=
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: <8Nn*htnCz@news.chiark.greenend.org.uk>
 by: Fokke Nauta - Wed, 7 Feb 2024 12:34 UTC

On 07/02/2024 10:53, Theo wrote:
> Fokke Nauta <usenet@solfon.nl> wrote:
>> On 05/02/2024 15:02, Chris Green wrote:
>>> Fokke Nauta <usenet@solfon.nl> wrote:
>>>>
>>>> I opened the command prompt and saw a long log text, but I didn't manage
>>>> yet to get it into a text file.
>>>> I used ssh -vvv -p 2222 slauf@192.168.1.160 > A:\msg.txt
>>>> There is a file called msg.txt but it is empty.
>>>> Perhaps I should use Powershell?
>>>>
>>> You probably need something like:-
>>> ssh -vvv -p 2222 slauf@192.168.1.160 >A:\msg.txt 2>&1
>>>
>>> The '2>&1' redirects stderr to stdout (which is already going to msg.txt)
>>>
>>
>> I tried this in the command prompt. It asked for the password, which I
>> entered. And indeed, this worked. Thanks. I will copy the content here.
>>
>> OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
>> debug1: Connecting to 192.168.1.160 [192.168.1.160] port 2222.
>> debug1: Connection established.
>> debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
>> debug1: Remote protocol version 2.0, remote software version SSH Server
>> - Banana Studio
>
>> debug3: order_hostkeyalgs: prefer hostkeyalgs:
>> ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
>> 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-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,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
>> debug2: ciphers ctos:
>> chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
>> debug2: ciphers stoc:
>> chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
>> debug2: MACs ctos:
>> umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
>> debug2: MACs stoc:
>> umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
>> debug2: compression ctos: none,zlib@openssh.com,zlib
>> debug2: compression stoc: none,zlib@openssh.com,zlib
>
>> debug2: peer server KEXINIT proposal
>> debug2: KEX algorithms:
>> diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1
>> debug2: host key algorithms: ecdsa-sha2-nistp256
>> debug2: ciphers ctos:
>> aes128-ctr,aes192-ctr,aes256-ctr,arcfour128,arcfour256,aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
>> debug2: ciphers stoc:
>> aes128-ctr,aes192-ctr,aes256-ctr,arcfour128,arcfour256,aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
>> debug2: MACs ctos:
>> hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96
>> debug2: MACs stoc:
>> hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96
>
>> debug2: reserved 0
>> debug1: kex: algorithm: ecdh-sha2-nistp256
>> debug1: kex: host key algorithm: ecdsa-sha2-nistp256
>> debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256
>> compression: none
>> debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256
>> compression: none
>> debug1: Authentications that can continue:
>> password,keyboard-interactive,publickey
>> debug3: start over, passed a different list
>> password,keyboard-interactive,publickey
>> debug3: preferred publickey,keyboard-interactive,password
>> debug3: authmethod_lookup publickey
>> debug3: remaining preferred: keyboard-interactive,password
>> Password authentication
>> debug1: Authentication succeeded (keyboard-interactive).
>> Authenticated to 192.168.1.160 ([192.168.1.160]:2222).
>> :/ $
>>
>>
>> There are errors, but I don't know how this works.
>
> SSH is negotiating various options - you would never have every possibility
> set up but it looks to find something the client and server can agree on.
>
> I trimmed the list above which shows you successfully got in. As to why
> CuteFTP doesn't work we don't know in the absence of a similar log, but a
> stab in the dark might be the limited range of KEX (key exchange), host key
> algorithms, ciphers and HMACs. In the second block the client says which
> algorithms it supports, then the third block the server says what it can do,
> and in the fourth block they settle on a subset that both can do. In this
> case the list from the server looks a bit limited, and I wonder if CuteFTP
> also supports a limited and non-overlapping list. If that happens they
> couldn't agree on a subset and the connection would fail.
>
> You could try and see if the CuteFTP config has any options to enable
> ciphers/KEX/host key algs/HMACs and tick them all. Failing that, maybe
> there's an option in CuteFTP to give a more detailed log of what it's trying
> to do and possible to spot what's going wrong.
>
> Theo

Thanks.
I'm happy to read that I got in.
I will have a look at CuteFTP.

Fokke

Re: Can't connect SSH server to pc

<l2hbvdF8cqbU3@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49744&group=comp.mobile.android#49744

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@solfon.nl (Fokke Nauta)
Newsgroups: comp.mobile.android
Subject: Re: Can't connect SSH server to pc
Date: Wed, 7 Feb 2024 13:39:10 +0100
Lines: 27
Message-ID: <l2hbvdF8cqbU3@mid.individual.net>
References: <l29g6nFr8ldU1@mid.individual.net>
<8Nn*Z9cCz@news.chiark.greenend.org.uk> <l2bu29F9q8gU2@mid.individual.net>
<l2cclaFch5iU1@mid.individual.net> <l2h14jF6gi9U3@mid.individual.net>
<l2h202F5q55U3@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net YNz20BHbBnUvQQWRaMYtYQBhgxA7gBbO6PaoAzRkZBcq1jcWmw
Cancel-Lock: sha1:awO8ISG3TKCjR9KAdCLeYzlaJWc= sha256:AKdD3YN479qhmUg4CRkKrldOwlUkAVtnbUACLO8HptE=
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: <l2h202F5q55U3@mid.individual.net>
 by: Fokke Nauta - Wed, 7 Feb 2024 12:39 UTC

On 07/02/2024 10:48, Andy Burns wrote:
> Fokke Nauta wrote:
>
>> [C:\Program Files\JPSoft\TCCLE14x64] ssh -vvv -p 2222 slauf@192.168.1.160
>> OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
>> debug3: Failed to open file:C:/Users/Fokke Nauta/.ssh/config error:2
>> debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
>> debug2: resolve_canonicalize: hostname 192.168.1.160 is address
>> debug2: ssh_connect_direct
>> debug1: Connecting to 192.168.1.160 [192.168.1.160] port 2222.
>> debug3: finish_connect - ERROR: async io completed with error: 10060,
>> io:000002AAF3CBF930
>> debug1: connect to address 192.168.1.160 port 2222: Connection timed out
>> ssh: connect to host 192.168.1.160 port 2222: Connection timed out
>
> Is this to the "other" phone?
>
> can you open s terminal window in that phone itself (i.e. not across the
> network)
>
> Is one phone rooted and the other is not?
>
>
>
No, this is the same phone, the S10. None of the phones are rooted.

Fokke

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor