A. 怎麼在linux裡面修改埠號
Linux下修改埠號只需要更改相應服務的配置文件即可,下面以修改linux 的SSH服務的默認埠號22為例(把22修改我2501):
1、修改/etc/ssh/sshd_config配置文件
[root@localhostssh]#moresshd_config
#$OpenBSD:sshd_config,v1.692004/05/2323:59:53dtuckerExp$
#Thisisthesshdserversystem-wideconfigurationfile.See
#sshd_config(5)formoreinformation.
#ThissshdwascompiledwithPATH=/usr/local/bin:/bin:/usr/bin
#_configshippedwith
#
#possible,butleavethemcommented.Uncommentedoptionschangea
#defaultvalue.
#Port22//先把22注釋掉
port2501//添加一個新的埠
#Protocol2,1
2、重啟ssh服務讓修改的埠號生效
[root@localhost~]#servicesshdrestart
Stoppingsshd:[OK]
Startingsshd:[OK]
B. 如何修改linux 的SSH的默認埠號
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服務讓修改的埠號生效
[root@localhost ~]# service sshd restart
Stopping sshd:[ OK ]
Starting sshd:[ OK ]
C. 求Linux相關英文文獻,最好有中文翻譯的
去網路找啊