SSH免密码登陆

设置

  1. 生成ssh密钥: ssh-keygen -t rsa
  2. 拷贝公钥私钥: ssh-copy-id -i ./生成的.pub username@host
  3. 配置用户.ssh目录下config
1
2
3
4
Host 192.168.0.18
HostName 192.168.0.18
User baiyz
IdentityFile ~/.ssh/llm_server