• <ul id="mayc0"></ul>
    <ul id="mayc0"><center id="mayc0"></center></ul>
    <strike id="mayc0"><input id="mayc0"></input></strike>
    <ul id="mayc0"></ul>
  • 億恩科技有限公司旗下門戶資訊平臺!
    服務器租用 4元建網站

    問題:Ubuntu SSH允許root用戶遠程登錄

    修改 root 密碼

    修改 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 服務


    root@ubuntu14:~# sudo service ssh restart

    ssh stop/waiting

    ssh start/running, process 1499

    root@ubuntu14:~# 

    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 服務


    root@ubuntu14:~# sudo service ssh restart

    ssh stop/waiting

    ssh start/running, process 1499

    root@ubuntu14:~# 

    河南億恩科技股份有限公司(www.vbseamall.com)始創于2000年,專注服務器托管租用,是國家工信部認定的綜合電信服務運營商。億恩為近五十萬的用戶提供服務器托管、服務器租用、機柜租用、云服務器、網站建設、網站托管等網絡基礎服務,另有網總管、名片俠網絡推廣服務,使得客戶不斷的獲得更大的收益。
    服務器/云主機 24小時售后服務電話:0371-60135900
    虛擬主機/智能建站 24小時售后服務電話:0371-55621053
    網絡版權侵權舉報電話:0371-60135995
    服務熱線:0371-60135900

    標簽 UbuntuSSH
    0
    0
    分享到:責任編輯:會會

    相關推介

    共有:0條評論網友評論:

    驗證碼 看不清換一張 換一張

    親,還沒評論呢!速度搶沙發吧!