linux之ssh使用与配置

ssh无密码登陆或scp

公钥加密,私钥解密

生成公钥
ssh-keygen -t rsa 然后一路按回车

ssh-copy-id -i ~/.ssh/id_rsa.pub $ip

ssh配置说明
/etc/ssh/sshd_config的配置说明
PermitRootLogin no 不允许root用户直接ssh登陆

安全加固
Default OpenSSH Security Options You Should Change in /etc/ssh/sshd_config
http://www.thegeekstuff.com/2011/05/openssh-options/

posted @ 2022-03-06 10:39  叶常落  阅读(54)  评论(0编辑  收藏  举报