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

35 lines
550 B
Markdown
Raw Normal View History

2023-10-03 11:14:36 +08:00
---
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
```
2023-09-25 15:58:56 +08:00
重启