LoginSignup
0
1

More than 5 years have passed since last update.

サーバーにユーザーを追加する

Last updated at Posted at 2014-11-02

ユーザー追加

sudo useradd -m -g dev -s /bin/bash catatsuy
sudo usermod -p '*************************' catatsuy

パスワードのハッシュを調べる

sudo cat /etc/shadow | grep catatsuy

鍵追加

sudo mkdir -p /home/catatsuy/.ssh
sudo vim /home/catatsuy/.ssh/authorized_keys
sudo chown -R catatsuy:dev /home/catatsuy/.ssh/
sudo chmod 600 /home/catatsuy/.ssh/authorized_keys
sudo chmod 700 /home/catatsuy/.ssh/
0
1
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
1