linux之ssh使用与配置

 2023-09-06 阅读 24 评论 0

摘要: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 Yo

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/

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/4/6958.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息