[Megoldva] ssh szerver telepítése windowsra

Szépen kérem a közösséget ossza meg velem, hogyan lehet windows 10, vagy 11 alatt ssh szervert működésre bírni. Több napja sikertelenül próbálkozom ezzel az egyszerű dologgal és eddig csak kudarcom volt. Követtem többféle leírást is. Alapvetően sikerült telepítenem a szervert, habár hogy hogyan lehet az sshd folyamatot automata indulásra bírni arra nem sikerült rájönnöm. De nem is baj, Elindítottam kézzel powershell abalakból admin jogokkal. Csatlakoztam a felhasználónévvel az ip címhez. A nevet a $env:USERNAME parancs segítségével kértem le. 

Aztán a "client_loop: send disconnect: Broken pipe" üzenet fogadott linux alatt. Windowsos klienssel való csatlakozáskor is hasonló az üzenet. Ott ezt látom: ""client_loop: send disconnect: Connection reset"

Az lenne a legjobb, ha valami next-next finish megoldás lenne, vagy egy tuti működő jó megoldás leírása. Sajnos nem értek nagyon a windows-hoz.

Köszönöm!

Hozzászólások

tippem: tűzfalbeállítások Win alatt?

Szerkesztve: 2024. 02. 12., h – 12:13

barataid a telnet es az ssh -v(vv) kapcsoloi. es ahogy a kollega irja is, tuzfal? :)
https://learn.microsoft.com/en-us/windows-server/administration/openssh…

"

  • Open the Services desktop app. (Select Start, type services.msc in the search box, and then select the Service app or press ENTER.)

  • In the details pane, double-click OpenSSH SSH Server.

  • On the General tab, from the Startup type drop-down menu, select Automatic and then select Ok.

  • To start the service, select Start."

"Note

Installing OpenSSH Server will create and enable a firewall rule named OpenSSH-Server-In-TCP. This allows inbound SSH traffic on port 22. If this rule is not enabled and this port is not open, connections will be refused or reset."

vagy:
"

# Start the sshd service
Start-Service sshd

# OPTIONAL but recommended:
Set-Service -Name sshd -StartupType 'Automatic'

# Confirm the Firewall rule is configured. It should be created automatically by setup. Run the following to verify
if (!(Get-NetFirewallRule -Name "OpenSSH-Server-In-TCP" -ErrorAction SilentlyContinue | Select-Object Name, Enabled)) {
    Write-Output "Firewall Rule 'OpenSSH-Server-In-TCP' does not exist, creating it..."
    New-NetFirewallRule -Name 'OpenSSH-Server-In-TCP' -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
} else {
    Write-Output "Firewall rule 'OpenSSH-Server-In-TCP' has been created and exists."
}"


plusz ha mar fut: https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration

Services -> OpenSSH SSH Server  -> Start? (nekem az összes windows insider update mindig átrakja Manualra az Autostart helyett, az nagyon idegesítő)

~ubuntu, raspbian, os x~

Köszönöm mindenkinek a segítő hozzászólásokat. Közös segítségetekkel megoldottam a problémát.

Még egyszer köszönöm mindenkinek!

“The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use them.”

― Philip K. Dick