An error occurred while logging on to the Ubuntu VM remotely through ssh. configure the ssh service.

Source: Internet
Author: User
An error occurred while logging on to the Ubuntu VM remotely through ssh. the newly installed Ubuntu system of the ssh service cannot be connected through ssh because the ssh service is not enabled. You can remotely log on to the Ubuntu system on XP or other hosts only after the service is enabled. An error occurred while remotely logging on to the Ubuntu virtual machine through www.2cto. com1, check... ssh. the newly installed Ubuntu system of the ssh service cannot be connected through ssh because the ssh service is not enabled. You can remotely log on to the Ubuntu system on XP or other hosts only after the service is enabled. Www.2cto.com 1. check whether the ssh service has been installed and enabled. use this command: ps-e | grep ssh if only ssh-agent is available, it indicates that ssh-server has not been started or installed, because openssh-client is installed by default in Ubuntu. 2. install the software package and run sudo apt-get install openssh-server. if you did not see the ssh-agent in the previous step, it indicates that your system has not installed it, use apt-get install openssh-client to install openssh. Www.2cto.com 3. then confirm whether the sshserver is started. execute: ps-e | grep ssh will be automatically started after installation. if only ssh-agent is enabled, the ssh-server is not started yet, if you see sshd, it indicates that the ssh-server has been started. 4. the ssh-server configuration file is located in/etc/ssh/sshd_config, which can be viewed by cat. You can define the SSH service port. the default port is 22, or you can change it to another port. 5. to modify any ssh configuration, restart the SSH service and run the following command: sudo/etc/init. d/ssh resart.

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.