The following problems occurred when logging on the server today:
Phenomenon
1. Remote CRT login
[root@fast70 ~]# vim /etc/security/limits.d/20-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 65535
root soft nproc unlimited
2. You can log in from other accounts. There is no problem to view the process and load on top
switch to root, and then switch to the fast account
[ root@fast70 ~]# su – fast
last login: May 12 00:32:45 CST 2020 from 192.168.0.9pts/2
Su: warning: cannot change to/home/fast Directory: there is no file or directory
Su: failed to execute/bin/bash: the resource is temporarily unavailable
Solution:
enter the root user
Modify /etc/security/limits.d/20-nproc.conf
expand the maximum value of * user connection (4096 -> 65535)
[root@fast70 ~]# vim /etc/security/limits.d/20-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 65535
root soft nproc unlimited
After modification, remote login and account switching can be used normally
however, I always feel that the root cause has not been found. It must be related to resource occupation, but I can’t find the specific location
I have contacted watchdog to kill the process several times before. I doubt that it is still a symptom rather than a root cause
Read More:
- [Solved] SSH Failed to Login Ubuntu Error: Socket error Event: 32 Error: 10053. Connection closing…Socket close.
- [Solved] SSH Startup Error: unable to load host key /etc/ssh/ssh_host_ed25519_key bad permissions
- [Solved] Linux error: SSH_exchange_identification: read: Connection reset by peer
- [Solved] paramiko.ssh_exception.SSHException: Error reading SSH protocol banner
- Prompt “entering emergency mode. Exit the shell to continue” if the Linux operating system does not start normally
- [Solved] Linux shell Script Error: syntax error near unexpected token `do
- Windows writes shell script and executes shell error [Solved]
- Vmware virtual Mechine connect VScode Error: channel 3: open failed: administratively prohibited: open failed
- [Solved] secureCRT Failed to Login Ubuntu20.04 Error: Key exchange failed
- [Solved] Failed to execute/bin/bash: resource temporarily unavailable
- [Solved] SSH connect error: Host key validation failed
- Login Error: token failed, reason: getaddrinfo EAI_AGAIN ks-apiserver (kubesphere is Installed)
- The resolution of Ubuntu 16.04 screen can’t be modified and the solution of circulating login
- [Solved] Login with Ubuntu graphical interface, error sorry, that didn’t work.please try again
- Linux Nagios failed to log in to internal server error (Fixed)
- [Solved] SSH WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
- [Linux] [Ubuntu] Error opening terminal: xterm-256color
- SSH Connect Service Error: Could not connect to ‘xxx.xxx.xx.xx‘ (port 22): Connection failed.
- [Solved] SSH connect Error: “WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED“
- Set the cursor of Ubuntu terminal to turn on automatic display