ubuntu – 无法通过SSH连接到服务器 – “服务器拒绝分配pty”

前端之家收集整理的这篇文章主要介绍了ubuntu – 无法通过SSH连接到服务器 – “服务器拒绝分配pty”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个运行Ubuntu 10.10的STRATO V-PowerServer用于我的东西,但最近有问题通过ssh连接到服务器.

基本上我只有ssh访问服务器,如果有必要,我可以启动到恢复模式,我的所有东西都在/修复,以便我可以在系统上做任何修复.

问题是,当我尝试通过ssh连接到服务器时,我收到此错误

Using username "florian".
florian@mydomain.de's password:
Server refused to allocate pty
Linux hwn36335 2.6.18-028stab070.5 #1 SMP Fri Sep 17 15:37:23 MSD 2010 i686 GNU/Linux
     Ubuntu 10.10

                 Welcome to Ubuntu!
                                    * Documentation:  https://help.ubuntu.com/
                                                                              /home/florian/.zlogin:1: command not found: display_info

因此shell无法打开,我无法输入任何命令.我已经尝试谷歌“服务器拒绝分配pty”但找不到任何有用的东西,尽管此问题已经发生在其他人之前.另外,我有时甚至会得到一个不同的错误:“通道0上的pty分配请求失败”而不是其他错误.对于这个问题我只能发现:

http://blog.dinotools.de/2010/10/03/fehler-pty-allocation-request-failed-on-channel-0

但不幸的是它没有帮助……

有没有人知道为什么会出现这个错误以及我可以尝试修复它?

如果你能给我提示,那会很棒.我知道一些基本的东西,知道如​​何使用我的服务器,但如果它深入解决问题,我就在我的极限…… ;-)谢谢!

增加1:

/var/log/auth.log

Jan 24 16:20:01 h1696522 CRON[3417]: PAM unable to dlopen(/lib/security/pam_smbpass.so): /lib/security/pam_smbpass.so: cannot open shared object file: No such file or directory
Jan 24 16:20:01 h1696522 CRON[3417]: PAM adding faulty module: /lib/security/pam_smbpass.so
Jan 24 16:20:01 h1696522 CRON[3417]: pam_unix(cron:session): session opened for user www-data by (uid=0)
Jan 24 16:20:03 h1696522 CRON[3417]: pam_unix(cron:session): session closed for user www-data

/var/log/daemon.log

Jan 24 16:00:02 h1696522 update.pl[14292]: /var/drweb/bases/dwr50003.vdb - dwr50003.vdb with such CRC32 already exists,downloading has been skipped
Jan 24 16:00:02 h1696522 update.pl[14292]: /var/drweb/bases/dwr50004.vdb - dwr50004.vdb with such CRC32 already exists,downloading has been skipped
Jan 24 16:00:02 h1696522 update.pl[14292]: /var/drweb/bases/dwr50005.vdb - dwr50005.vdb with such CRC32 already exists,downloading has been skipped
Jan 24 16:00:02 h1696522 update.pl[14292]: /var/drweb/bases/dwr50006.vdb - dwr50006.vdb with such CRC32 already exists,downloading has been skipped
Jan 24 16:00:02 h1696522 update.pl[14292]: /var/drweb/bases/dwr50007.vdb - dwr50007.vdb with such CRC32 already exists,downloading has been skipped
Jan 24 16:00:02 h1696522 update.pl[14292]: /var/drweb/bases/dwr50008.vdb - dwr50008.vdb with such CRC32 already exists,downloading has been skipped
Jan 24 16:00:02 h1696522 update.pl[14292]: /var/drweb/bases/dwr50009.vdb - dwr50009.vdb with such CRC32 already exists,downloading has been skipped
Jan 24 16:00:02 h1696522 update.pl[14292]: /var/drweb/bases/dwrtoday.vdb - dwrtoday.vdb with such CRC32 already exists,downloading has been skipped
Jan 24 16:00:02 h1696522 update.pl[14292]: /var/drweb/updates/timestamp -    timestamp with such CRC32 already exists,downloading has been skipped
Jan 24 16:00:02 h1696522 update.pl[14292]: /var/drweb/bases/update.drl -   update.drl with such CRC32 already exists,downloading has been skipped
Jan 24 16:00:02 h1696522 update.pl[14292]: deleting old files ...
Jan 24 16:00:02 h1696522 update.pl[14292]: moving downloaded files from temporary to working directory ...
Jan 24 16:00:02 h1696522 update.pl[14292]: sending notifications ...
Jan 24 16:00:02 h1696522 update.pl[14292]: summary => updated: 0,removed: 0 files and 0 messages
Jan 24 16:00:02 h1696522 update.pl[14292]: Finish Success:   2011-01-24 16:00:02
Jan 24 16:00:02 h1696522 update.pl[14292]: Socket path is /var/drweb/run/updateSock
你试过重新创建pty和tty设备吗?
root@mydomain.de:~# /sbin/MAKEDEV tty
root@mydomain.de:~# /sbin/MAKEDEV pty

它似乎是虚拟服务器上的一个已知问题……

如果您无权访问任何shell,可以尝试通过ssh发送命令:

florian@localmachine:~$ssh root@mydomain.de "/sbin/MAKEDEV tty"
florian@localmachine:~$ssh root@mydomain.de "/sbin/MAKEDEV pty"

编辑反映您的评论

如果你使用chroot,你还必须挂载/ proc,/ dev和/ sys:

root@h1696522:/# mount -o bind /proc /repair/proc
root@h1696522:/# mount -o bind /dev /repair/dev
root@h1696522:/# mount -o bind /sys /repair/sys

它现在应该工作.

原文链接:https://www.f2er.com/ubuntu/348691.html

猜你在找的Ubuntu相关文章