1、修改配置文件:/etc/ssh/sshd_config 2、先将Port 22 前面的 # 号去掉,并另起一行。如定义SSH端口号为26611 ,则输入 3、修改完毕后,重启SSH服务,并退出当前连接的SSH端口。 ...
分类:
系统相关 时间:
2016-06-21 15:27:59
阅读次数:
162
创建不能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
安装及设置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
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
有时为了特殊需求,只允许普通账户登陆Linux,而不允许root账户登陆,而普通账户登陆后,然后再su到root下是可以的。打开sshd的配置文件vim/etc/ssh/sshd_config加入一行:PermitRootLoginno复制代码重启sshd服务:servicesshdrestart
分类:
其他好文 时间:
2016-06-12 16:59:29
阅读次数:
245
打开sshd配置文件vim/etc/ssh/sshd_config在最后面增加一行:PermitRootLoginwithout-password保存配置文件后重启sshd服务servicesshdrestart
分类:
其他好文 时间:
2016-06-12 16:57:27
阅读次数:
240
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
编辑配置文件 /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. 处理方法: #vi /etc/ssh/sshd_config --使用root账号修改UseLoin 为yes UseLog ...
分类:
其他好文 时间:
2016-06-06 16:28:48
阅读次数:
186
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