Git Product home page Git Product logo

Comments (11)

kzhui125 avatar kzhui125 commented on July 23, 2024 1

本地测试了下,加了一行代码,没报错了

image image

from trzsz-ssh.

lonnywong avatar lonnywong commented on July 23, 2024

你的 ~/.ssh/config 中有没有以下相关的配置,贴出来看看?

HostKeyAlgorithms
PubkeyAcceptedKeyTypes
ssh-rsa
rsa-sha2-512
rsa-sha2-256

from trzsz-ssh.

kzhui125 avatar kzhui125 commented on July 23, 2024
Host xx
    HostName xx.net
    User root
    Port xxx
    ServerAliveInterval 30
    IdentityFile ~/.ssh/id_rsa
    IdentitiesOnly yes

from trzsz-ssh.

kzhui125 avatar kzhui125 commented on July 23, 2024

我的 ~/.ssh/config 全是 Host 配置

from trzsz-ssh.

lonnywong avatar lonnywong commented on July 23, 2024

~/.ssh/known_hosts 中找到对应的 IP 或 域名的行,临时删掉试试看?

from trzsz-ssh.

kzhui125 avatar kzhui125 commented on July 23, 2024

删除之后,再登录(ssh 或者tssh会提示,选择yes可以登录),这一行记录的还是 ssh-rsa
之后 tssh 还是不能登录,还是报错这个

from trzsz-ssh.

lonnywong avatar lonnywong commented on July 23, 2024

你看前面 HostKeyAlgorithms: kh.HostKeyAlgorithms(param.addr)
看来要优化一下这里的逻辑,当是 ssh-rsa 时,要把 rsa-sha2-512rsa-sha2-256 加上。

from trzsz-ssh.

kzhui125 avatar kzhui125 commented on July 23, 2024

确实 https://security.stackexchange.com/a/255087

from trzsz-ssh.

lonnywong avatar lonnywong commented on July 23, 2024

大概知道怎么修了,等我抽空实现一下。

from trzsz-ssh.

lonnywong avatar lonnywong commented on July 23, 2024

更新 knownhosts 依赖后,已解决。

v0.1.19 发布前,可以这样安装 go install github.com/trzsz/trzsz-ssh/cmd/tssh@main,安装的路径在 ~/go/bin/

from trzsz-ssh.

kzhui125 avatar kzhui125 commented on July 23, 2024

👌

from trzsz-ssh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.