Comments (11)
本地测试了下,加了一行代码,没报错了
from trzsz-ssh.
你的 ~/.ssh/config
中有没有以下相关的配置,贴出来看看?
HostKeyAlgorithms
PubkeyAcceptedKeyTypes
ssh-rsa
rsa-sha2-512
rsa-sha2-256
from trzsz-ssh.
Host xx
HostName xx.net
User root
Port xxx
ServerAliveInterval 30
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
from trzsz-ssh.
我的 ~/.ssh/config
全是 Host 配置
from trzsz-ssh.
在 ~/.ssh/known_hosts
中找到对应的 IP 或 域名的行,临时删掉试试看?
from trzsz-ssh.
删除之后,再登录(ssh 或者tssh会提示,选择yes可以登录),这一行记录的还是 ssh-rsa
。
之后 tssh 还是不能登录,还是报错这个
from trzsz-ssh.
你看前面 HostKeyAlgorithms: kh.HostKeyAlgorithms(param.addr)
,
看来要优化一下这里的逻辑,当是 ssh-rsa
时,要把 rsa-sha2-512
和 rsa-sha2-256
加上。
from trzsz-ssh.
确实 https://security.stackexchange.com/a/255087
from trzsz-ssh.
大概知道怎么修了,等我抽空实现一下。
from trzsz-ssh.
更新 knownhosts 依赖后,已解决。
在 v0.1.19
发布前,可以这样安装 go install github.com/trzsz/trzsz-ssh/cmd/tssh@main
,安装的路径在 ~/go/bin/
。
from trzsz-ssh.
👌
from trzsz-ssh.
Related Issues (20)
- mintty Ctrl-C退出整个tssh HOT 12
- -R for serveo.net or ssh-j.com on Windows10 and Debian12 HOT 19
- My user name include a symbol '#' that i can't login destination host HOT 2
- 无法激活1password的ssh agent HOT 5
- An example of using tssh `as` a library HOT 5
- Mosh 支持 HOT 25
- 类似于xftp实现跨服务器传输文件 HOT 3
- tssh执行后面直接执行命令报错 HOT 2
- 求教一下为什么我选择列表界面不是箭头而是炸药? HOT 2
- Android 的 Termux 从v0.1.15开始没法使用 tssh HOT 6
- UDP模式闲置一小段时间就会卡住 HOT 1
- Windows下无法使用`IdentityAgent`登录 HOT 11
- 通过堡垒机连接后,使用trz上传文件存在问题 HOT 17
- 关于提供登录后自动修改窗口标题的建议 HOT 14
- Feature request: 命令行参数取代文件选择框 HOT 4
- tmux批量登录无法分屏 HOT 4
- UDP模式支持ForwardAgent不成功 HOT 7
- If the key not found in known_host then OpenSSH adds all the host keys to it. HOT 9
- [文档问题] 说明文档里描述的rzsz文件传输,怎么使用呢? HOT 4
- Windows下SSH AgentForward不起作用 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trzsz-ssh.