Ubuntu Install SSH Server

Source: Internet
Author: User
Tags ssh server

On Windows, an SSH client connection to Linux (Ubuntu) is used to better operate the Linux (Ubuntu) system in the virtual machine, but if the Linux (Ubuntu) system does not have an SSH server installed, it needs to be Install SSH server in (Ubuntu):

The installation method is as follows,

Input command: sudo apt-get install Openssh-server


Once the installation is successful, Linux (Ubuntu) can be accessed from Windows via SSH client.


SSH Client Connection process: This is a button on the SSH client interface, click on the need to enter the Linux IP (access mode in Linux to enter the ifconfig can know the IP address in Linux), in the input Linux username, direct connection, if successful You need to enter a password.


Auto Start (seems to have been run in the background by default after installation). \ Openssh-daemon You can also use Chkconfig to set up automatic startup. )
sudo vi ~/.BASHRC

Add to
/etc/init.d/ssh start

Modify Configuration
The Ssh-server configuration file is located in/Etc/ssh/sshd_config, where you can define the service port for SSH, the default port is 22, and you can define yourself as another port number, such as 222. Then restart the SSH service:

Sudo/etc/init.d/ssh restart

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.