注册 登录
LinuxTone | 运维专家网论坛 - 最棒的Linux运维与开源架构技术交流社区! 返回首页

panda的个人空间 http://bbs.linuxtone.org/?10721 [收藏] [复制] [分享] [RSS]

日志

ssh 登录

热度 5已有 1269 次阅读2011-12-12 11:42 |个人分类:linux@shell| ssh

今天早上远程登录遇见一个问题
我的系统是ubuntu 11.10
使用
ssh 用户名@ip  登录
遇见一问题                 Connection closed by ip

网上查了查资料,解决办法是: sudo /etc/init.d/ssh restart
这样过后再试就好了。
网上分析的原因还有:
一、
sshd should not be segfaulting. That looks like a bug. I think that debian has forked openssh. Make sure you don't send bug reports to openssh developers if that is the case.

A segfault sometimes indicates improperly handled error conditions so there could still be something wrong with your configuration. Things you haven't checked are permissions for the home directory, ~/.ssh, and files in .ssh such as your private key. Have you changed permissions or changed security to permissive? Use "ssh -vv" for debugging.

Validate the files for the openssh package. You may have changed a library or have a corrupted file. Perhaps reinstall the openssh package.

Is Ubuntu 7.1 still supported?
二、
Try your test ssh'ing in from another computer. Not localhost. You also seem to be using IPv6. Is that intentional?
Check your /etc/hosts file.

You may be missing the IPv4 entry.

Make sure you gave your computer a hostname. Some installs default to localhost.localdomain which another computer will never reach. I think this is to prevent name collisions of you install on two or more hosts without changing the hostname.

Check the value of "AddressFamily" in the servers /etc/ssh/sshd_config.



4

路过

鸡蛋

鲜花
1

握手

雷人

刚表态过的朋友 (5 人)

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

Archiver|手机版|感谢所有关心和支持过LinuxTone的朋友们 转载本站内容请注明原作者名及出处 ( 京ICP备08103151 )   |

GMT+8, 2021-2-26 06:17 , Processed in 0.009497 second(s), 9 queries , Apc On.

Powered by Discuz! X2 Licensed

© 2001-2011 Comsenz Inc.

回顶部