惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
小众软件
小众软件
MongoDB | Blog
MongoDB | Blog
Jina AI
Jina AI
G
Google Developers Blog
H
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
爱范儿
爱范儿
B
Blog
云风的 BLOG
云风的 BLOG
H
Hackread – Cybersecurity News, Data Breaches, AI and More
GbyAI
GbyAI
博客园 - 叶小钗
aimingoo的专栏
aimingoo的专栏
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
博客园_首页
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence

博客园 - hiaming

doclever 5.5.1 安装及升级【原创】 SPARROW-JS 从0开始写 0依赖,原生JS框架 Sparrow算法篇 从日期取交集到思维模式-2 高性能轻量级markdown 解析器java 版sparrow-markdown Sparrow 算法篇 由日期取交集到思维模式 自己动手写mvc框架SPARROW MVC REDIS客户端封装实践2 SPARROW 框架redis客户端封装实践 SPARROW架构介绍 Sparrow 框架设计哲学 陌院俅颗难炎先当粮澜 openresty在centos/redhat6.7上部署 tomcat 日志那点事 Redhat6.7 切换Centos yum源 Quartz corn时间表达式(转) Jquery控制滚动Div 滚动条事件 fastjson排序 Map多层嵌套转换自动排序问题终极解决方案 Spring 外部注入Bean (JAX-WS) Redhat Linux6.5 开启VNC 远程桌面
SSH,如何恢复通过输入密码的方式来登录服务器
hiaming · 2015-01-21 · via 博客园 - hiaming

转:http://www.auvps.com/post_612.html

SSH,如何恢复通过输入密码的方式来登录服务器

为了服务器的安全,像日本的名前vps,SSH的远程登录,就采取只能通过密钥key来登录服务器。密钥登录安全是安全,但是一旦密钥(key)没在身边的话,就痛苦了。要方便,不要安全,如何设置ssh通过密码登录呢?

1,先登录后台,通过页面vnc登录上VPS

ssh

2,vim /etc/ssh/sshd_config 文件,进行如下设置:

root用户通过 SSH 登录:

找到 PermitRootLogin yes   把## 删除

设置为 
PermitRootLogin yes

PermitRootLogin yes

3,文件浏览到最底部,启用密码登录:

找到  
PasswordAuthentication no 
改为 
PasswordAuthentication yes

PasswordAuthentication yes

4,重启sshd服务。然后就可以用putty等工具远程连接了。

service sshd restart

service sshd restart