修改的是 /etc/ssh/sshd_config 文件

午夜福利视频,日日噜噜噜夜夜爽爽狠狠视频,,色吊丝av中文字幕,日韩无码电影,日韩在线视频观看免费网站

幫助中心

如果沒有找到你需要的問題,隨時聯(lián)系我們

如何修改ssh默認(rèn)22端口號2014/10/20 14:51:08
 

修改的是 /etc/ssh/sshd_config 文件

01[root@linux ~]# vi /etc/ssh/sshd_config
02# $OpenBSD: sshd_config,v 1.69 2004/05/23 23:59:53 dtucker Exp $
03# This is the sshd server system-wide configuration file. See
04# sshd_config(5) for more information.
05# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
06# The strategy used for options in the default sshd_config shipped with
07# OpenSSH is to specify options with their default value where
08# possible, but leave them commented. Uncommented options change a
09# default value.
10Port 8284 //以前這個前面是有 # 號的,而且默認(rèn)是 22 ,修改一下就ok了
11#Protocol 2,1
12#ListenAddress 0.0.0.0
13#ListenAddress ::
14# HostKey for protocol version 1
15#HostKey /etc/ssh/ssh_host_key
16# HostKeys for protocol version 2
17#HostKey /etc/ssh/ssh_host_rsa_key
18#HostKey /etc/ssh/ssh_host_dsa_key

重起ssh服務(wù),修改端口才生效

1[root@linux ~]# /etc/init.d/sshd restart
2Stopping sshd: [ OK ]
3Starting sshd: [ OK ]
4[root@linux ~]#

為了檢驗是否正確,可以使用 netstat -an 命令查看一下。




 

服務(wù)熱線

400-637-7717

備案專員

0760-88308377

功能和特性

價格和優(yōu)惠

微信公眾號/人工客服

嘿,我是微信客服!