linux登陆连接信息,成功登录后Linux关闭连接

用户在运行Debian 5.2.2的服务器上遇到一个问题,安装Apache, PHP和MySQL后,无法通过GUI或SSH远程登录,即使能成功连接也会在输入正确凭证后立即断开。在SSH中使用`ssh -vvv [server]`显示连接关闭,退出状态为254。用户可以在本地控制台上登录,但无法远程访问。
摘要由CSDN通过智能技术生成

我正在使用Debian 5.2.2在服务器上工作.我几乎没有

Linux的管理知识,我觉得搞砸了.我使用apt-get update和apt-get upgrade来获取最新信息然后我下载并安装了Apache,

PHP和MySQL.这些工具似乎工作正常,但现在我甚至无法通过本地控制台登录到服务器EXCEPT.如果我尝试通过GUI登录,或者如果我尝试通过ssh,scp或其他任何方式远程登录,则在成功登录后立即断开连接.换句话说,初始连接没有问题,但是当我输入正确的用户名和密码(对于root或任何用户)时,我会断开连接.使用GUI,屏幕变为黑色一秒钟,然后让我回到登录提示.使用ssh,我得到“连接到[服务器]已关闭”.我尝试了WinSCP,我得到“连接已意外关闭.服务器发送命令退出状态254.”

任何帮助表示赞赏,如果有任何方法可以提供更多信息,请告诉我.感谢您的时间.

编辑:

– 任何用户都可以在本地控制台上登录

– 目前我没有本地访问机器,所以我现在所能做的就是ssh.输入密码后,这是ssh -vvv [server]的输出:

Linux xxxxxxx.com 2.6.26.8+20091222+1056-debhawk-5.2.2-custom #1 SMP PREEMPT Tue Dec 22 10:58:57 EST 2009 i686

Last login: Mon Apr 30 14:48:07 2012 from xxxxxxx.com

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

debug2: channel 0: rcvd close

debug2: channel 0: close_read

debug2: channel 0: input open -> closed

debug3: channel 0: will not send data after 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

debug3: channel 0: status: The following connections are open:

#0 client-session (t4 r0 i3/0 o3/0 fd -1/-1)

debug3: channel 0: close_fds r -1 w -1 e 6

Connection to xxx.x.xx.xx closed.

debug1: Transferred: stdin 0, stdout 0, stderr 35 bytes in 0.0 seconds

debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 3845.3

debug1: Exit status 254

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值