Ubuntu ssh service

Source: Internet
Author: User

Enabling the ssh service in ubuntu is a simple task. First install sshserver: sudo apt-get install openssh-server. Generally, the service process is automatically started after installation. You can check whether the process is Enabled: ps-A | grep ssh. If the sshd process exists, this indicates that the service has been enabled. Generally, the default port is 22. in linux, everything can be configured by the user, not to mention the ssh port, directly use the root permission to open the/etc/ssh/sshd_config file and modify the port information. Then restart the service and run the following command to restart the service: sudo/etc/init. d/ssh restart; another important operation is to shut down the service. Otherwise, it will always be open for access. Haha, the command is similar to restart: sudo/etc/init. d/ssh stop; if there is a command to disable the service, of course, there is a command to enable the Service, otherwise it will not be enabled after the command is disabled, so: sudo/etc/init. after configuring d/ssh start, you can test whether the system can be accessed. First, check the ip address of the current system. if I believe the config command will be okay. After finding the ip address, for example, accessing in windows, downloading a putty, and then entering the ip address and port, the port is clearly stated above, the default value is 22. You can modify it by yourself. The connection method is ssh. After you select the connection method, the user name and password will be required. For this user name, check whoami, what a proper name is: Who am I? Remember the password. This completes the windows ssh connection to ubuntu.

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.