1.SSH 服務(wù)遠(yuǎn)程連接需要設(shè)定的五參數(shù)
遠(yuǎn)程連接需要設(shè)定的五個(gè)參數(shù)為:協(xié)議、IP磷仰、端口、用戶名、密碼
圖片.png
2 查看ssh進(jìn)程
[root@hellochangxu data]# ps -ef|grep ssh
root 1150 1 0 20:27 ? 00:00:00 /usr/sbin/sshd
root 1258 1150 0 20:29 ? 00:00:00 sshd: root@pts/0
root 1285 1260 0 20:38 pts/0 00:00:00 grep ssh
3 查看ssh端口
[root@hellochangxu data]# netstat -ntlpu|grep ssh
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1150/sshd
tcp 0 0 :::22 :::* LISTEN 1150/sshd
4.SSH遠(yuǎn)程管理故障排查
檢測(cè)兩個(gè)機(jī)器是否暢通
圖片.png
圖片.png
查看Linux上ssh服務(wù)是否完好
[root@hellochangxu data]# /etc/init.d/sshd status
openssh-daemon (pid 1150) is running...
telnet 192.168.109.132
如果輸入在 s windows 的 的 d cmd 窗口輸入 t telnet 提示: ..... 不是內(nèi)部或外部命令祝蝠,
也不是可執(zhí)行程序 ....
解決辦法:開始 — 控制面板 — 程序和功能 — 打開或關(guān)閉windows 功能 — 勾選
telnet 客戶端 —
檢查防火墻是否阻擋