hp ux链接缓慢

举报
snowofsummer 发表于 2021/07/28 18:52:17 2021/07/28
【摘要】 修改sshd_config配置文件:相关参数:UseDNS noPrintLastLog no配置文件修改和修改信息:# cd /opt/ssh/etc/# lsmoduli ssh_host_dsa_key ssh_host_ecdsa_key ssh_host_key ssh_host_rsa_key ...

修改sshd_config配置文件:

相关参数:

UseDNS no
PrintLastLog no

配置文件修改和修改信息:

# cd /opt/ssh/etc/
# ls
moduli                  ssh_host_dsa_key        ssh_host_ecdsa_key      ssh_host_key            ssh_host_rsa_key        ssh_prng_cmds
ssh_config              ssh_host_dsa_key.pub    ssh_host_ecdsa_key.pub  ssh_host_key.pub        ssh_host_rsa_key.pub    sshd_config
# vi sshd_config
"sshd_config" [Read only] 176 lines, 4739 characters 
#       $OpenBSD: sshd_config,v 2.20 2009/02/26 $

# 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:/opt/ssh/bin

# 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 change a
# default value.


#Port 22
Protocol 2,1
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /opt/ssh/etc/ssh_host_key
# HostKeys for protocol version 2
#HostKey /opt/ssh/etc/ssh_host_rsa_key
#HostKey /opt/ssh/etc/ssh_host_dsa_key
#HostKey /opt/ssh/etc/ssh_host_ecdsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 1024

# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
/Print
# Depending on your PAM configuration, this may bypass the setting of
# PasswordAuthentication, PermitEmptyPasswords, and
# "PermitRootLogin without-password". If you just want the PAM account and
# session checks to run without PAM authentication, then enable this but set
# ChallengeResponseAuthentication=no
UsePAM yes

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
PrintLastLog no
#TCPKeepAlive yes
#UseLogin no
#EnforceSecureTTY no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no
#ChrootDirectory none

"sshd_config" 176 lines, 4737 characters 

重启ssh服务:

# cd /sbin/init.d
# ls -l secsh
-r-xr-xr-x   1 root       sys           2899 Aug 16  2014 secsh
# ./secsh restart
usage: ./secsh {start|stop|start_msg|stop_msg}
# ./secsh stop
HP-UX Secure Shell stopped
# ./secsh start
HP-UX Secure Shell started

【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。