Linux ssh-keygen, 改端口, 允许root等操作2020-04-012020-05-251 CommentTags:linux Contents hide 1 造key 2 修改文件 3 重启ssh服务 造key # rsa主要是兼容性好,4096位提升破解难度 ssh-keygen -t rsa -b 4096 # 狂按回车就行了 修改文件 vi /etc/ssh/sshd_config Port 22 # 修改变成想要的port PermitRootLogin yes #允许用root远程ssh本机。 重启ssh服务 service sshd restart # 或者 /etc/init.d/sshd restart Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Δ previous关于N95和KN95口罩next(送小鸡)VPS特写 – 日主机 – 整体不错