+ -
当前位置:首页 → 问答吧 → ssh问题

ssh问题

时间:2010-12-30

来源:互联网

ssh 127.0.0.1
能登陆吗?不能的话,为什么?谢谢

作者: youcz   发布时间: 2010-12-30

回复 youcz


     现在是root的话
     PermitRootLogin  yes
     是允许root的
   防火墙没设置什么的话 可以登录

作者: taojie2000   发布时间: 2010-12-30

回复 taojie2000


    [root@test2 ssh]# vim sshd_config
[root@test2 ssh]# service sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]
[root@test2 ssh]# ssh 127.0.0.1
ssh_exchange_identification: Connection closed by remote host


你的机器可以登陆吗?

作者: youcz   发布时间: 2010-12-30

回复 youcz

我前两天做了个限制,我给忘了,谢谢。

作者: youcz   发布时间: 2010-12-30

回复 youcz


    root     pts/1    :0.0             10:17    1.00s  0.04s  0.01s ssh 127.0.0.1
   
    相当可以啊  防火墙?    允许root了吗?

作者: taojie2000   发布时间: 2010-12-30