您现在的位置是:主页 > news > 重庆网站备案快/株洲seo推广

重庆网站备案快/株洲seo推广

admin2025/6/28 0:14:15news

简介重庆网站备案快,株洲seo推广,wordpress编码,wordpress目录seo找了网络上多个版本的教程都没生效,最后加了几个配置,也不确定是哪个配置导致的长连接。 估计是“Protocol 2” 大家可以直接使用该配置即可: vim /etc/ssh/sshd_config # 添加如下配置 # $OpenBSD: sshd_config,v 1.103 2018/04/0…

重庆网站备案快,株洲seo推广,wordpress编码,wordpress目录seo找了网络上多个版本的教程都没生效,最后加了几个配置,也不确定是哪个配置导致的长连接。 估计是“Protocol 2” 大家可以直接使用该配置即可: vim /etc/ssh/sshd_config # 添加如下配置 # $OpenBSD: sshd_config,v 1.103 2018/04/0…

找了网络上多个版本的教程都没生效,最后加了几个配置,也不确定是哪个配置导致的长连接。

估计是“Protocol 2”

大家可以直接使用该配置即可:

vim /etc/ssh/sshd_config
# 添加如下配置
#       $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.#Include /etc/ssh/sshd_config.d/*.confPort 22
Protocol 2
AddressFamily anyHostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_keyUsePrivilegeSeparation yes# Logging
SyslogFacility AUTH
LogLevel INFO# Authentication:LoginGraceTime 120
PermitRootLogin yes
StrictModes yes# To disable tunneled clear text passwords, change to no here!
PermitEmptyPasswords noChallengeResponseAuthentication no
UsePAM yesX11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yesPrintMotd no
PrintLastLog yes
TCPKeepAlive yes#Compression delayed
ClientAliveInterval 60
ClientAliveCountMax 3# no default banner path
#Banner none# Allow client to pass locale environment variables
AcceptEnv LANG LC_*# override default of no subsystems
Subsystem       sftp    /usr/lib/openssh/sftp-server
/etc/init.d/ssh restart

其他参考:

reference