สิ่งล่าสุดที่ฉันจำได้คือเปลี่ยน ulimit memlock ที่นิ่มและแข็งเป็นไม่ จำกัด ตอนนี้ฉันไม่สามารถ ssh เข้าไปในเครื่องได้
นี่คือบันทึก 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
ฉันได้ลองทำสิ่งต่อไปนี้ไม่สำเร็จจนถึงตอนนี้ก่อนโพสต์ที่นี่:
พยายามเข้าสู่ระบบ norc noprofile โดย
ssh user@host 'bash --noprofile'บังคับให้ tty โดย
ssh -t user@hostย้าย bash_profile พยายาม sshing
ssh user@hostโดยการเปลี่ยนชื่อ
limits.confไฟล์ด้วยความหวังว่าจะไม่สามารถอ่านได้รีสตาร์ทเซิร์ฟเวอร์ ssh
เรียกใช้คำสั่งผ่านทาง
knifeเป็น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'
ฉันไม่แน่ใจว่าวิธีการใช้คำสั่งแบบอินไลน์นี้ssh user@host "some_command"ทำงานได้หรือไม่เพราะฉันไม่สามารถรับรายชื่อไดเรกทอรีอย่างง่ายได้ ฉันพยายามรีบูตเครื่องด้วยssh user@host 'reboot'แต่ไม่คิดว่าคำสั่งจะถูกดำเนินการ ฉันรีสตาร์ทเครื่องจาก AWS ด้วย แต่ไม่ประสบความสำเร็จ
มันเป็นสาเหตุที่หายไปพยายามที่จะ ssh? มีวิธีใดบ้างที่ฉันจะสามารถ ssh เข้าสู่เซิร์ฟเวอร์?
SSH_FXP_INITรหัสข้อผิดพลาด
-vตัวเลือกหรือเพิ่มเติม-vvตัวเลือกในการมากยิ่งขึ้นแล้ว-vvvตัวเลือก ssh -vvv user@hostเช่น นั่นอาจทำให้คุณมีความคิดที่ดีขึ้นว่ามีอะไรผิดพลาดเกิดขึ้น