Quick Configuration Guide for VPS initial configuration + LNMP Environment

Source: Internet
Author: User
Tags vps
The format is not correct. Please go to Evernote's original Linux Account and SSH configuration and use the user-friendly add account program adduser: addusermasteradduser to interactively prompt the user to enter necessary information to complete account creation. Add sudoer permission: addusermastersudo add local ssh configuration ~. Sshconfig: Host * ServerAl

The format is not correct. Please go to Evernote's original Linux Account and SSH configuration and use the user-friendly add account program adduser: adduser master adduser to interactively prompt the user to enter necessary information to complete account creation. Add sudoer permission: adduser master sudo add local ssh configuration ~ /. Ssh/config: Host * ServerAl

The format is not correct. Please go to Evernote's original Linux Account and SSH configuration and use the user-friendly add account program adduser: adduser master adduser to interactively prompt the user to enter necessary information to complete account creation. Add sudoer permission: adduser master sudo add local ssh configuration ~ /. Ssh/config: Host * ServerAliveCountMax 20 ServerAliveInterval 240 Host cherrot HostName XXX. XXX. XXX. XXX Port 22 User master add ssh Public Key Authentication ssh-keygen-t rsa-C "email@example.com" # create an ssh key pair, the existing ssh key can be ignored # The Public Key is saved in ~ /. Ssh/id_rsa.pub ssh-copy-id-I ~ /. Ssh/id_rsa.pub cherrot # Add the public key to the server and connect again. Check whether the public key authentication is used. (If you do not need to enter the password, you can log on to the server. This indicates that the public key authentication is successful ). After successful logon, we exit the root login session. The following operations are based on the master user session. Here I encountered an episode, Because I updated my ssh key pair, resulting in ssh authentication failure: Agent admitted failure to sign using the key. Reregister your private key to solve the problem: ssh-add ~ /. Ssh/id_rsa modify server sshd configuration/etc/ssh/sshd_config, when the key logon fails, it will die badly ......) […]

Original article address: VPS initial configuration + LNMP environment quick Configuration Guide. Thank you for sharing it with me.

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.