Create User

useradd connie

Change the password

passwd connie

Allow user to sudo -i

nano /etc/sudoers

找出這行

root    ALL=(ALL)       ALL

加入這行

connie   ALL=(ALL)       ALL

完成

順手關掉root 的ssh right

nano /etc/ssh/sshd_config

可以change port number

Port 2222

disable root access

PermitRootLogin no

 

トラックバック

このブログ記事に対するトラックバックURL:

コメント & トラックバック

No comments yet.

Comment feed

コメントする

Smiley face

April 2024
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
282930