摘要: 本机生成RSA密钥对 ssh-keygen 生成的公钥id_rsa.pub私钥id_rsa均在~/.ssh下 本地公钥复制到服务器 scp /home/用户名/.ssh/id_rsa.pub 用户名@服务器IP:~/.ssh/ 服务器上 touch authorized_keys cat id_rs 阅读全文
posted @ 2020-02-06 22:45 卧牛w 阅读(721) 评论(0) 推荐(0)
摘要: 创建用户 #创建ubuntu用户 adduser ubuntu 添加sudo权限 #放开写/etc/sudoers文件的权限 chmod u+w /etc/sudoers #编辑 vim /etc/sudoers ##在root ALL=(ALL) ALL下增加xxx ALL=(ALL) ALL # 阅读全文
posted @ 2020-02-06 22:10 卧牛w 阅读(1481) 评论(0) 推荐(0)