Linux记录
来源:互联网 发布:linux mysql开机自启 编辑:程序博客网 时间:2024/06/05 20:52
为了系统的安全性,有时需要修改ssh的默认端口。
修改方法如下:
vim /etc/ssh/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 //以前这个前面是有 # 号的
Port 8284
#Protocol 2,1
#ListenAddress 0.0.0.0
#ListenAddress ::
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
重启sshd服务
/etc/init.d/sshd restart
阅读全文
0 0
- Linux记录
- Linux 记录
- linux记录
- linux记录
- Linux记录
- linux 记录
- Linux记录
- linux 记录
- Linux记录
- Linux记录
- linux内核阅读记录
- 记录一个linux命令
- linux学习记录
- linux使用记录
- linux 脚本 学习记录
- linux 脚本-学习记录
- ao Linux 记录日志
- Linux 学习记录
- BTree和B+Tree详解
- js 判断 移动端 页面跳转
- idea 破解
- C#下创建GUI展开动画效果
- 安卓打包混淆流程思考
- Linux记录
- Centos6.8 离线安装nginx
- 查找——顺序查找
- hdu1565 轮廓线动态规划
- easyui的tabs标签不重复打开的方法
- IntelliJ IDEA 专业版注册破解
- [LeetCode]44. Wildcard Matching 深入浅出讲解和代码示例
- Die.Welt.Kompakt.
- pip 安装 beautifulsoup4