码迷,mamicode.com
首页 >  
搜索关键字:etc/ssh/sshd_config    ( 609个结果
linux ssh更换默认的22端口
1、修改配置文件:/etc/ssh/sshd_config 2、先将Port 22 前面的 # 号去掉,并另起一行。如定义SSH端口号为26611 ,则输入 3、修改完毕后,重启SSH服务,并退出当前连接的SSH端口。 ...
分类:系统相关   时间:2016-06-21 15:27:59    阅读次数:162
用ChrootDirectory限制SFTP登录的用户只能访问指定目录且不能进行ssh登录
创建不能ssh登录的用户sftpuser1,密码用于sftp登录: sudo adduser sftpuser1 --home /sftp/sftpuser1 --shell /bin/false sudo nano /etc/ssh/sshd_config (执行man sshd_config查看 ...
分类:其他好文   时间:2016-06-21 10:54:00    阅读次数:158
Ubuntu远程管理(xrdp设置)(含其他)
安装及设置xrdptouch~/installXrdp.sh cat>~/installXrdp.sh<<EOF #!/bin/bash echo"root:root123"|chpasswd sed-i"s,PermitRootLogin.*,PermitRootLoginyes,g"/etc/ssh/sshd_config servicesshrestart cp/etc/apt/sources.list/etc/apt/sources.list_ori sed-i"s,u..
分类:系统相关   时间:2016-06-15 00:15:20    阅读次数:593
CentOS 远程管理安全设置
1、修改ssh远程默认端口22假设远程端口要修改为10022,那么修改以下两个配置文件#vim/etc/ssh/ssh_config#vim/etc/ssh/sshd_config找到#Port22,在下面添加Port10022然后重启sshd#servicesshdrestart2、禁止root通过ssh远程登录#vim/etc/ssh/sshd_config找到PermitRootLogin,..
分类:其他好文   时间:2016-06-12 18:46:22    阅读次数:135
root账户不允许远程登陆
有时为了特殊需求,只允许普通账户登陆Linux,而不允许root账户登陆,而普通账户登陆后,然后再su到root下是可以的。打开sshd的配置文件vim/etc/ssh/sshd_config加入一行:PermitRootLoginno复制代码重启sshd服务:servicesshdrestart
分类:其他好文   时间:2016-06-12 16:59:29    阅读次数:245
root账户不能使用密码只能使用密钥远程登陆
打开sshd配置文件vim/etc/ssh/sshd_config在最后面增加一行:PermitRootLoginwithout-password保存配置文件后重启sshd服务servicesshdrestart
分类:其他好文   时间:2016-06-12 16:57:27    阅读次数:240
centos7.0 没有netstat 和 ifconfig命令问题
yum install wget 运行 yum install net-tools 就OK了 默认CentOS已经安装了OpenSSH,即使你是最小化安装也是如此。所以这里就不介绍OpenSSH的安装了。 SSH配置: 1、修改vi /etc/ssh/sshd_config,根据模板将要修改的参数注 ...
分类:Web程序   时间:2016-06-09 06:18:04    阅读次数:203
Linux:去除认证,加速 SSH登录
编辑配置文件 /etc/ssh/sshd_config vim /etc/ssh/sshd_config 找到 UseDNS选项,如果没有注释,将其注释 #UseDNS yes 添加 UseDNS no 找到 GSSAPIAuthentication选项,如果没有注释,将其注释 #GSSAPIAut ...
分类:系统相关   时间:2016-06-06 17:01:24    阅读次数:242
-bash: ulimit: open files: cannot modify limit: Operation not permitted
普通用户登录系统报错,提示: -bash: ulimit: open files: cannot modify limit: Operation not permitted. 处理方法: #vi /etc/ssh/sshd_config --使用root账号修改UseLoin 为yes UseLog ...
分类:其他好文   时间:2016-06-06 16:28:48    阅读次数:186
禁止root用户远程登录
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 ...
分类:其他好文   时间:2016-05-27 10:52:12    阅读次数:126
609条   上一页 1 ... 41 42 43 44 45 ... 61 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!