【转】ubuntu 中科大源设置&ssh 安装与使用
来源:互联网 发布:网上数据库有哪些 编辑:程序博客网 时间:2024/06/06 04:40
sudo gedit /etc/apt/sources.list
11.04源:
deb http://debian.ustc.edu.cn/ubuntu/ natty main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ natty-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ natty-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse
10.10源
deb http://debian6.ustc.edu.cn/ubuntu/ maverick main restricted universe multiverse
deb http://debian6.ustc.edu.cn/ubuntu/ maverick-backports restricted universe multiverse
deb http://debian6.ustc.edu.cn/ubuntu/ maverick-proposed main restricted universe multiverse
deb http://debian6.ustc.edu.cn/ubuntu/ maverick-security main restricted universe multiverse
deb http://debian6.ustc.edu.cn/ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://debian6.ustc.edu.cn/ubuntu/ maverick main restricted universe multiverse
deb-src http://debian6.ustc.edu.cn/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://debian6.ustc.edu.cn/ubuntu/ maverick-proposed main restricted universe multiverse
deb-src http://debian6.ustc.edu.cn/ubuntu/ maverick-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ maverick universe multiverse main
deb http://security.ubuntu.com/ubuntu/ maverick-security universe multiverse main
deb http://cn.archive.ubuntu.com/ubuntu/ maverick-updates universe multiverse main
deb-src http://debian.ustc.edu.cn/ubuntu/ maverick-updates main restricted universe multiverse
源网址:http://blog.csdn.net/abing37/archive/2009/09/16/4557334.aspx
ssh安装 和 scp命令 使用
ubuntu默认并没有安装ssh服务,可以通过如下命令进行:
yblin@yblin-desktop:~$ ssh localhost
ssh: connect to host localhost port 22: Connection refused
如上所示则说明还没有安装ssh.
通过apt-get安装如下:
ssh默认端口是22,可以通过sudo /etc/init.d/ssh start 修改默认端口。
scp基于ssh登录,所以如果没有安装ssh无法进行文件拷贝。
一下关于scp的使用引自(http://blog.csdn.net/dlxu/archive/2007/04/16/1566772.aspx):
不同的Linux之间copy文件常用有3种方法,第一种就是ftp,也就是其中一台Linux安装ftpServer,这样可以另外一台使用ftp的client程序来进行文件的copy。第二种方法就是采用samba服务,类似Windows文件copy的方式来操作,比较简洁方便,第三种就是利用scp命令来进行文件复制。
scp是有Security的文件copy,基于ssh登录。操作起来比较方便,比如要把当前一个文件copy到远程另外一台主机上,可以如下命令。
然后会提示你输入另外那台172.19.2.75主机的root用户的登录密码,接着就开始copy了。
如果想反过来操作,把文件从远程主机copy到当前系统,也很简单。
- 【转】ubuntu 中科大源设置&ssh 安装与使用
- Ubuntu 9.10 SSH的安装与使用
- Ubuntu安装使用SSH
- Ubuntu安装使用SSH
- Ubuntu安装使用SSH
- Ubuntu配置IP与SSH Server 的安装和设置
- 《转》ubuntu下如何安装使用SSH?
- ubuntu下ssh服务的安装与使用
- ubuntu -- SSH安装与启动
- SSH安装与使用
- Ubuntu下SSH安装或设置
- Ubuntu下SSH安装或设置
- Ubuntu下SSH安装和设置
- Ubuntu安装和设置SSH服务
- ubuntu下SSH安装或设置
- ubuntu虚拟机网络设置+SSH服务安装
- Ubuntu 12.04安装和设置SSH服务
- Ubuntu 12.04安装和设置SSH服务
- 新浪微博笔试题:删除字符串中多余的空格
- VS2008编译的程序在某些机器上运行提示“由于应用程序配置不正确,应用程序未能启动”的问题
- GTALK机器人
- Xerscsc - C++ 2011.06.14
- 求解下列程序的错误所在
- 【转】ubuntu 中科大源设置&ssh 安装与使用
- Linux中查看系统资源占用情况的命令
- 个人开发用版本控制的好工具:TortoiseSVN
- fopen(argv[1],"rt")里面的argv
- oracle中varchar,varchar2,nvarchar,nvarchar2的区别
- 硬盘转换格式为NTFS或者其它
- 分享:如何做好IT职场充电规划
- 命令行的操作------CD的用法
- 一个简单的Spring的AOP例子 (成功运行,转载)