vps交流

甲骨文怎么创建小鸡的时候设置密码,不想ssh太麻烦


甲骨文怎么创建小鸡的时候设置密码,不想ssh太麻烦 我记得以前loc有帖子现在找不到了
你得写开机脚本,新建的时候往里填

它们什么都知道,它们本就是故意的
我什么也做不了
#!/bin/bash
echo root:123456789 |sudo chpasswd root
sudo sed -i ‘s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g’ /etc/ssh/sshd_config;
sudo sed -i ‘s/PasswordAuthentication no/PasswordAuthentication yes/g’ /etc/ssh/sshd_config;
sudo service sshd restart

海的那一边 发表于 2024-8-31 21:17
#!/bin/bash
echo root:123456789 |sudo chpasswd root
sudo sed -i ‘s/#PermitRootLogin prohibit-passw …

谢谢大佬

赞(0)
版权声明:本贴采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
帖子名称:《甲骨文怎么创建小鸡的时候设置密码,不想ssh太麻烦》
帖子链接:https://bbs.toot.su/192834.html

相关推荐