Dịch vụ sửa máy tính pc laptop máy in - Nạp mực máy in Trường Tín Tphcm
Dịch vụ sửa máy tính pc laptop máy in - Nạp mực máy in Trường Tín Tphcm

Cấu hình SSH Server và SSH Client trên Windows Server 2019

--
Web Tin Học Trường Tín có bài: Cấu hình SSH Server và SSH Client trên Windows Server 2019 Trong phần tiếp theo của chủ đề Windows Server 2019, mời bạn đọc cùng tìm hiểu cách cấu hình SSH Server và SSH Client nhé!

Cấu hình SSH Server trên Windows Server 2019

1. Chạy Powershell với quyền admin và cấu hình SSH server như sau:

  PowerShell Copyright (C) Microsoft Corporation. All rights reserved. # get available name of OpenSSH PS C:UsersAdministrator> Get-WindowsCapability -Online | ? Name -like 'OpenSSH*' Name : OpenSSH.Client~~~~0.0.1.0 State : Installed Name : OpenSSH.Server~~~~0.0.1.0 State : NotPresent # Install OpenSSH Server PS C:UsersAdministrator> Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 Path : Online : True RestartNeeded : False # start sshd service PS C:UsersAdministrator> Start-Service -Name "sshd" # set [Automatic] for Startup PS C:UsersAdministrator> Set-Service -Name "sshd" -StartupType Automatic # verify PS C:UsersAdministrator> Get-Service -Name "sshd" | Select-Object * Name : sshd RequiredServices : {} CanPauseAndContinue : False CanShutdown : False CanStop : True DisplayName : OpenSSH SSH Server DependentServices : {} MachineName :. ServiceName : sshd ServicesDependedOn : {} ServiceHandle : SafeServiceHandle Status : Running ServiceType : Win32OwnProcess StartType : Automatic Site : Container : # if Windows Firewall is running, allow 22/TCP PS C:UsersAdministrator> New-NetFirewallRule -Name "SSH" ` -DisplayName "SSH" ` -Description "Allow SSH" ` -Profile Any ` -Direction Inbound ` -Action Allow ` -Protocol TCP ` -Program Any ` -LocalAddress Any ` -RemoteAddress Any ` -LocalPort 22 ` -RemotePort Any Name : SSH DisplayName : SSH Description : Allow SSH DisplayGroup : Group : Enabled : True Profile : Any Platform : {} Direction : Inbound Action : Allow EdgeTraversalPolicy : Block LooseSourceMapping : False LocalOnlyMapping : False Owner : PrimaryStatus : OK Status : The rule was parsed successfully from the store. (65536) EnforcementStatus : NotApplicable PolicyStoreSource : PersistentStore PolicyStoreSourceType : Local  

2. Mở Start > Settings .

Cấu hình SSH Server và SSH Client trên Windows Server 2019
Mở Start > Settings

3. Kích vào Apps .

Cấu hình SSH Server và SSH Client trên Windows Server 2019
Kích vào Apps

4. Nhấp vào Manage optional features .

Cấu hình SSH Server và SSH Client trên Windows Server 2019
Nhấp vào Manage optional features

5. Nhấp vào Add a feature .

Cấu hình SSH Server và SSH Client trên Windows Server 2019
Nhấp vào Add a feature

6. Chọn OpenSSH Server và nhấp vào nút Install.

Cấu hình SSH Server và SSH Client trên Windows Server 2019
Chọn OpenSSH Server

7. Sau khi hoàn chỉnh cài đặt, OpenSSH Server sẽ được thêm nữa các service. Khởi động nó và thay đổi Startup thành Automatic .

Cấu hình SSH Server và SSH Client trên Windows Server 2019
OpenSSH Server sẽ có thêm vô các service

8. Nếu Windows Firewall đang chạy, hãy cho phép cổng service SSH (22/TCP).

Cấu hình SSH Server và SSH Client trên Windows Server 2019
Cho phép cổng service SSH (22/TCP)
  • Cách cấu hình NTP Server và NTP Client trong Windows Server 2019

Cấu hình SSH Client trên Windows Server 2019

1. Trên Windows Server 2019, OpenSSH Client được cài đặt theo mặc định. Nhưng nếu nó chưa được cài đặt, hãy cài đặt từ Start > Settings > Apps > > Manage optional features > Add a feature > OpenSSH Client .

Cấu hình SSH Server và SSH Client trên Windows Server 2019
Cài đặt OpenSSH Client

2. Có thể sử dụng lệnh client ssh như sau trên PowerShell hoặc Command Prompt:

  PS > ssh (username)@(Hostname hoặc địa chỉ IP của SSH server)  
Cấu hình SSH Server và SSH Client trên Windows Server 2019
Sử dụng lệnh client ssh

3. Bạn cũng cũng có thể có thể đăng nhập vào Linux Host mà SSH server đang chạy.

Cấu hình SSH Server và SSH Client trên Windows Server 2019
Đăng nhập vào Linux Host mà SSH server đang chạy

4. Bạn cũng có thể sử dụng lệnh scp và lệnh sftp để truyền file SSH.

Cấu hình SSH Server và SSH Client trên Windows Server 2019
Cấu hình SSH Server và SSH Client trên Windows Server 2019

  • Cách thiết lập ban đầu Windows Server 2019
  • Tải Windows Server 2019 và khám phá những tính năng mới
  • Cách cài đặt VPN trên Windows Server 2019
  • 10 cải tiến bảo mật hàng đầu trong Windows Server 2019
  • Triển khai những việc này trước tiên khi chuyển dữ liệu lên Windows Server 2019

windows server 2019,SSH Server,ssh client,cấu hình SSH Server,cấu hình SSH client

Nội dung Cấu hình SSH Server và SSH Client trên Windows Server 2019 được tổng hợp sưu tầm biên tập bởi: Tin Học Trường Tín. Mọi ý kiến vui lòng gửi Liên Hệ cho truongtin.top để điều chỉnh. truongtin.top tks.

Bài Viết Liên Quan


5/5 - (1 bình chọn)

Bài Viết Khác

--