Enable the ssh service on the Linux server for ssh remote login !, Linuxssh

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.