View the shells installed on the system: cat /etc/shells If there is no "/bin/rbash", add "/bin/rbash" to the /etc/shells file: echo "/bin/rbash" >> /etc/shells Add user tutorial: 1. Add a Linux user and grant the user a nologin shell permission. useradd username -s /sbin/nologin 2. Set the user password. passwd username 3. If you need to create this type of account frequently, create a script to facilitate your operation. After connecting to the vps with root privileges via ssh terminal, enter: vi ssh.sh !/bin/bash useradd $1 -s /bin/false Then press esc and enter :wq to save and exit edit mode. bash ssh.sh username password Username and password are the account and corresponding password you want to set, which can be replaced. Restricting users to single sign-on SSH First let /etc/pam.d/sshd connect to pam_limits.so References: |
<<: Web3k: $3/month/20GB storage/200GB traffic/unlimited cPanel accounts
>>: HostQala: $4.95/month/1 core/512M/10G/100G/1 IP/OpenVZ
Details: LOCVPS: 64 yuan/month/2GB memory/40GB SS...
MoeCloud, founded in August 2019, mainly provides...
Gestion DBI, a stable Canadian hosting provider, ...
1GServers, an American hosting provider, was esta...
SiberDC, a Turkish merchant with a tax number (61...
HKServerSolution, a Chinese hosting provider, fea...
Details: CorgiTech: $7/month/1GB RAM/30GB SSD/3TB...
mrVM, founded in early 2017, now has 2 special kv...
Tier, a long-established American hosting provide...
ControlVM, a Malaysian hosting provider, was foun...
Site5 hasn't launched a discount code for a l...
Alibaba Cloud International is Alibaba's prod...
ION is a new sub-brand of the established merchan...
We have scheduled a datacenter move on the 20th M...
1. Introduction to Aulerion VPS: Aulerion: You ge...