22 portu SSH portu demek. 443 portu da HTTPS, yani acik olmasi gayet normal.
22 portunu kullanabilmen icin sisteminde openssh sunucusu acik olmali. Bunu Windows'ta yapmak icin;
Kod:
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Veya.
Eki Görüntüle 65025
Daha sonra ise PowerShell uzerinden.
komutu ile etkinlestirmen ve guvenlik duvarinda 22 portunu acmalisin.
Otomatik etkinlestirme ve firewall kontrolu icin asagidaki komutu gir:
Kod:
Set-Service -Name sshd -StartupType 'Automatic'.
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."
}
Learn how to install and connect to remote machines using the OpenSSH Client and Server for Windows.
learn.microsoft.com