我记得最近的事情是将软性和硬性memlock ulimit更改为unlimited。现在,我无法进入机器。
这是ssh日志。
Authenticated to IP ([IP]:22).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug1: Sending environment.
debug1: Sending env LC_CTYPE =
debug2: channel 0: request env confirm 0
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
Last login: Wed Aug 6 07:18:07 2014 from IP-SOURCE
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug2: channel 0: rcvd eow
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug2: channel 0: rcvd close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
Connection to IP closed.
Transferred: sent 4256, received 2504 bytes, in 0.4 seconds
Bytes per second: sent 9616.9, received 5658.0
debug1: Exit status 254
到目前为止,在此发布之前,我尚未尝试以下操作:
尝试通过noc noprofile登录
ssh user@host 'bash --noprofile'
强制tty
ssh -t user@host
移动了bash_profile。尝试过用sshing
ssh user@host
。重命名
limits.conf
文件,希望它不会被读取。重新启动ssh服务器。
通过
knife
as 运行命令knife ssh "name:server" "come_command"
ssh user@host 'ulimit -l 64'
,ssh user@host 'ulimit -S -l 64'
,ssh user@host 'ulimit -H -l 64'
,ssh user@host 'exec ulimit -H -l 64'
我不确定以这种方式运行inline:命令是否可行ssh user@host "some_command"
,因为我无法获得简单的目录清单。我也尝试过重启,ssh user@host 'reboot'
但不认为命令已执行。我也从AWS重新启动了机器,但未成功。
尝试ssh是一个迷失的原因吗?有什么办法可以让我进入服务器?
SSH_FXP_INIT
错误代码。
-v
选项获得更多详细的输出,或者使用-vv
选项获得更多,然后获得更多-vvv
选择。例如ssh -vvv user@host
。这可以让您更好地了解问题出在哪里。