摘要:
添加文件可写权限 chmod 644 /etc/sudoers 编辑/etc/sudoers文件 vim /etc/sudoers 添加下面一行: boye ALL=(ALL) NOPASSWD: ALL 阅读全文
posted @ 2020-12-01 23:24
boye169
阅读(1359)
评论(0)
推荐(0)
摘要:
生成秘钥 ssh-keygen -t rsa 复制SSH密钥到目标主机 -方式1 ssh-copy-id -i ~/.ssh/id_rsa.pub test@192.168.2.100 复制SSH密钥到目标主机 -方式2 将本地机器的 ~/.ssh/id_rsa.pub文件内容复制到目标机器的~/. 阅读全文
posted @ 2020-12-01 00:39
boye169
阅读(267)
评论(0)
推荐(0)
摘要:
创建用户 useradd [-d home] [-s shell] [-c comment] [-m [-k template]] [-f inactive] [-e expire ] [-p passwd] [-r] name 主要参数 -c:加上备注文字,备注文字保存在passwd的备注栏中。 阅读全文
posted @ 2020-12-01 00:32
boye169
阅读(812)
评论(0)
推荐(0)


浙公网安备 33010602011771号