惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
V
Visual Studio Blog
博客园 - 叶小钗
A
About on SuperTechFans
Last Week in AI
Last Week in AI
量子位
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MongoDB | Blog
MongoDB | Blog
T
The Blog of Author Tim Ferriss
Vercel News
Vercel News
博客园 - 司徒正美
博客园 - Franky
博客园 - 【当耐特】
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
J
Java Code Geeks

博客园 - wenanry

让免费游戏带来回报的15种方法 乐趣是核心 devenv.exe - 系统错误无法启动此程序,因为计算机中丢失 MSVCR100.dll。尝试重新安装该程序以解决此问题。【解决办法】 Ubuntu下的PHP开发环境架设 Dpkg 常用指令操作快速参考 WineQQ 最新解决方案:WineQQ2012 Beta2 互联网创业降级论 consistent hashing in C# linux redhat Centos debian 破解root 密码 “Give root password for maintenance” Linux 脚本编写基础 linux一些基本命令以及初级网络配置 Nginx中URL不区分大小写 Nginx启动出错 error while loading shared libraries: 安装Nginx时报错 the HTTP cache module requires md5 functions pcre-8.20编译安装出错[pcrecpp.lo] Error 1 使用Tomcat配置域名 yum升级提示TypeError: unsubscriptable object Redis相关指令文档 Redis配置文件参数说明 Redis在Windows+linux平台下的安装配置
linux修改ssh端口和禁止root远程登陆设置
wenanry · 2012-04-16 · via 博客园 - wenanry

linux修改ssh端口22
vi /etc/ssh/ssh_config
vi
/etc/ssh/sshd_config
然后修改为port 8888
以root身份service sshd restart
(redhat as3)
使用putty,端口8888
Linux下SSH默认的端口是22,为了安全考虑,现修改SSH的端口为1433,修改方法如下:
/usr/sbin/sshd -p 1433
为增强安全
先增加一个普通权限的用户:
#useradd
uploader
#passwd uploader
//设置密码
生产机器禁止ROOT远程SSH登录:
#vi
/etc/ssh/sshd_config

PermitRootLogin yes
改为
PermitRootLogin no
重启sshd服务
#service sshd restart
远程管理用普通用户uploader登录,然后用 su root
换到root用户拿到最高权限

posted @ 2012-04-16 22:53  wenanry  阅读(571)  评论(0)    收藏  举报