zoukankan      html  css  js  c++  java
  • sqlyog ssh 无法连接mysql

    首先描述一下问题

      问题:sqlyog 使用ssh免密,(使用本地私钥)无法连接mysql数据库

      解决方案:

      1.sqlyog 秘钥格式是以.ppk结尾的加密串,需要使用putty工具进行生成网上资料基本是生成的1024,但是一直提示unable to authenticate 但是没有解决问题重点是把1024改成2048

      2.排查的话使用tail -f secure 可以具体查看连接信息

      3.使用/usr/sbin/sshd -d -p 端口号 调试服务端信息

      4.查看服务器ssh_config(客户端配置文件) sshd_config(服务端配置文件)

      5.服务端配置文件sshd_config配置项

        PubkeyAuthentication yes

        AuthorizedKeysFile      .ssh/authorized_keys

        ChallengeResponseAuthentication no

        GSSAPIAuthentication yes

        GSSAPICleanupCredentials no

        UsePAM yes

        AllowAgentForwarding yes

        AllowTcpForwarding yes

        X11DisplayOffset 10

        X11UseLocalhost yes

        PrintMotd no

        PrintLastLog yes

        TCPKeepAlive yesAcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES

        AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT

        AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
        AcceptEnv XMODIFIERS

        

        UseDNS no
        AddressFamily inet
        SyslogFacility AUTHPRIV
        PermitRootLogin yes
        PasswordAuthentication yes

        捣鼓一整天排查问题,给其他小伙伴避坑,节省时间,如果对以上参数有兴趣的,可以自行搜索,打完收工。

     

  • 相关阅读:
    第二十章 springboot + consul(1)
    附2 hystrix详述(2)- 配置
    附1 hystrix详述(1)
    第十九章 springboot + hystrix(1)
    第十八章 springboot + thymeleaf
    第十七章 springboot + devtools(热部署)
    Nginx(二):虚拟主机配置
    SpringMVC中异常处理详解
    五分钟读懂UML类图
    Java web中WEB-INF目录理解
  • 原文地址:https://www.cnblogs.com/ccs-mxs/p/14802638.html
Copyright © 2011-2022 走看看