03 2022 档案

摘要:现遇到的 passwd: Module is unknow Authentication token manipulation error 都是/etc/pam.d/system-auto的配置有问题 第二个错误不排除文件被锁的情况 lsattr查看文件情况,当带有i的标识就是锁了,chattr参数 阅读全文
posted @ 2022-03-08 10:44 一只白杨 阅读(221) 评论(0) 推荐(0) 编辑
摘要:ssh-keygen -t rsa获取密钥 cat /root/.ssh/id_*.pub 查看密钥,黏贴到服务器的.ssh/authorized_keys中(用户家目录) vi scp.sh#!/bin/bashIP=`hostname -I | awk '{print $2}'`;#获取本机IP 阅读全文
posted @ 2022-03-03 16:23 一只白杨 阅读(124) 评论(0) 推荐(0) 编辑
摘要:服务器ssh给其他服务器添加用户 ssh -p 端口 root@ip "useradd 用户名;echo "密码"| passwd --stdin wuyishu" 阅读全文
posted @ 2022-03-02 17:51 一只白杨 阅读(35) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示