WIN10 在更新中添加了內(nèi)置的 OpenSSH 支持息罗,如果沒有特殊要求的話便可以拋棄 PuTTY 焦影、KiTTY 或 SSHSecureShellClient 等工具冈欢,使用內(nèi)置 OpenSSH 客戶端進(jìn)行 SSH 鏈接啦鸣,也省的考慮壓縮算法不一致的問題了。
安裝 OpenSSH 客戶端
1谍婉、在開始圖標(biāo)右鍵,選擇應(yīng)用和功能镀钓,彈出如下設(shè)置界面穗熬,點(diǎn)擊管理可選功能
管理可選功能
2、選擇管理可用功能丁溅,彈出管理可選功能唤蔗,點(diǎn)擊添加功能
添加功能
3、在彈出的添加功能中選擇 OpenSSH 客戶端
添加 OpenSSH 客戶端
4、安裝成功后返回即可看到
安裝成功
使用 OpenSSH 客戶端
在開始菜單右鍵妓柜,打開 Windows PowerShell 或 Win + X 選擇 Windows PowerShell箱季,使用方法與 Xnix 一致
Windows PowerShell
附:
感興趣的同學(xué)也可以使用命令安裝
Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
# This should return the following output:
Name : OpenSSH.Client~~~~0.0.1.0
State : NotPresent
Name : OpenSSH.Server~~~~0.0.1.0
State : NotPresent
# Install the OpenSSH Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
# Install the OpenSSH Server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
# Both of these should return the following output:
Path :
Online : True
RestartNeeded : False
Reference:
https://www.howtogeek.com/336775/how-to-enable-and-use-windows-10s-built-in-ssh-commands/
https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
https://www.liquidweb.com/kb/using-ssh-client-windows-10/