Linux builds NAS from scratch & Time Machine (i)

Source: Internet
Author: User

The entire process takes fedora 20 as an example.

First install & Configure SSH,SSH After the installation is complete, the server can throw aside the tube.

SSH is using the OpenSSH

  1. Determine if OpenSSH is already installed Rpm-qa | grep openssh-server

    If there is a display similar to openssh-server-6.4p1-4.fc20.x86_64 that has been installed

    Run Yum install openssh-server for installation if not installed

  2. SSH config file default in/etc/ssh/sshd_config, default parameters are used temporarily, no modification is required

Service sshd Status View SSH state

Service sshd stop ssh (Modified SSH config file requires SSH service restart)

Service sshd start to open SSH

SSH is installed & configured if SSH status is active

There might be friends like me. Using a laptop as a test site, how can I avoid the case where the SSH service hangs under the screen lid only in the case of a terminal?

Terminal of course also has power management, with VI open/etc/systemd/logind.conf

Find "#HandleLidSwitch" this line will comment out and change the value to ignore

Then reboot the whole machine so the laptop screen lid will not hang up the SSH service!

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.