導航:首頁 > 編程系統 > linuxshipped

linuxshipped

發布時間:2021-03-05 17:04:19

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相關英文文獻,最好有中文翻譯的

網路找啊

閱讀全文

與linuxshipped相關的資料

熱點內容
低頻電磁模擬app哪個好 瀏覽:25
在收集數據時如何處理錯誤數據 瀏覽:662
有哪些網購app可以分期 瀏覽:794
課中壞事裡面的黃頭發女演員是誰 瀏覽:312
台灣電影懷電影 瀏覽:275
怎麼辦理微信pos機 瀏覽:893
男男國外大尺度電影 瀏覽:197
在哪裡可以學習漢語編程 瀏覽:607
帶肉戲的穿越各個世界小說 瀏覽:194
疾速追殺1在線免費完整版 瀏覽:254
小說小喜全文閱讀 瀏覽:546
辛仁導電影 瀏覽:344
二龍湖浩哥去香港是哪部電影 瀏覽:296
ie9調試js 瀏覽:521
如何利用大數據創造幸福生活 瀏覽:168
不用下載在線看電影 瀏覽:479
女演員 虹 瀏覽:90
qq空間文件打不開怎麼辦 瀏覽:267
linux查看文件所有用戶許可權 瀏覽:462
和天使有關的電影 瀏覽:54

友情鏈接