Install and start SSHServer on Ubuntu Server

Source: Internet
Author: User
Installing OpenSSHServer in Ubuntu is very easy. You only need one command: sudoapt-getinstallopenssh-server. Later, Ubuntu automatically downloads and installs opensshserver, and solve all dependencies together. After completing this operation, you can find another computer and then use an SSH client (PuTTy is strongly recommended) to enter the IP address of your server. If

Installing OpenSSH Server in Ubuntu is very easy. Only one command is required:

Sudo apt-get install openssh-server

Later, Ubuntu automatically downloads and installs openssh server, and resolves all dependencies. After completing this operation, you can find another computer and then use an SSH client (PuTTy is strongly recommended) to enter the IP address of your server. If everything is normal, you can connect later. You can log on with the existing user name and password.

Run the following command on the Ubuntu terminal:

Ssh localhost

If the following error occurs, it is likely that the ssh-server has not been installed:

Ssh: connect to host localhost port 22: Connection refused

Install SSH-server:

Sudo apt-get update

Sudo apt-get install openssh-server openssh-client

Start SSH-Server

Sudo/etc/init. d/ssh start

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.