Ubuntu Server 14.04 下root无法ssh登陆
#vim /etc/ssh/sshd_config
# Authentication: LoginGraceTime 120 #PermitRootLogin without-password #找到这里,把它注释 PermitRootLogin yes #改为yes 然后重启ssh StrictModes yes
#service ssh restart
或
/etc/init.d/ssh restart
获取root权限
方法一:
1. set a password for root: sudo passwd root 2. using command to get root role: su 3. enter the root's password set in step 1
方法二:
1. login ubuntu with customer account 2. run command: sudo su 3. enter customer account's password
相关推荐
projava 2020-11-14
WanKaShing 2020-11-12
airfish000 2020-09-11
tryfind 2020-09-14
yegen00 2020-09-10
kkaazz 2020-09-03
风语者 2020-09-02
BraveWangDev 2020-08-19
lichuanlong00 2020-08-15
gsl 2020-08-15
pandaphinex 2020-08-09
yhuihon 2020-08-09
CheNorton 2020-08-02
xiangqiao 2020-07-28
hpujsj 2020-07-26
hpujsj 2020-07-26
sshong 2020-07-19
BraveWangDev 2020-07-19
annan 2020-07-18