開啓”終端視窗”,輸入”sudo apt-get update”–>回車–>”輸入當前登入使用者的管理員密碼”–>回車, 就可以了。
安裝 ssh
開啓”終端視窗”,輸入”sudo apt-get install openssh-server”–>回車–>輸入”y”–>回車–>安裝完成。
檢視 ssh 服務是否啓動
開啓”終端視窗”,輸入”sudo ps -e |grep ssh”–>回車–>有sshd, 説明ssh服務已經啓動,如果沒有啓動,輸入”sudo service ssh start”–>回車–>ssh 服務就會啓動。
使用 gedit 修改配置檔案”/etc/ssh/sshd_config”
開啓”終端視窗”,輸入”sudo gedit /etc/ssh/sshd_config”–>回車–>把配置檔案中的”PermitRootLogin without-password”加一個”#”號, 把它註釋掉–>再增加一句”PermitRootLogin yes”–>儲存,修改成功。
·