Recently the fleet stopped, need to use the boss's server run the program, here first you have to add some user name on the boss's server. The new user name method is as follows:
1. Add user name using Useradd and specify User name directory, script interpreter, user name
sudo useradd-d/home/kx-m-S "/bin/bash" kx
Here the user name is KX, the user directory is:/home/kx, the script interpreter uses the/bin/bash
2. Modify the KX password
sudo passwd kx
3. For remote login, some configuration is required
sudo vi/etc/ssh/sshd_config
Add the last line of the file:
Allowusers KX
4. Restart SSH
Service sshd Restart
Once you've done this, you can log in remotely!
Here's how to sign in:
First, look at the IP address of the server, by entering the server terminal: Ifconfig, see inet addr: Corresponding to the server's IP address, such as the IP address is: 10.4.10.172
Then, open the terminal on your own computer, enter: SSH [email protected]
New user name on Linux server