歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> CentOS 6.4配置無密碼SSH

CentOS 6.4配置無密碼SSH

日期:2017/3/1 14:51:09   编辑:關於Linux
CentOS 6.4配置無密碼SSH CentOS 6.4 對 網絡管理相當嚴格。單純的 $ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa $ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys 命令沒辦法做到無密碼SSH登陸。需要做三件事情。 1、關閉SElinux # vi /etc/selinux/config 設置SELINUX=disabled 2、更改權限 $ chmod 600 ~/.ssh / authorized_keys $ chmod 700 ~/.ssh 3、注銷再登陸 用ssh localhost再試試,OK。
Copyright © Linux教程網 All Rights Reserved