首頁 > 系統教程 > Linux > 主體

SSH 服務安裝與啟動教學:Redhat、Debian 等系列 Linux 發行版

WBOY
發布: 2024-06-15 15:58:32
原創
385 人瀏覽過

SSH 服务安装与启动教程:Redhat、Debian 等系列 Linux 发行版

一、SSH服務安裝1、安裝ssh服務

假如你用的是redhat,fedora,centos等系列linux發行版linux 安裝sshandroid linux,這麼敲入以下指令:

sudo yum install sshd 
sudo yum install openssh-server
登入後複製

假如你使用的是debian,ubuntu,linuxmint等系列的linux發行版linux 安裝ssh,這麼敲入以下指令:

安装Linux系统步骤_linux 安装ssh_安装Linux黑屏

#

sudo apt-get install sshd
sudo apt-get install openssh-server
登入後複製

2、啟動ssh服務

linux 安装ssh_安装Linux系统步骤_安装Linux黑屏

#

service sshd start
or
/bin/systemctl restart sshd.service
or
/etc/init.d/sshd start
or
sudo systemctl restart sshd
登入後複製

設定開機運行

chkconfig sshd on
登入後複製

查看ssh服務的狀態

安装Linux系统步骤_安装Linux黑屏_linux 安装ssh

#

sudo service sshd status
登入後複製

若果出現

linux 安装ssh_安装Linux黑屏_安装Linux系统步骤

#Loaded:error(Reason:Nosuchfileordirectory)

提示的話linux中文亂碼,說名沒有安裝ssh服務,依照第一步:安裝ssh服務。

倘若出現

Active:inactive(dead)

說明早已安裝了ssh服務,並且沒有開啟。根據第二步:開啟ssh服務

以上是SSH 服務安裝與啟動教學:Redhat、Debian 等系列 Linux 發行版的詳細內容。更多資訊請關注PHP中文網其他相關文章!

來源:itcool.net
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!