diff --git a/SSH.md b/SSH.md index 32cd8f70..20a6d59b 100644 --- a/SSH.md +++ b/SSH.md @@ -1,3 +1,4 @@ + # SSH(Secure Shell)介绍 @@ -55,6 +56,8 @@ - `sudo chmod 700 /root/.ssh` - `sudo chmod 600 /root/.ssh/authorized_keys` - 重启服务:`sudo service sshd restart` +- 注意:CentOS7重启服务和之前的不一样了 +- `sudo systemctl  restart sshd.service` - 设置 SSH 服务默认启动:`sudo sysv-rc-conf ssh on` - 现在 SSH 客户端可以去拿着 SSH 服务器端上的 id_rsa,在客户端指定秘钥文件地址即可,这个一般由于你使用的客户端决定的,我这里推荐的是 Xshell 软件。 diff --git a/ubuntu-settings/Ubuntu-Extra-Packages.md b/ubuntu-settings/Ubuntu-Extra-Packages.md index 3500611c..867c42b8 100644 --- a/ubuntu-settings/Ubuntu-Extra-Packages.md +++ b/ubuntu-settings/Ubuntu-Extra-Packages.md @@ -31,3 +31,88 @@ deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse ``` - 更换源之后,需要在终端中执行:`sudo apt-get update`,这是必须做的,不然你后面可能会遇到 apt-get 安装会提示:未发现软件包。 + +## 三:ubuntu各个版本的阿里云源内容 +# 系统版本:ubuntu16.04 + +# 3.1.1:阿里源: + +deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties +deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted +deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties +deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted +deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties +deb http://mirrors.aliyun.com/ubuntu/ xenial universe +deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe +deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse +deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse +deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse +deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties +deb http://archive.canonical.com/ubuntu xenial partner +deb-src http://archive.canonical.com/ubuntu xenial partner +deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted +deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties +deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe +deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse + +# 3.1.2:东北大学: + +deb-src http://mirror.neu.edu.cn/ubuntu/ xenial main restricted #Added by software-properties +deb http://mirror.neu.edu.cn/ubuntu/ xenial main restricted +deb-src http://mirror.neu.edu.cn/ubuntu/ xenial restricted multiverse universe #Added by software-properties +deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted +deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties +deb http://mirror.neu.edu.cn/ubuntu/ xenial universe +deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates universe +deb http://mirror.neu.edu.cn/ubuntu/ xenial multiverse +deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates multiverse +deb http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse +deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties +deb http://archive.canonical.com/ubuntu xenial partner deb-src http://archive.canonical.com/ubuntu xenial partner +deb http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted +deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties +deb http://mirror.neu.edu.cn/ubuntu/ xenial-security universe +deb http://mirror.neu.edu.cn/ubuntu/ xenial-security multiverse + +# 3.1.3:清华大学: + +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse + +## 3.2:ubuntu 14.04 +# 3.2.1:Ubuntu 官方更新服务器(欧洲,此为官方源,国内较慢,但无同步延迟问题,电信、移动/铁通、联通等公网用户可以使用): + +deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse +deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse +deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse +deb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse +deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse +deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse +deb-src http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse +deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse +deb-src http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse +deb-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse + +Ubuntu官方提供的其他软件(第三方闭源软件等): + +deb http://archive.canonical.com/ubuntu/ trusty partner +deb http://extras.ubuntu.com/ubuntu/ trusty main +# 3.2.2:阿里云: + +deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse +deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse +deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse +deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse +deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse +deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse +deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse +deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse +deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse +deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse