Linux installation SSH

Source: Internet
Author: User

Installing SSH

Yum Install Openssh-server

View Installed Packages

Rpm-qa | grep ssh

Update Yum Source

1. Backup

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/

CentOS 7

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

3. After running Yum Makecache generate cache

Http://mirrors.aliyun.com/help/centos

The file is located under the CentOS directory/etc/yum.repos.d/.

Update source for Ali: CentOS-7

# Centos-base.repo
#
# The Mirror system uses the connecting IP address of the client and the
# Update status of each mirror to pick mirrors that is updated to and
# Geographically close to the client. You should the use of this for CentOS updates
# Unless you is manually picking other mirrors.
#
# If The mirrorlist= does not work for you, as a fall back to you can try the
# remarked out Baseurl= line instead.
#
#

[Base]
name=centos-$releasever-base-mirrors.aliyun.com
Failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=os
Gpgcheck=1
Gpgkey=http://mirrors.aliyun.com/centos/rpm-gpg-key-centos-7

#released Updates
[Updates]
name=centos-$releasever-updates-mirrors.aliyun.com
Failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=updates
Gpgcheck=1
Gpgkey=http://mirrors.aliyun.com/centos/rpm-gpg-key-centos-7

#additional packages that could be useful
[Extras]
name=centos-$releasever-extras-mirrors.aliyun.com
Failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=extras
Gpgcheck=1
Gpgkey=http://mirrors.aliyun.com/centos/rpm-gpg-key-centos-7

#additional packages that extend functionality of existing packages
[Centosplus]
name=centos-$releasever-plus-mirrors.aliyun.com
Failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/centosplus/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=centosplus
Gpgcheck=1
Enabled=0
Gpgkey=http://mirrors.aliyun.com/centos/rpm-gpg-key-centos-7

#contrib-packages by Centos Users
[Contrib]
name=centos-$releasever-contrib-mirrors.aliyun.com
Failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/contrib/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/contrib/$basearch/
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=contrib
Gpgcheck=1
Enabled=0
Gpgkey=http://mirrors.aliyun.com/centos/rpm-gpg-key-centos-7

Linux installation SSH

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.