一、安装ssh的步骤:
1.安装openssh-server
CentOS/Linux系统命令行输入如下命令:
yum install -y openssl openssh-server
2. 修改配置文件
用vim打开配置文件/etc/ssh/sshd_config
将上图的PermitRootLogin
,RSAAuthentication
,PubkeyAuthentication
的设置为YES
CentOS/Linux系统命令行输入如下命令:
yum install -y openssl openssh-server
用vim打开配置文件/etc/ssh/sshd_config
将上图的PermitRootLogin
,RSAAuthentication
,PubkeyAuthentication
的设置为YES