中易网

SSH是什么?Linux如何修改SSH端口号

答案:2  悬赏:70  
解决时间 2021-02-19 01:45
SSH是什么?Linux如何修改SSH端口号
最佳答案
ssh 和telnet 差不多, 都是远程登录的客户端, 只不过ssh更安全(加密方式), telnet是明文传输.ssh IP地址ssh 域名具体可以查看man ssh或者ssh --help查看一下
就是修改/etc/ssh/sshd_config //注意,容易和ssh_config相混合
步骤一
[root@localhost ssh]# more sshd_config
# $OpenBSD: sshd_config,v 1.69 2004/05/23 23:59:53 dtucker Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.
#Port 22 //先把22注释掉
port 2501 //添加一个新的端口
#Protocol 2,1
步骤二
[root@localhost ~]# service sshd restart
Stopping sshd:[ OK ]
Starting sshd:[ OK ]
步骤三
用SecureCRT测试一下
全部回答
linux下修改端口号只需要更改相应服务的配置文件即可,下面以修改linux 的ssh服务的默认端口号22为例(把22修改我2501): 1、修改/etc/ssh/sshd_config配置文件 [root@localhost ssh]# more sshd_config # $openbsd: sshd_config,v 1.69 2004/05/23 23:59:53 dtucker exp $ # this is the sshd server system-wide configuration file. see # sshd_config(5) for more information. # this sshd was compiled with path=/usr/local/bin:/bin:/usr/bin # the strategy used for options in the default sshd_config shipped with # openssh is to specify options with their default value where # possible, but leave them commented. uncommented options change a # default value. #port 22 //先把22注释掉 port 2501 //添加一个新的端口 #protocol 2,1 2、重启ssh服务让修改的端口号生效
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
电信号码用身份证绑定不用了不去注销会有影响
中国周围所有的国家名字
我想2017年2月24号搬家入宅是吉日吗大师指点
你好,请问琦星电控上显示E-11是什么意思?怎
恋爱中的我为什么感觉很痛苦啊?谁能告诉我为
警校研究生
韦少单挑赛挑战乔丹 新科三双王有几成胜算
杨庄集邮电支局怎么去啊,有事要去办理
关于PSP记忆棒和内存卡的问题,哪个更好用
成都同润堂大药房连锁温江洪欣药房我想知道这
我想要《足球财富:欧赔与亚盘足彩研究》最后
为什么皮肤老过敏
碱石灰可以做哪些气体的干燥剂
仿写句子 我毎天伺候小猫就像什么
扬州完美日用品有限公司地址有知道的么?有点
推荐资讯
在手机扣扣上怎么删好友 找不到了
BJD 话说除了官妆哪里还能画好一点的面妆呢?
org.apache.cxf.interceptor.loggingininterc
什么是多轴应力
请教水泥厂的DMC和HMC除尘器之间有什么区别
NBA凯里欧文是不是赛季报销?
这个html网页的javascript点击事件怎么写?
沥青混凝土中AC-13与AC-13C有什么区别
亚太首饰模具地址有知道的么?有点事想过去
京鼎熟食鲍店煤矿店这个地址在什么地方,我要
瑞金小百货店在哪里啊,我有事要去这个地方
新民东街/新民东街南一巷(路口)在什么地方啊
手机登qq时,显示手机磁盘不足,清理后重新登
刺客的套装怎么选啊?