---
title: "Centos SSH"
author: "loquat"
date: "2014-03-18T10:58:53Z"
tags: []
categories: ["非技术"]
slug: "centos-ssh"
draft: false
lastmod: "2014-03-18T10:58:53Z"
id: 2032709
url: "https://loquat.iteye.com/blog/2032709"
---

1、修改sshd\_config文件，命令为：vi /etc/ssh/sshd\_config

 

 

 

 

 

2、将#PasswordAuthentication no的注释去掉，并且将NO修改为YES

 

 

 

 

 

4、验证SSH服务状态，命令为：/etc/init.d/sshd status

 

 

 

 

 

5、重新启动SSH服务，命令为：/etc/init.d/sshd restart