全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 370|回复: 4

亚马逊的机器怎么弄不用秘钥登录...

[复制链接]
发表于 2020-4-20 12:54:19 | 显示全部楼层 |阅读模式
亚马逊的机器怎么弄不用秘钥登录...
发表于 2020-4-20 14:28:23 | 显示全部楼层
passwd root
发表于 2020-4-20 14:29:53 | 显示全部楼层
改 /etc/ssh/sshd_config 里的 PasswordAuthentication yes 然后重启服务就好
具体https://c nblogs.com/toughlife/p/5633510.html
发表于 2020-4-20 14:33:51 | 显示全部楼层
一键dd 全新的系统   
发表于 2020-4-20 14:40:46 | 显示全部楼层
#!/bin/bash
echo root:密码 |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo reboot
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-19 19:26 , Processed in 0.057269 second(s), 7 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表