比较来自世界各地的卖家的域名和 IT 服务价格
ssh

尝试连接到服务器时,该过程是ZOMBIED,然后消失

在我的服务器上有问题:

经常 ssh 试图连接时冻结

有时其他命令占用太多时间,例如

su - someuser

当我重新启动恶魔时,他很快就听了 127.0.0.1, 但要听取我们的IP地址 VPN 很多时间需要

当我尝试编辑配置文件时 sshd, 所需时间,以便文件显示在 vi

我试图跑 ssh 更详细地看到它在以下消息后冻结:

debug1: 互动会议的入口。

当他冻结和我已经在服务器上有一次会话时,我可以看到进程列表并查看以下内容:

root     19835  0.0  0.0  90308  3948 ?        Ss   10:25   0:00  \_ sshd: root [priv]   
sshd 19836 0.0 0.0 0 0 ? Z 10:25 0:00 \_ [sshd] <defunct>

当我终于进入系统时,不存在的进程消失,并与此过程一起消失 [priv] 有一个正常的后代:

root     19835  0.0  0.0  91524  4132 ?        Ss   10:25   0:00  \_ sshd: root@pts/3    
root 20898 3.3 0.1 24244 5264 pts/3 Ss+ 10:27 0:00 \_ -bash

这就是我在消息挂起之后获得的:

debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x10
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug1: Sending environment.
debug3: Ignored env IM_CONFIG_PHASE
debug3: Ignored env GNOME_KEYRING_CONTROL
debug3: Ignored env KONSOLE_DBUS_WINDOW
debug3: Ignored env SESSIONTYPE
debug3: Ignored env XCURSOR_THEME
debug3: Ignored env GTK_MODULES
debug3: Ignored env SESSION
debug3: Ignored env DEFAULTS_PATH
debug3: Ignored env XDG_DATA_DIRS
debug3: Ignored env XDG_SESSION_ID
debug3: Ignored env XDG_GREETER_DATA_DIR
debug3: Ignored env GPG_AGENT_INFO
debug3: Ignored env KDE_SESSION_UID
debug3: Ignored env PATH
debug3: Ignored env GNOME_KEYRING_PID
debug3: Ignored env KDE_FULL_SESSION
debug3: Ignored env CLUTTER_IM_MODULE
debug3: Ignored env DBUS_SESSION_BUS_ADDRESS
debug3: Ignored env UPSTART_INSTANCE
debug3: Ignored env XDG_VTNR
debug3: Ignored env QT_PLUGIN_PATH
debug3: Ignored env SELINUX_INIT
debug3: Ignored env LANGUAGE
debug3: Ignored env GDM_LANG
debug3: Ignored env GS_LIB
debug3: Ignored env SHELL_SESSION_ID
debug3: Ignored env XAUTHORITY
debug3: Ignored env TEXTDOMAIN
debug3: Ignored env DESKTOP_SESSION
debug3: Ignored env GTK_IM_MODULE
debug3: Ignored env KDE_MULTIHEAD
debug1: Sending env LANG = fr_FR.UTF-8
debug2: channel 0: request env confirm 0
debug3: Ignored env SSH_AGENT_PID
debug3: Ignored env SESSION_MANAGER
debug3: Ignored env SPEECHD_PORT
debug3: Ignored env KONSOLE_DBUS_SERVICE
debug3: Ignored env LOGNAME
debug3: Ignored env PWD
debug3: Ignored env SSH_AUTH_SOCK
debug3: Ignored env KONSOLE_PROFILE_NAME
debug3: Ignored env HOME
debug3: Ignored env GTK2_RC_FILES
debug3: Ignored env XDG_SESSION_PATH
debug3: Ignored env XDG_SEAT
debug3: Ignored env UPSTART_JOB
debug3: Ignored env QT4_IM_MODULE
debug3: Ignored env XMODIFIERS
debug3: Ignored env MANDATORY_PATH
debug3: Ignored env QT_IM_MODULE
debug3: Ignored env WINDOWID
debug3: Ignored env KDE_SESSION_VERSION
debug3: Ignored env COLORFGBG
debug3: Ignored env DISPLAY
debug3: Ignored env KONSOLE_DBUS_SESSION
debug3: Ignored env XDG_CURRENT_DESKTOP
debug3: Ignored env XDG_CONFIG_DIRS
debug3: Ignored env UPSTART_SESSION
debug3: Ignored env SHELL
debug3: Ignored env JOB
debug3: Ignored env TEXTDOMAINDIR
debug3: Ignored env SSH_AGENT_LAUNCHER
debug3: Ignored env XDG_RUNTIME_DIR
debug3: Ignored env NODE_PATH
debug3: Ignored env QT_QPA_PLATFORMTHEME
debug3: Ignored env GTK_RC_FILES
debug3: Ignored env PROFILEHOME
debug3: Ignored env XDG_SEAT_PATH
debug3: Ignored env TERM
debug3: Ignored env INSTANCE
debug3: Ignored env GDMSESSION
debug3: Ignored env USER
debug3: Ignored env UPSTART_EVENTS
debug3: Ignored env SHLVL
debug3: Ignored env OLDPWD
debug3: Ignored env GREP_OPTIONS
debug3: Ignored env GREP_COLOR
debug3: Ignored env PAGER
debug3: Ignored env LESS
debug1: Sending env LC_CTYPE = fr_FR.UTF-8
debug2: channel 0: request env confirm 0
debug3: Ignored env LSCOLORS
debug3: Ignored env EDITOR
debug3: Ignored env OLDHISTFILE
debug3: Ignored env OLDPATH
debug3: Ignored env rvm_prefix
debug3: Ignored env rvm_path
debug3: Ignored env __array_start
debug3: Ignored env rvm_uname
debug3: Ignored env rvm_tar
debug3: Ignored env rvm_bin_path
debug3: Ignored env escape_flag
debug3: Ignored env _first
debug3: Ignored env _second
debug3: Ignored env rvm_version
debug3: Ignored env _
debug2: channel 0: request shell confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0

可能是什么问题呢 ?

刷新

输出 strace su toto 以下后冻结:

socket(PF_FILE, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0
sendto(3, "&lt;86&gt;Jul 25 11:19:39 su[28347]: S"..., 61, MSG_NOSIGNAL, NULL, 0) = 61
sendto(3, "&lt;86&gt;Jul 25 11:20:14 su[28347]: +"..., 53, MSG_NOSIGNAL, NULL, 0

</defunct>
已邀请:

詹大官人

赞同来自:

找到解决方案,我们对不存在的远程对象执行输入。

要回复问题请先登录注册