首页 > 代码库 > window linux 文件传输
window linux 文件传输
window 安装:
pscp.exe (放在C:\Windows\System32 目录下)
Linux 安装:
1: 先更新apt-get
root@ubuntu:/home/ubuntu# sudo apt-get update
有报错的话需要修改vi /etc/apt/sources.list
deb http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
2: 安装openssh-server:
root@ubuntu:/home/ubuntu# apt-get install openssh-server
安装报错信息:
The following packages have unmet dependencies:
openssh-server : Depends: openssh-client (= 1:6.1p1-4) but 1:6.6p1-8 is to be installed
E: Unable to correct problems, you have held broken packages.
降级:openssh-client=1:6.1p1-4 完之后在安装 openssh-serve
root@ubuntu:/home/ubuntu# apt-get install openssh-client=1:6.1p1-4
启用ssh
root@ubuntu:/home/ubuntu# ps -e |grep ssh
root@ubuntu:/home/ubuntu# service ssh start
ssh start/running, process 13993
root@ubuntu:/home/ubuntu# ps -e |grep ssh
13993 ? 00:00:00 sshd
window:
D:\>pscp save\virtualenv-15.1.0.tar.gz root@192.168.1.109:/home/ubuntu
root@192.168.1.109‘s password:
Access denied
root@192.168.1.109‘s password:
virtualenv-15.1.0.tar.gz | 1820 kB | 364.1 kB/s | ETA: 00:00:00 | 100%
Linux:
root@ubuntu:/home/ubuntu# ls
Desktop Documents Downloads examples.desktop Music Pictures Public Templates test1.txt test2.txt Videos virtualenv-15.1.0.tar.gz
root@ubuntu:/home/ubuntu#
window linux 文件传输