Products
GG网络技术分享 2025-11-12 22:10 3
根据您给的信息,
bash
ssh-keygen -t ed25519
bash
cat ~/.ssh/id_rsa.pub
bash
ps aux | grep ssh-keygen
.ssh目录设置权限:
bash
chmod 700 ~/.ssh
bash
chmod 600 ~/.ssh/id_rsa
bash
chmod 644 ~/.ssh/id_rsa.pub
~/.ssh/authorized_keys文件中。bash
ssh-copy-id user@host
bash
ssh user@host
以上步骤得Neng帮您平安地生成和用SSH密钥对。

Demand feedback