In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
How to solve the problem that ssh is unable to log in and local remotely? I believe that many inexperienced people are at a loss about this. This article summarizes the solutions to the inability to connect to ssh. Through this article, I hope you can solve this problem.
Problem: ssh cannot log in remotely or locally, prompting you to report an error permission denied
Advanced single-user mode center os7 entry single user is in the startup item, press E to edit, join init=/bin/sh, press ctrl+x to enter
The default login single user is read only. The root partition mount-o remount,rw / needs to be remounted.
Check the log / var/log/secure for the following error
The keyword nofile is very important. Check the parameter setting of nofile.
Vi / etc/security/limits.conf
* soft nofile 102400
* hard nofile 102400
* soft nofile 102400
* hard nofile 102400
Then check the nr_open.
Cat / proc/sys/fs/nr_open
100000
This value is less than hard nofile and cannot be set like this normally. Check vi / etc/sysctl.conf.
Modify fs.nr_open greater than or equal to OK after hard nofile restart (you can also sysctl-w fs.nr_open=100000000)
PS: single user mode enter exec / sbin/init to exit single user mode
Problem solving: sysctl sets hard nofile with fs.nr_open greater than or equal to / etc/security/limits.conf
The solution described above is that ssh can not be connected, and the specific usage needs to be used by everyone through hands-on experiments. If you want to know more about it, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.