大网数据广告活动
服务器运维问答

Use OpenSSH to make a key exchange with NTRU Prime

· 52CE 我爱测

I would like to make a key exchange for a symmetric key from the client to the server with the NTRU Prime algorithm (for test reasons). I already installed OpenSSH 9.1 on both sides and checked already if everything is working (c…

问题原文

原帖链接 · bilaljo · CC BY-SA 4.0

I would like to make a key exchange for a symmetric key from the client to the server with the NTRU Prime algorithm (for test reasons). I already installed OpenSSH 9.1 on both sides and checked already if everything is working (connection, key exchange part of it etc.). It is. However, I am not sure how I do exactly key exchange. I did not find much on the internet or the man pages. I only found this command:

ssh -oKexAlgorithms=+"[email omitted]" user@server

which, If I understood it right, uses a specific algorithm for key exchange. However, after using it I got only an SSH connection but wasn't able to do any key exchange.

已采纳解答

原帖链接 · jode · CC BY-SA 4.0

In simple terms, SSH first uses a key exchange algorithm to securely exchange a symmetric key, which is used in encrypting the connection.

Add the option "-v" to your command and you'll see all the gory details of establishing a ssh connection. Look for a line containing "kex: algorithm:" showing you the actual key exchange algorithm used.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2022-12-19)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。