hexo/source/_posts/centos7_ssh连接慢的解决方法.md

35 lines
550 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
layout: post
cid: 342
title: centos7 ssh连接慢的解决方法
slug: solution-to-slow-ssh-connection-of-centos-7
date: '2022/08/12 16:52:00'
updated: '2022/08/12 16:55:00'
status: publish
author: 老孙
categories: 分享
tags:
- centos
dtMode: 0
radioPostImg: none
abbrlink: 58592
icon:
thumbnail:
---
```bash
vim /etc/ssh/sshd_config
```
按i编辑插入
找到
`UseDNS`去掉前面的#号 改为 no
`GSSAPIAuthentication` 改为 no
然后`wq `保存退出
```bash
systemctl restart sshd
```
重启