wxsheng 发表于 2019-2-19 07:19:27

ubuntu添加账号

ubuntu添加账号

useradd -d /home/test -m -s /bin/bash test
vim /etc/sudoers
test ALL=(ALL) NOPASSWD: ALL

查看所有用户的crontab

for u in `cat /etc/passwd | cut -d":" -f1`;do crontab -l -u $u;done

ubuntu ssh key登陆

ll ../.ssh/ -d    #700权限
drwx------ .ssh//
llauthorized_keys   #600权限
-rw-------authorized_keys

  ssh 连接提示 Permission denied (publickey) 怎么破?

cat/etc/ssh/sshd_config
AllowUsers *@IP


页: [1]
查看完整版本: ubuntu添加账号