admin管理员组文章数量:1026989
WinSCP之Windows与Windows之间传输文件
方法:WinSCP+ OpenSSH
(1)在需要远程访问的windows电脑上安装OpenSSH的server:具体步骤如下:
-
访问https://github/PowerShell/Win32-OpenSSH/releases,下载PC对应的二进制包,如OpenSSH-Win64.zip,并解压到本地;
-
在C:\Program Files文件夹中新建OpenSSH文件夹,并将(1)中解压的所有文件copy到OpenSSH文件夹中,此处都需要Administrator的权限;
-
管理员权限运行cmd,并切换到C:\ProgramFiles\OpenSSH这个文件夹,运行以下命令:powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1
-
设置防火墙:Control Panel > System and Security > Windows Firewall >Advanced Settings > Inbound Rules ,右键新建rule,选择port,tcp,固定端口22,Name写sshd,description写OpenSSH Server (sshd),完成。
-
开启防火墙:Control Panel > System and Security > Administrative Tools,打开Services应用,找到刚刚的sshd,右键属性,startup type选automatic自启动,最后点击Start Service。
(2)在本地的PC上安装WinSCP,https://winscp/eng/download.php
(3)开启WinSCP,输入Hostname写IP,port写22,username和password
WinSCP之Windows与Windows之间传输文件
方法:WinSCP+ OpenSSH
(1)在需要远程访问的windows电脑上安装OpenSSH的server:具体步骤如下:
-
访问https://github/PowerShell/Win32-OpenSSH/releases,下载PC对应的二进制包,如OpenSSH-Win64.zip,并解压到本地;
-
在C:\Program Files文件夹中新建OpenSSH文件夹,并将(1)中解压的所有文件copy到OpenSSH文件夹中,此处都需要Administrator的权限;
-
管理员权限运行cmd,并切换到C:\ProgramFiles\OpenSSH这个文件夹,运行以下命令:powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1
-
设置防火墙:Control Panel > System and Security > Windows Firewall >Advanced Settings > Inbound Rules ,右键新建rule,选择port,tcp,固定端口22,Name写sshd,description写OpenSSH Server (sshd),完成。
-
开启防火墙:Control Panel > System and Security > Administrative Tools,打开Services应用,找到刚刚的sshd,右键属性,startup type选automatic自启动,最后点击Start Service。
(2)在本地的PC上安装WinSCP,https://winscp/eng/download.php
(3)开启WinSCP,输入Hostname写IP,port写22,username和password
版权声明:本文标题:WinSCP之Windows与Windows之间传输文件 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1725013499a541887.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论