public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* SSH connection from Linux to Windows by CYGSSHD: port 22
@ 2022-03-30 11:50 Greco Giovanni
  2022-03-31 13:18 ` Andrey Repin
  0 siblings, 1 reply; 4+ messages in thread
From: Greco Giovanni @ 2022-03-30 11:50 UTC (permalink / raw)
  To: cygwin

Hello,
must port 22 on Windows server be enabled in a bidirectional way to establish a connection with RSA key exchange?
I have a Linux server on a vlan and a Windows server on another vlan, those vlans are connected thru a firewall, where port 22 is enabled from Linux server to Windows server unidirectionally.
Connection with user and password works, but not with RSA key exchange: is the problem located on port 22 unidirectional enabling?
Thanks in advance.
Giovanni Greco - BlueIT S.p.A.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SSH connection from Linux to Windows by CYGSSHD: port 22
  2022-03-30 11:50 SSH connection from Linux to Windows by CYGSSHD: port 22 Greco Giovanni
@ 2022-03-31 13:18 ` Andrey Repin
  2022-03-31 15:24   ` Chris Roehrig
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey Repin @ 2022-03-31 13:18 UTC (permalink / raw)
  To: Greco Giovanni, cygwin

Greetings, Greco Giovanni!

> must port 22 on Windows server be enabled in a bidirectional way to
> establish a connection with RSA key exchange?
> I have a Linux server on a vlan and a Windows server on another vlan, those
> vlans are connected thru a firewall, where port 22 is enabled from Linux
> server to Windows server unidirectionally.
> Connection with user and password works, but not with RSA key exchange: is
> the problem located on port 22 unidirectional enabling?

No, it is most likely because you are connecting to Microsoft provided
OpenSSH.
`netstat -aon` and `ps ax` will tell you more.


-- 
With best regards,
Andrey Repin
Thursday, March 31, 2022 16:16:07

Sorry for my terrible english...


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SSH connection from Linux to Windows by CYGSSHD: port 22
  2022-03-31 13:18 ` Andrey Repin
@ 2022-03-31 15:24   ` Chris Roehrig
  2022-03-31 20:04     ` Andrey Repin
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Roehrig @ 2022-03-31 15:24 UTC (permalink / raw)
  To: cygwin

I recently had to add the following lines to my Cygwin /etc/sshd_config 
to re-enable RSA in order for my older machines to connect:

HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa


-- Chris

On 2022-03-31 06:18, Andrey Repin wrote:
> Greetings, Greco Giovanni!
>
>> must port 22 on Windows server be enabled in a bidirectional way to
>> establish a connection with RSA key exchange?
>> I have a Linux server on a vlan and a Windows server on another vlan, those
>> vlans are connected thru a firewall, where port 22 is enabled from Linux
>> server to Windows server unidirectionally.
>> Connection with user and password works, but not with RSA key exchange: is
>> the problem located on port 22 unidirectional enabling?
> No, it is most likely because you are connecting to Microsoft provided
> OpenSSH.
> `netstat -aon` and `ps ax` will tell you more.
>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SSH connection from Linux to Windows by CYGSSHD: port 22
  2022-03-31 15:24   ` Chris Roehrig
@ 2022-03-31 20:04     ` Andrey Repin
  0 siblings, 0 replies; 4+ messages in thread
From: Andrey Repin @ 2022-03-31 20:04 UTC (permalink / raw)
  To: Chris Roehrig, cygwin

Greetings, Chris Roehrig!

> I recently had to add the following lines to my Cygwin /etc/sshd_config to
> re-enable RSA in order for my older machines to connect:

> HostKeyAlgorithms +ssh-rsa
> PubkeyAcceptedAlgorithms +ssh-rsa

I'm not using RSA for, like, 5 years now.
Too long to manage.

> -- Chris

> On 2022-03-31 06:18, Andrey Repin wrote:
>> Greetings, Greco Giovanni!
>>
>>> must port 22 on Windows server be enabled in a bidirectional way to
>>> establish a connection with RSA key exchange?
>>> I have a Linux server on a vlan and a Windows server on another vlan, those
>>> vlans are connected thru a firewall, where port 22 is enabled from Linux
>>> server to Windows server unidirectionally.
>>> Connection with user and password works, but not with RSA key exchange: is
>>> the problem located on port 22 unidirectional enabling?
>> No, it is most likely because you are connecting to Microsoft provided
>> OpenSSH.
>> `netstat -aon` and `ps ax` will tell you more.
>>
>>




-- 
With best regards,
Andrey Repin
Thursday, March 31, 2022 23:03:27

Sorry for my terrible english...


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-31 20:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-30 11:50 SSH connection from Linux to Windows by CYGSSHD: port 22 Greco Giovanni
2022-03-31 13:18 ` Andrey Repin
2022-03-31 15:24   ` Chris Roehrig
2022-03-31 20:04     ` Andrey Repin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).