【Linux】CentOS7 遠端聯機
阿新 • • 發佈:2022-03-07
CentOS7 遠端聯機
嗶哩嗶哩 萌狼藍天
部落格:https://mllt.cc
微信公眾號:萌狼藍天
檢查與安裝配置OpenSSH
[CentOS7]檢查系統是否安裝OpenSSH
yum -q list openssh-server
如果沒有安裝可使用如下命令安裝
yum -y install oepnssh-server
[CentOS7]檢查系統是否啟動OpenSSH伺服器
systemctl status sshd
如果OpenSSH伺服器沒有啟動,則手動啟動
systemctl start sshd
[CentOS7]設定sshd開機自動啟動
systemctl enable sshd
如果設定sshd啟動後,sshd狀態仍沒有啟動,檢查防火牆是否阻止了ssh服務
firewall-cmd --list-service
出現該結果則是沒問題的
如果沒有出現該結果,則需要你自己去新增ssh服務(下面這個是永久加入的命令,不想永久加入的話,最後不寫permanent就可以了)
firewall-cmd --add-service ssh permanent
安裝xshell
[Windows]搜尋xshell,進入官網
Free for Home/School - Xshell and Xftp Free Licensing (netsarang.com)
你將會收到一封郵件
點選郵件中的下載連結即可進行下載,下載後完成安裝即可。
配置與連線CentOS7
[Windows]開啟xshell
不知道CentOS IP地址的,在CentOS終端中輸入ifconfig
xshell中出現如下內容,則為連線成功
作者:萌狼藍天,轉載請註明原文連結:https://www.cnblogs.com/mllt/p/linuxcentos20220307.html | 萌狼藍天@嗶哩嗶哩 | QQ:3447902411(僅限技術交流,新增請說明方向)| 歡迎關注我的嗶哩嗶哩