Hello World

吞风吻雨葬落日 欺山赶海踏雪径

0%

Linux ssh 配置

SSH 免密码登录配置。

1
2
3
# 推荐使用 Ed25519 算法(更安全)
ssh-keygen -t ed25519
ssh-copy-id -i ~/.ssh/id_ed25519.pub user@remote_host

生成配置 ~/.ssh/config

1
2
3
4
Host server_alias
HostName remote_host
User username
IdentityFile ~/.ssh/custom_key