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