Annihilater / HexoBlogComments

HexoBlogComments
https://www.klause.cn
0 stars 0 forks source link

Linux新增ssh登录用户并加入sudo组 | 湮灭星空 #46

Open Annihilater opened 4 years ago

Annihilater commented 4 years ago

https://www.klause.cn/2020/02/12/linux/linux-xin-zeng-ssh-deng-lu-yong-hu-bing-jia-ru-sudo-zu/

Linux新增ssh登录用户并加入sudo组 创建用户 useradd testuser

为新用户添加授权 key cd /home/testuser mkdir .ssh cd .ssh vi authorized_keys #复制粘贴