0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ユーザ追加備忘

Posted at

sudoersへの追加をよく忘れるので定型化。
難しいことは何も書いていません。ただの備忘録です。

useradd whouser
mkdir /home/whouser/.ssh
echo "ssh-rsa AAAAB3NzaC1......." > /home/whouser/.ssh/authorized_keys
chown whouser:whouser -R /home/whouser/.ssh
chmod 0700 /home/whouser/.ssh
chmod 0600 /home/whouser/.ssh/authorized_keys

passwd whouser

visudo
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?