Enable the ssh service on the Linux server for ssh remote login !, Linuxssh
I recently logged on to linux Using ssh to log on to linux!
First, go to the/etc directory and store some configuration files, such as passwd, In the/etc directory. to use ssh for remote login, you need to configure the configuration information in the/etc/ssh/sshd_config file, use vim to edit it, and enter vim/etc/ssh/sshd_config in command line mode, press "I" to enter the editing status. In the file, find and change it to PasswordAuthentication yes and PermitRootLogin yes,
After the modification, press "esc" to exit, and press ": wq" to save and exit, or press ": x" to save and exit directly. (Note: Here, x is lowercase x, uppercase X encrypts the file content, so pay attention to it when using it ),
After exiting the editing mode, return to the last line. Enter sevice ssh start/stop/restart/status, start/stop/restart/status, and select start to start the ssh service.
In this case, you can check whether the ssh status is running. You can use ssh to log on remotely.
Use the "ifconfig" command to Query IP addresses
When using ssh to log on, enter the host (linux IP address), account, and password to log on!
For details about how to log on to the server through ssh, refer to the next article "Using ssh to remotely log on to the server !"
The general steps are as follows:
Location of the SSH service configuration file
/Etc/ssh/sshd_config
# Modify configuration
PasswordAuthentication yes
PermitRootLogin yes
# Start the SSH service
Sevice ssh start/stop/status