Centos带来的幸福

  1. 换Yum源
    1. 1提权

[usera@centos79 yum.repos.d]$     sudo   -i

[sudo] usera 的密码:   // 输入的密码不显示 Pwd@123.com

[root@centos79 ~]#

  1. 2备份(阿里开源镜像站)

[root@centos79 ~]    mv    /etc/yum.repos.d/CentOS-Base.repo    /etc/yum.repos.d/CentOS-Base.repo.backup

[root@centos79 ~]#   cd   /etc/yum.repos.d/

[root@centos79 yum.repos.d]#    ls

  1. 3下载新的配置文件

[root@centos79 yum.repos.d]#  wget -O /etc/yum.repos.d/CentOS-Base.repo  https://mirrors.aliyun.com/repo/Centos-7.repo

[root@centos79 yum.repos.d]# ls

     2   .SSH

  2.1查看是否已经安装openssh

[root@centos79 yum.repos.d]# yum   list   installed    |   grep   openssh

openssh.x86_64                              7.4p1-21.el7               @anaconda

openssh-clients.x86_64                      7.4p1-21.el7               @anaconda

openssh-server.x86_64                       7.4p1-21.el7               @anaconda

[root@centos79 yum.repos.d]# cd   /etc/ssh

[root@centos79 ssh]# ls

moduli       ssh_host_ecdsa_key      ssh_host_ed25519_key.pub

ssh_config   ssh_host_ecdsa_key.pub  ssh_host_rsa_key

sshd_config  ssh_host_ed25519_key    ssh_host_rsa_key.pub

[root@centos79 ssh]# cat   sshd_config

** 默认已经安装了,如果没有安装,需要yum   install    openssh-server   进行安装

    2.2   查看sshd是否正在运行

[root@centos79 ssh]# ps   -e   |   grep   sshd

  1442 ?        00:00:00 sshd

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值