给远程服务器设置SSH Key免密码登录

最近新入手一台VPS,为了安全以及远程连接方便,设置成使用SSH Key免密码登录。作为非程序员IT小白,Google了不少教程,按自己的折腾过程,汇总成下面的步骤,作为以后再搞机的指南。 主要参考豆比根据地的教程。 1.远程服务器上生成密钥对 用SSH连接远程服务器后,执行以下命令: 1 2 ssh-keygen 终端中会出现提示: Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): #输入生成私钥文件位置 Created directory ‘/root/.ssh’. Enter passphrase (empty for no passphrase): #为私钥加密 Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. ...

2018年6月22日 · 4 分钟 · tsingk

ubuntu 中利用 typecho 搭建博客

作为一名 IT 外行,脑门一热买了个 VPS 打算自己搭建博客。由于购买的 VPS 配置低,搜索了一下发现用 typecho+sqlite3 比较节约资源。搭建博客的大致过程分为安装 Apache+Nginx+PHP 环境,以及 typecho 的安装设置,经历了几个坑,具体步骤如下: 安装 Apache+Nginx+PHP 环境 VPS 系统是 ubuntu 16.04,使用 OneinStack 脚本安装,连接上 VPS 后执行一下操作: apt-get update -y apt-get -y install wget screen curl python wget http://mirrors.linuxeye.com/oneinstack.tar.gz tar xzf oneinstack.tar.gz cd oneinstack ./install.sh 在终端中的提示下选择安装 Nginx,Apache2.4 和 PHP7.0,其他选项都选否。全部选择完成后,脚本会自动开始下载安装所选的软件包。大概二十分钟后安装完成,提示重启 VPS。 ...

2017年5月21日 · 2 分钟 · tsingk