摘要: ssh-keygencat ~/.ssh/id_rsa.pub | ssh user@IP "cat - >> ~/.ssh/authorized_keys"ssh-copy-id -i ~/.ssh/id_rsa.pub user@IPssh-copy-id -i ~/.ssh/id_rsa.pu 阅读全文
posted @ 2019-12-23 16:41 walkersss 阅读(551) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#sed -i '79s/GSSAPIAuthentication yes/GSSAPIAuthentication no/g' /etc/ssh/sshd_configsed -i '115s/#UseDNS yes/UseDNS no/g' /etc/ssh/sshd_co 阅读全文
posted @ 2019-12-23 16:39 walkersss 阅读(288) 评论(0) 推荐(0) 编辑