WinSCP之Windows与Windows之间传输文件

WinSCP之Windows与Windows之间传输文件

 

参考文献: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

相关文章
相关标签/搜索