码迷,mamicode.com
首页 > Windows程序 > 详细

window linux 文件传输

时间:2016-11-28 00:38:14      阅读:255      评论:0      收藏:0      [点我收藏+]

标签:depend   deb   desktop   pictures   ubuntu   ports   linux   templates   pack   

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 文件传输

标签:depend   deb   desktop   pictures   ubuntu   ports   linux   templates   pack   

原文地址:http://www.cnblogs.com/timliucn/p/6107638.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!