zoukankan      html  css  js  c++  java
  • raspberry pi 4b 不能用 SSH secure file transfer 连接

    2020.4.16  这个方法也适用于 ubuntu 20.04 lts arm64 版本。

    1. 问题描述

       系统是 armhf-lite版,   使用 SSH secure client 不能连接, 提示“Algorighm negotiation failed.”

    2. 分析:

        网上找了下,有个说要在 /etc/ssh/sshd_config 最后面加东西, 方向是对的。但加的东西不对。

    3. in action

       在树莓派的shell输入: man ssh_config 5,   把里面的Ciphers部分的内容复制到

        /etc/ssh/sshd_config.

       然后再: ssh -Q kex

        把输出的内容也 copy进 /etc/ssh/sshd_config

    最终在/etc/ssh/ssh_config最后面,加的东西是这样的:

      

    Ciphers  3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
    KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,curve25519-sha256,curve25519-sha256@libssh.org

     加完 sudo init 6 重启

  • 相关阅读:
    docker部署mysql
    jira+mysql+破解+中文+compose
    swarm 服务器安装
    docker
    mysql创建用户并手授权
    统计数据库表容量情况
    分区表测试
    实战做项目如何选择开源许可协议(一)-了解协议
    创业公司如何实施敏捷开发
    技术人员如何创业《四》- 打造超强执行力团队
  • 原文地址:https://www.cnblogs.com/bear129/p/14647009.html
Copyright © 2011-2022 走看看