SSH免密码登陆
设置
- 生成ssh密钥:
ssh-keygen -t rsa - 拷贝公钥私钥:
ssh-copy-id -i ./生成的.pub username@host - 配置用户
.ssh目录下configHost 192.168.0.18
HostName 192.168.0.18
User baiyz
IdentityFile ~/.ssh/llm_server
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Bai's Blog!
ssh-keygen -t rsassh-copy-id -i ./生成的.pub username@host.ssh目录下configHost 192.168.0.18 |