參考文獻:https://winscp.net/eng/docs/guide_windows_openssh_serverphp
方法:WinSCP+ OpenSSHgit
(1)在須要遠程訪問的windows電腦上安裝OpenSSH的server:具體步驟以下:github
1. 訪問https://github.com/PowerShell/Win32-OpenSSH/releases,下載PC對應的二進制包,如OpenSSH-Win64.zip,並解壓到本地;shell
2. 在C:\Program Files文件夾中新建OpenSSH文件夾,並將(1)中解壓的全部文件copy到OpenSSH文件夾中,此處都須要Administrator的權限;windows
3. 管理員權限運行command,並切換到C:\ProgramFiles\OpenSSH這個文件夾,運行如下命令:powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1ssh
4. 設置防火牆:Control Panel > System and Security > Windows Firewall >Advanced Settings > Inbound Rules ,右鍵新建rule,選擇port,tcp,固定端口22,Name寫sshd,description寫OpenSSH Server (sshd),完成。tcp
5. 開啓防火牆:Control Panel > System and Security > Administrative Tools,打開Services應用,找到剛剛的sshd,右鍵屬性,startup type選automatic自啓動,最後點擊Start Service。ide
(2)在本地的PC上安裝WinSCP,https://winscp.net/eng/download.phpui
(3)開啓WinSCP,Hostname寫IP,port寫22,username和password本身知道的。
---------------------
做者:qccz123456
來源:CSDN
原文:https://blog.csdn.net/qccz123456/article/details/80345999
版權聲明:本文爲博主原創文章,轉載請附上博文連接!spa