在windows下面远程控制linux机器,我门一般做2件事情:

1. 发送linux命令控制远程机器

2. 和linux远程机器之间传输文件

第一个大家用的比较多的是PuTTY

第二个很方便的pscp

这2个都是单独的exe,从下面网站下载:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

或者直接点击下面连接下载

pscp

http://the.earth.li/~sgtatham/putty/latest/x86/pscp.exe

putty

http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe

pscp只要你远程机器开了SSHD这个服务,你就可以使用这个命令传输文件了。

从远程机器传文件到本机:

pscp username@hostname:remotefile localdirectory

从本地传文件到远程机器:

pscp localfile username@hostname:remotefile

这个过程需要你输入密码的,密码就是你登陆的putty使用的密码


如果你觉得每次手动输入密码很麻烦你就直接在批处理中加入密码,这样上面的命令就变成了:

pscp -pw password localfile username@hostname:remotefile



GitHub 加速计划 / li / linux-dash
13
2
下载
A beautiful web dashboard for Linux
最近提交(Master分支:4 个月前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐