v2byy
V2EX  ›  问与答

为啥 gcloud 中的 sshd_config 是空的?

  •  
  •   v2byy · Jan 14, 2019 · 1819 views
    This topic created in 2701 days ago, the information mentioned may be changed or developed.

    我的 google cloud 的 /etc/ssh/sshd_config 文件是空的。

    这种情况下如何改一些 ssh 的配置呢?

    另外:我在 /var/log/meesages 里面看到这些信息:

    Jan 14 07:57:48 instance-ss sshd[8664]: error: Could not get shadow information for NOUSER
    Jan 14 07:57:48 instance-ss sshd[8664]: Failed password for invalid user das from 118.24.5.163 port 48758 ssh2
    Jan 14 07:57:48 instance-ss sshd[8665]: Received disconnect from 118.24.5.163: 11: Bye Bye
    Jan 14 07:59:45 instance-ss sshd[8684]: Invalid user noc from 165.227.63.250
    Jan 14 07:59:45 instance-ss sshd[8685]: input_userauth_request: invalid user noc
    Jan 14 07:59:45 instance-ss sshd[8684]: error: Could not get shadow information for NOUSER
    Jan 14 07:59:45 instance-ss sshd[8684]: Failed password for invalid user noc from 165.227.63.250 port 45234 ssh2
    Jan 14 07:59:46 instance-ss sshd[8685]: Received disconnect from 165.227.63.250: 11: Bye Bye
    Jan 14 08:00:30 instance-ss sshd[8692]: Invalid user bob from 104.248.188.192
    Jan 14 08:00:30 instance-ss sshd[8693]: input_userauth_request: invalid user bob
    Jan 14 08:00:30 instance-ss sshd[8692]: error: Could not get shadow information for NOUSER
    Jan 14 08:00:30 instance-ss sshd[8692]: Failed password for invalid user bob from 104.248.188.192 port 39710 ssh2
    Jan 14 08:00:30 instance-ss sshd[8693]: Received disconnect from 104.248.188.192: 11: Bye Bye
    Jan 14 08:01:17 instance-ss sshd[8713]: Invalid user egarcia from 118.24.100.25
    Jan 14 08:01:17 instance-ss sshd[8714]: input_userauth_request: invalid user egarcia
    Jan 14 08:01:17 instance-ss sshd[8713]: error: Could not get shadow information for NOUSER
    Jan 14 08:01:17 instance-ss sshd[8713]: Failed password for invalid user egarcia from 118.24.100.25 port 33390 ssh2
    

    是不是别人想 ssh 登陆啊?

    3 replies    2019-01-15 07:44:46 +08:00
    v2byy
        1
    v2byy  
    OP
       Jan 14, 2019 via iPhone
    没人愿意解惑吗
    phy25
        2
    phy25  
       Jan 15, 2019 via Android
    用的什么系统?
    v2byy
        3
    v2byy  
    OP
       Jan 15, 2019 via iPhone
    @phy25 #2 centos6.9 64 位
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3765 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 00:52 · PVG 08:52 · LAX 17:52 · JFK 20:52
    ♥ Do have faith in what you're doing.