Share ssh usage records in Ubuntu and ssh in ubuntu

Source: Internet
Author: User

Share ssh usage records in Ubuntu and ssh in ubuntu
This article is based on Ubuntu 16.04. 1. Install

Sudo apt-get install openssh-server
2. Configuration

The configuration file is located in/etc/ssh/sshd_config.

The default port is 22, which can be modified in the configuration file or added to allow ssh to listen to multiple ports.

3. firewall restrictions

If the client cannot be connected, the firewall may limit the port. You can run the following command to allow the firewall to pass through:

Sudo ufw allow 22/tcp
4. Start and Stop the ssh service
Sudo/etc/init. d/ssh startsudo/etc/init. d/ssh stopsudo/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.