Centos笔记整理

安装 EPEL Repository: (根据自己的机器选择)

RHEL/CentOS 7 64 Bit

## RHEL/CentOS 7 64-Bit ##
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
# rpm -ivh epel-release-7-2.noarch.rpm

RHEL/CentOS 6 32-64 Bit

## RHEL/CentOS 6 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

## RHEL/CentOS 6 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

CentOS下SSH无密码登录的配置

本机生成公钥和私钥

ssh-keygen -t rsa

将公钥复制到服务器

scp ~/.ssh/id_rsa.pub username@host:/home/username/.ssh/authorized_keys

在服务器上设置权限

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

网络服务器


本页最后更新时间:2015-11-11 Wed 12:15.
小过的布拉格 - Copyright©2013-2017 - @xiaoguo - Powered by Emacs 26.1 (Org mode 9.1.1)
行路难,行路难, 多歧路,今安在。长风破浪会有时,直挂云帆济沧海。