zoukankan      html  css  js  c++  java
  • ssh远程优化

    关闭  GSSAPIAuthentication 是否允许使用基于 GSSAPI 的用户认证.仅用于SSH-2.

    sed -i 's#^GSSAPIAuthentication yes$#GSSAPIAuthentication no#' /etc/ssh/sshd_config

    关闭  UseDNS 指定定sshd是否应该对远程主机名进行反向解折,以检查此主机名是否与其IP地址真实对应.

    sed -i 's##UseDNS yes#UseDNS no#' /etc/ssh/sshd_config

    关闭  PermitRootLogin 是否允许root进行登陆.

    sed -i 's#^#PermitRootLogin yes$#PermitRootLogin no#' /etc/ssh/sshd_config

    开启  sshd_config中的Port 22

    sed -i 's##Port 22#Port 22#' /etc/ssh/sshd_config

    开启  ssh的gssapi认证#修改GSSAPICleanupCredentials yes为GSSAPICleanupCredentials yes

    sed -i 's/GSSAPICleanupCredentials no/GSSAPICleanupCredentials yes/' /etc/ssh/sshd_config

    优化以上几点以得到远程ssh登陆连接慢的问题。

  • 相关阅读:
    Move Zeroes
    Intersection of Two Arrays II
    Intersection of Two Arrays
    Create Maximum Number
    Leetcode version 2
    JDBC学习笔记
    九章算法基础班
    九章算法强化班
    LeetCode
    Amazon High Frequent 9 problems
  • 原文地址:https://www.cnblogs.com/liuqiang0/p/10071170.html
Copyright © 2011-2022 走看看