好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > Linux服務器端SSH遠程連接速度慢的解決方法

Linux服務器端SSH遠程連接速度慢的解決方法

熱門標簽:優邁系統外呼顯示亂層 大連企業電銷機器人線路 電銷機器人錄音用什么軟件 岑溪電銷機器人 營銷智能外呼系統口碑推薦 上海電銷卡外呼系統供應商 怎么查看地圖標注的地點 義烏市400電話辦理 布谷電銷機器人價格

解決方法:

1、在ssh服務端上更改/etc/ssh/sshd_config文件中的配置為如下內容:

   

復制代碼
代碼如下:
UseDNS no
# GSSAPI options
GSSAPIAuthentication no

然后,執行/etc/init.d/sshd restart重啟sshd進程使上述配置生效,在連接一般就不慢了。

2、如果還慢的話,檢查ssh服務端上/etc/hosts文件中,127.0.0.1對應的主機名是否和 uname -n的結果一樣,或者把本機ip和hostname(uname -n結果)加入到/etc/hosts里。

   

復制代碼
代碼如下:
[root@C64 ~]# uname -n
C64
[root@C64 ~]# cat /etc/hosts
#modi by oldboy 11:12 2013/9/24
127.0.0.1 C64 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.0.18 C64
################

利用ssh -v的調試功能查找慢的原因

其實可以用下面的命令調試為什么慢的細節(學習這個思路很重要)。

   

復制代碼
代碼如下:
[root@C64 ~]# ssh -v root@10.0.0.19
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 10.0.0.19 [10.0.0.19] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
The authenticity of host '10.0.0.19 (10.0.0.19)' can't be established.
RSA key fingerprint is ca:18:42:76:0e:5a:1c:7d:ef:fc:24:75:80:11:ad:f9.
Are you sure you want to continue connecting (yes/no)? yes
=======>老男孩老師評:這里就是提示保存密鑰的交互提示。
Warning: Permanently added '10.0.0.19' (RSA) to the list of known hosts.
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: password
root@10.0.0.19's password:
=======>老男孩老師評:這里就是提示輸入密碼的交互提示。
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Last login: Tue Sep 24 10:30:02 2013 from 10.0.0.18

在遠程連接時如果慢就可以確定卡在哪了。

   

復制代碼
代碼如下:
[root@C64_A ~]# ssh -v oldboy@10.0.0.17
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 10.0.0.17 [10.0.0.17] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '10.0.0.17' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic

上述配置沒配就發現卡到gssapi這。就大概知道是gssapi的問題。

實際上在linux系統優化部分就應該優化SSH服務的此處。

標簽:來賓 遼陽 忻州 迪慶 荊州 阜陽 淄博 楚雄

巨人網絡通訊聲明:本文標題《Linux服務器端SSH遠程連接速度慢的解決方法》,本文關鍵詞  Linux,服務器,端,SSH,遠程,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《Linux服務器端SSH遠程連接速度慢的解決方法》相關的同類信息!
  • 本頁收集關于Linux服務器端SSH遠程連接速度慢的解決方法的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 亚洲欧美一区二区久久| 久久久久久久久久久久久久| 嗯~啊~轻????APP免费看| 懂色午夜精品久久久久久无码小说| 调教亲女乱h文| 3d梅麻吕放荡女教师在线| 交h粗暴调教小说免费阅读| juliaann与黑人| 欧美无遮挡大尺度视频| 久久这里只有精品23| ??国产微拍精品一区| 日本人XXXXMMM| 色男人天堂| 飞鸥不下小说| 乳罩脱了喂男人吃奶视频| 初女破初的视频全过程| 窝窝视频成人影院午夜在线| 把女人弄爽特黄a大片视频| 国产伦精品一区二区三区高清版禁| 东北男同志chinese1069| 国产精品午夜电影| 成人18??美女B站| 别揉我胸?啊?嗯~出水了| 日韩三级在线观看| 午夜欧美福利| 50大欧美爆乳艳星排名| 久久99国产精品久久久久久久| 香港三级午夜理伦三级三| 日本熟妇无码亚洲成aV人片榴莲| 欧美日韩精品一区二区另类| 美女扒开让我C??的视频| 青青国产在线观看| 91嫩草|国产丨精品入口| ririai66在线播放| 一级毛片免费不卡夜夜欢| 全黄裸片武则天一级在线 | 医院婬荡奶婬H肉承欲欢| 杨幂?丝袜脚?快夹好紧视频| 日本一道本高清免费| 91chinesevideo免费| 《朋友的妻子》HD|