国产欧美日韩第一页|日本一二三不卡视频|在线精品小视频,亚洲第一免费播放区,metcn人体亚洲一区,亚洲精品午夜视频

ubuntu14.04 ssh允許root用戶遠(yuǎn)程登錄

2019-11-18 18:06:40 1040

 修改 root 密碼

sudo passwd root

2. 以其他賬戶登錄,通過 sudo nano 修改 /etc/ssh/sshd_config :

xxx@ubuntu14:~$ su - root
Password:
root@ubuntu14:~# vi /etc/ssh/sshd_config

3. 注釋掉 #PermitRootLogin without-password,添加 PermitRootLogin ye

# Authentication:
LoginGraceTime 120
#PermitRootLogin without-password
PermitRootLogin yes
StrictModes yes

4. 重啟 ssh  服務(wù)

root@ubuntu14:~# sudo service ssh restart
ssh stop/waiting
ssh start/running, process 1499
root@ubuntu14:~#


提交成功!非常感謝您的反饋,我們會繼續(xù)努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進(jìn)一步的反饋信息:

在文檔使用中是否遇到以下問題: