SSH的调试分析(一)

本文发布时间: 2019-Mar-21
前面讲述了SSH的性能调优http:///os/html/201209/3323.html,那么当ssh连接出现问题时,我们需要通过查看调试信息来定位这些错误。一般我们使用v选项,来查看调试信息,帮助我们分析。没有SSH客户端调试的信息如下:localhost$ ssh -l yeslab remotehost.example.comwarning: Connecting to remotehost.example.com failed: No address associated to the name已经有ssh调试的信息如下:locaclhost$ ssh -v -l yeslab remotehost.example.comdebug: SshConfig/sshconfig.c:2838/ssh2_parse_config_ext:Metaconfig parsing stopped at line 3.debug: SshConfig/sshconfig.c:637/ssh_config_set_param_verbose:Setting variable ?VerboseMode‘ to ?FALSE‘.debug: SshConfig/sshconfig.c:3130/ssh_config_read_file_ext: Read 17params from config file.debug: Ssh2/ssh2.c:1707/main: User config file not found, usingdefaults. (Looked for ?/home/yeslab/.ssh2/ssh2_config‘)debug: Connecting to remotehost.example.com, port 22… (SOCKS not used)warning: Connecting to remotehost.example.com failed: No addressassociated to the name注:很多命令中,v选项对应的英文是 verbose,也就是详细的信息的意思,此处所使用的是小写的v。我们也可以使用一个更为强大的实用程序screen。流行的Linux发行版通常会自带screen实用程序,如果没有的话,可以从GNU screen的官方网站下载。[root@desktop ~]# rpm -qa|grep screen xscreensaver-4.18-5.rhel4.11 screen-4.0.2-5简单来说,Screen是一个可以在多个进程之间多路复用一个物理终端的窗口管理器。Screen中有会话的概念,用户可以在一个screen会话中创建多个screen窗口,在每一个screen窗口中就像操作一个真实的telnet/SSH连接窗口那样。下节我们就会介绍一下软件的详细使用。


(以上内容不代表本站观点。)
---------------------------------
本网站以及域名有仲裁协议。
本網站以及域名有仲裁協議。

2024-Mar-04 02:08pm
栏目列表