導讀 |
Ubuntu系統是企業和個人比較常用的Linux系統之一,由於圖形支援良好和開發工具支援良好,程式設計師更是偏好ubuntu系列系統。最近幫朋友公司處理問題,用虛擬機器做Ubuntu測試環境,發現Ubuntu的預設安全等級和遠端工具都沒有進行設定。下面呢我們就進行安裝ssh服務,然後開啟root權限(不推薦) |
#
系統環境
我們的系統採用的是虛擬機器 vmware workstations 12版本 Ubuntu17.04 進行實驗:
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343023990.png)
安裝ssh服務
檢查網路的連結性
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343033230.png)
#升級安裝來源(第一次使用必須的)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343033005.png)
#安裝ssh服務![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343016193.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343077156.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343052382.png)
##啟動ssh服務
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343062209.png)
#檢查ssh服務啟動狀態
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343050178.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343094945.png)
#設定ssh服務開機啟動
嘗試使用chkconfig設定ssh開機啟動![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343165859.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343178804.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343182929.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343134126.png)
##systemctl 設定ssh服務開機啟動![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343111009.png)
##修改ssh設定文件,開啟root使用者登入
#查看IP嘗試遠端登入![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343171848.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343179315.png)
#ok,一般使用者登入成功。我們嘗試切換到root。
切換到普通用戶
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343192180.png)
##修改root的密碼
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343140966.png)
########
嘗試用root使用者登入系統
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343297740.png)
#修改ssh的設定文件,啟用root登入
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343224896.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343261036.png)
##使用root使用者進行root登入
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343263950.png)
#
本文原始地址:https://www.linuxprobe.com/ubuntu-start-sshd.html作者:陶武傑,審核員:逄增寶
本文原創網址:https://www.linuxprobe.com/ubuntu-start-sshd.html編輯:public,審核員:暫無
為您推薦一些與本文相關的文章:
##俄羅斯軍方的GNU/Linux 發行版:Astra Linux- FreeBSD 11.3正式發布
- 如何在Linux 命令列中觀看彩虹貓
- 《雲端原生Java:Spring Boot、Spring Cloud與Cloud Foundry彈性系統設計》pdf電子書免費下載
- 《圖解TCP/IP》 pdf電子書免費下載
- Bitwarden 正式收購開源新創公司Passwordless.dev
- zabbix再爆高危險SQL注入漏洞,可獲系統權限
- Node.js:輕鬆開發Web應用的神器,快速安裝教學解密
- IMAX即將推出IMAX Enhanced認證
- 《電腦圖形學第4版》pdf電子書免費下載
-
以上是設定 Ubuntu 系統的遠端存取的詳細內容。更多資訊請關注PHP中文網其他相關文章!