WinSCP之Windows与Windows之间传输文件

旧街凉风 提交于 2019-12-04 17:45:20

WinSCP之Windows与Windows之间传输文件

 

参考文献:https://winscp.net/eng/docs/guide_windows_openssh_server

方法:WinSCP+ OpenSSH

(1)在需要远程访问的windows电脑上安装OpenSSH的server:具体步骤如下:

     1.  访问https://github.com/PowerShell/Win32-OpenSSH/releases,下载PC对应的二进制包,如OpenSSH-Win64.zip,并解压到本地;

    2.  在C:\Program Files文件夹中新建OpenSSH文件夹,并将(1)中解压的所有文件copy到OpenSSH文件夹中,此处都需要Administrator的权限;

    3.  管理员权限运行command,并切换到C:\ProgramFiles\OpenSSH这个文件夹,运行以下命令:powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1

    4.  设置防火墙:Control Panel > System and Security > Windows Firewall >Advanced Settings > Inbound Rules ,右键新建rule,选择port,tcp,固定端口22,Name写sshd,description写OpenSSH Server (sshd),完成。

    5.  开启防火墙:Control Panel > System and Security > Administrative Tools,打开Services应用,找到刚刚的sshd,右键属性,startup type选automatic自启动,最后点击Start Service。

(2)在本地的PC上安装WinSCP,https://winscp.net/eng/download.php

(3)开启WinSCP,Hostname写IP,port写22,username和password自己知道的。
--------------------- 
作者:qccz123456 
来源:CSDN 
原文:https://blog.csdn.net/qccz123456/article/details/80345999 
版权声明:本文为博主原创文章,转载请附上博文链接!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!