logo NodeSeekbeta

我没有特别的 SSH 安全配置技巧

12345
  • @leileio #30 Ubuntu是支持这种配置方式的,可能哪里做错了
    不过你直接改/etc/ssh/sshd_config里的端口也行
    image

  • 脚本?有什么话跟我的一百位随机密码+高端口说去吧 xhj025

  • 仅白名ip单登录足够了,我所有服务器密码都是123456,没被爆过 ac10

  • mark

  • 然后弄好了以后开始安装各种来路不明的一键脚本 xhj002

  • 高位端口+复杂一些的密码,一般问题不大

  • 学习

  • 装fail2ban就够了,失败三次自动拉黑ip

  • # cat /etc/ssh/sshd_config
    Port 22
    UsePAM yes
    GatewayPorts no
    PermitRootLogin no
    PubkeyAuthentication yes
    PasswordAuthentication no
    ChallengeResponseAuthentication no
    
    AcceptEnv LANG LC_*
    AddressFamily any
    TCPKeepAlive yes
    X11Forwarding no
    AllowTcpForwarding yes
    ClientAliveInterval 60
    Subsystem sftp /usr/lib/openssh/sftp-server
    LogLevel INFO
    
    PrintMotd no
    Banner /etc/ssh/banner
    

    私钥带口令保护。

12345

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

📈用户数目📈

目前论坛共有60108位seeker

🎉欢迎新用户🎉