centos7安裝openssh centos7怎么配置ssh服務(wù)?
centos7怎么配置ssh服務(wù)?1. 安裝openssh-serveryum install -y openssl openssh-server2. 修改配置文件用vim打開配置文件/etc/ssh
centos7怎么配置ssh服務(wù)?
1. 安裝openssh-serveryum install -y openssl openssh-server2. 修改配置文件用vim打開配置文件/etc/ssh/sshd_config將上圖的PermitRootLogin,RSAAuthentication,PubkeyAuthentication的設(shè)置打開。啟動(dòng)ssh的服務(wù):systemctl start sshd.service設(shè)置開機(jī)自動(dòng)啟動(dòng)ssh服務(wù)systemctl enable sshd.service