使用xshell无法连接远程centos服务器
2017-02-06 13:19
537 查看
原来一直是可以登录的,自从放假回来,再用xshell就登录不上了。网上搜了一大堆答案,好像都不行。
现象:1:日志内容(是我用root登录后查看的)Feb 6 11:07:19 hostA sshd[32309]: Accepted password for tomcat from 115.197.x.x port 27073 ssh2Feb 6 11:07:19 hostA sshd[32309]: pam_unix(sshd:session): session opened for user tomcat by (uid=0)Feb 6 11:07:19 hostA sshd[32311]: fatal: setresuid 500: Resource temporarily unavailableFeb 6 11:07:19 hostA sshd[32309]: pam_unix(sshd:session): session closed for user tomcat
2:xshell显示内容
Connecting to 114.215.x.x:22...Connection established.To escape to local shell, press Ctrl+Alt+].
Connection closed by foreign host.
Disconnected from remote host(testA) at 11:07:25.
Type `help' to learn how to use Xshell prompt.
3:使用root切换tomcat,报如下错误[root@hostA ~]# su tomcat
su: cannot set user id: Resource temporarily unavailable
===============================================================解决办法:1:vim /etc/security/limits.d/90-nproc.conf* soft nproc 65535 <---此数值该大点2:sysctl -p
另外:
nproc表示为用户进程数。
查看文件打开数:lsof |grep tomcat|wc -l
查看用户进程数:ps -U tomcat |wc -l
参考内容戳这里 <--
现象:1:日志内容(是我用root登录后查看的)Feb 6 11:07:19 hostA sshd[32309]: Accepted password for tomcat from 115.197.x.x port 27073 ssh2Feb 6 11:07:19 hostA sshd[32309]: pam_unix(sshd:session): session opened for user tomcat by (uid=0)Feb 6 11:07:19 hostA sshd[32311]: fatal: setresuid 500: Resource temporarily unavailableFeb 6 11:07:19 hostA sshd[32309]: pam_unix(sshd:session): session closed for user tomcat
2:xshell显示内容
Connecting to 114.215.x.x:22...Connection established.To escape to local shell, press Ctrl+Alt+].
Connection closed by foreign host.
Disconnected from remote host(testA) at 11:07:25.
Type `help' to learn how to use Xshell prompt.
3:使用root切换tomcat,报如下错误[root@hostA ~]# su tomcat
su: cannot set user id: Resource temporarily unavailable
===============================================================解决办法:1:vim /etc/security/limits.d/90-nproc.conf* soft nproc 65535 <---此数值该大点2:sysctl -p
另外:
nproc表示为用户进程数。
查看文件打开数:lsof |grep tomcat|wc -l
查看用户进程数:ps -U tomcat |wc -l
参考内容戳这里 <--
相关文章推荐
- 使用Xshell连接远程CentOS服务器
- (二)给Centos配置网络以及使用xshell远程连接Centos
- 使用远程连接工具Xshell连接服务器
- Windows下连接远程linux服务器的工具--- Xshell、WinSCP、Putty的对比使用
- 使用Putty无法远程登录,显示服务器拒绝连接
- Ubuntu下root账户无法使用xshell远程连接解决方法总结
- VisualVM 使用 service:jmx:rmi:///...无法连接linux远程服务器
- centos系统无法使用ssh远程工具连接方法
- 使用xshell连接vmware虚拟机安装的centos服务器
- 解决使用专有网络的阿里云服务器无法远程连接的问题
- vmvare虚拟机安装centos后网络没问题,但是使用XSHELL无法连接
- Xshell远程连接Linux时无法使用小键盘的解决方式
- 使用xshell连接服务器,数字键盘无法使用解决办法
- [服务器学习]二:使用Xshell 5通过SSH远程连接EC2实例
- 使用Putty无法远程登录,显示服务器拒绝连接
- CentOS 7 使用PuTTY、Xshell远程连接和密钥认证登录
- 如何使用VNC Viewer连接远程CentOS服务器
- 给Centos配置网络以及使用xshell远程连接Centos
- Navicat和MySQL的故事之“使用Navicat远程连接装在虚拟机centos上的mysql服务器问题总结”