Code Monkey home page Code Monkey logo

Comments (7)

lonnywong avatar lonnywong commented on June 14, 2024 1

我试了一下,发现只支持 1024 位的:

$ ssh-keygen -t dsa -b 2048
Invalid DSA key length: must be 1024 bits

1024 位的私钥已经不安全了,据说 openssh 加上 dsa 是个错误:golang/go#23751 (comment) ,看来下个版本要把对 dsa 的支持删了。

from trzsz-ssh.

lonnywong avatar lonnywong commented on June 14, 2024

DSA 私钥是怎么生成的,多少位的?

from trzsz-ssh.

ruanimal avatar ruanimal commented on June 14, 2024

macOS 12 带的 ssh-keygen 应该是没有问题的

ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/Users/ruan/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/ruan/.ssh/id_dsa
Your public key has been saved in /Users/ruan/.ssh/id_dsa.pub
The key fingerprint is:
SHA256:h3IiL+STmUUpwOrWpxHX+/t5fNb8QksR+C/XaIhLFJE ruan@ruandeMacBook-Pro
The key's randomart image is:
+---[DSA 1024]----+
| ..       .o .   |
|  ..   .  E . .  |
| .  . +    . . . |
|.  . + . ..   o  |
|. . = + S... . +.|
| o = O = .o . * +|
|.   @ . .. ..+ =.|
|   . o   .. .oooo|
|         .oo. o.o|
+----[SHA256]-----+

from trzsz-ssh.

ruanimal avatar ruanimal commented on June 14, 2024

dsa 已经被 openssh 默认禁用了,dsa 支持确实可以删除了。

另外,建议 tssh 解析文件失败提示一些warning信息就ok了,别直接退出。

from trzsz-ssh.

lonnywong avatar lonnywong commented on June 14, 2024

OK,我周末优化一下这里的逻辑。

from trzsz-ssh.

lonnywong avatar lonnywong commented on June 14, 2024

v0.1.7 已优化。

from trzsz-ssh.

ruanimal avatar ruanimal commented on June 14, 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.