Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
linux:正确ssh登录后立即注销_Linux - Fatal编程技术网

linux:正确ssh登录后立即注销

linux:正确ssh登录后立即注销,linux,Linux,我的Ubuntu 12.04服务器有一个奇怪的问题 通过ssh正确登录后,连接立即关闭 以下是我使用ssh-vvv登录后在控制台上得到的输出: Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-32-generic x86_64) * Documentation: https://help.ubuntu.com/ System information as of Mon Mar 4 10:29:54 CET 2013 System load:

我的Ubuntu 12.04服务器有一个奇怪的问题

通过ssh正确登录后,连接立即关闭

以下是我使用
ssh-vvv
登录后在控制台上得到的输出:

Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-32-generic x86_64)

* Documentation:  https://help.ubuntu.com/
System information as of Mon Mar  4 10:29:54 CET 2013

System load:  0.18              Processes:           120
Usage of /:   2.9% of 77.23GB   Users logged in:     0
Memory usage: 54%               IP address for eth0: x.x.x.x
Swap usage:   9%

Graph this data and manage this system at https://landscape.canonical.com/

174 packages can be updated.
61 updates are security updates.

Last login: Mon Mar  4 10:29:28 2013 from y.y.y.y
debug3: channel 0: will not send data after close
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
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 cfd -1)

debug3: channel 0: close_fds r -1 w -1 e 6 c -1
Connection to x.x.x.x closed.
debug1: Transferred: stdin 0, stdout 0, stderr 39 bytes in 0.7 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 58.4
debug1: Exit status 1`
root当前不允许通过ssh直接连接,所以我只有一个用户可以登录。 此外,没有X服务器,只有控制台

有什么想法吗


提前谢谢

您对主目录有读/写/执行权限吗?当对主目录的访问权限错误时,这是一个常见问题。退出状态1表示
不允许操作
,这似乎支持我的理论:)如何修复它?没有其他用户可以登录以检查权限…您可以在cmd行上为ssh指定命令。我不确定哪种解决方案最适合您的情况,但可能使用
sftp或scp
并尝试获取sshd配置,更改以便root用户可以登录,然后将其上载回,并暂时以root用户身份ssh并修复问题。谢谢,我将尝试这样做。结果如何?:)