admin管理员组

文章数量:1591205

WinSCP之Windows与Windows之间传输文件

方法:WinSCP+ OpenSSH

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

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

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

  3. 管理员权限运行cmd,并切换到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/eng/download.php

(3)开启WinSCP,输入Hostname写IP,port写22,username和password

本文标签: 传输文件WinSCPWindows