openssh 8.3_centos6_centos7.tar.gz rpm包
#!/bin/bash work_dir=`pwd` tar -zxvf /$work_dir/openssh-8.3_centos6_centos7.tar.gz rpm -Uvh *.rpm chmod 400 /etc/ssh/ssh_host_ecdsa_key chmod 400 /etc/ssh/ssh_host_ed25519_key chmod 400 /etc/ssh/ssh_host_rsa_key echo "PermitRootLogin yes" >> /etc/ssh/sshd_config echo "PasswordAuthentication yes"
用户评论