search
Homephp教程php手册VPS初始配置+LNMP环境速配指南

VPS初始配置+LNMP环境速配指南

Jun 06, 2016 pm 08:13 PM
vpsguideFormatenvironmentConfigurationConfused

格式错乱,请移步Evernote原文 Linux账户和SSH配置 使用用户友好的添加账户程序 adduser: adduser master adduser 会交互式提示用户输入必要的信息完成账户创建工作。 添加sudoer权限: adduser master sudo 添加本地ssh配置~/.ssh/config: Host * ServerAl

格式错乱,请移步Evernote原文 Linux账户和SSH配置 使用用户友好的添加账户程序 adduser: adduser master adduser 会交互式提示用户输入必要的信息完成账户创建工作。 添加sudoer权限: adduser master sudo 添加本地ssh配置~/.ssh/config: Host * ServerAliveCountMax 20 ServerAliveInterval 240 Host cherrot HostName XXX.XXX.XXX.XXX Port 22 User master 添加ssh公钥认证 ssh-keygen -t rsa -C "email@example.com" #创建ssh密钥对,已有ssh密钥可忽略 #公钥默认保存于 ~/.ssh/id_rsa.pub ssh-copy-id -i ~/.ssh/id_rsa.pub cherrot #添加公钥到服务器 添加成功后重新连接,检查是否已经使用公钥认证(只要不再提示输入密码就可以登陆,那就表示公钥验证成功)。登录成功后,我们退出root登陆的session,下面的操作都基于master用户session。 这里我遇到一个小插曲,由于我更新了个人的ssh密钥对,导致ssh认证失败:Agent admitted failure to sign using the key。重新注册一下自己的私钥即可解决: ssh-add ~/.ssh/id_rsa 修改服务器sshd配置 /etc/ssh/sshd_config: 在修改服务器sshd配置前,需要确保使用个人密钥可以成功登录(不然当我们禁用密码登录,密钥登录又失败时,会死得很惨的……) […]
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use