PbCopy111
V2EX  ›  macOS

一个 ssh 登陆不上的错误提示

  •  
  •   PbCopy111 · Oct 24, 2019 · 2822 views
    This topic created in 2397 days ago, the information mentioned may be changed or developed.

    我的 ubuntu 服务器,设置了 publickey 的 ssh 登陆。

    Mac 作为远程访问的机器上使用了一个叫 LogTail 的 app,这玩意唯一的作用就是显示日志,本地或者远程。

    远程登陆查看日志需要采用 ssh 登陆的方式。所以我在软件里设置了登陆地址,端口,key 也设置了,但是总是无法登陆,以前是可以的。

    看了一下 ubuntu 服务器的 auth.log 日志,每次登陆的时候只有这么一条:

    Oct 24 05:01:11 ubuntu sshd[211437]: Received disconnect from 1.2.10.48 port 44089:11: NMSSH: Disconnect [preauth]  
    Oct 24 05:01:11 ubuntu sshd[211437]: Disconnected from 1.2.10.48 port 44089 [preauth]  
    

    看这意思,好像被过滤了??这毛病我应该从哪里找起呢??对了,我安装了 fail2ban,但是日志里面没有东西:

    vi /var/log/fail2ban.log
    2019-10-20 00:00:35,537 fail2ban.server         [1307]: INFO    rollover perform
    ed on /var/log/fail2ban.log  
    
    sudo fail2ban-client status  
    Status  
    |- Number of jail:	1  
    `- Jail list:	sshd  
    

    还需要提供什么?

    1 replies    2019-10-24 14:45:49 +08:00
    ciaoly
        1
    ciaoly  
       Oct 24, 2019 via Android
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   859 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 21:46 · PVG 05:46 · LAX 14:46 · JFK 17:46
    ♥ Do have faith in what you're doing.