【ubuntu 18.04】添加mac主机免密到linux
1. shell脚本
#!/bin/bash echo 'some id_rsa content'>~/.ssh/id_rsa_mac chmod 600 ~/.ssh/id_rsa_mac eval `ssh-agent` ssh-add ~/.ssh/id_rsa ssh-add ~/.ssh/id_rsa_mac ssh -T user@host
window配置参考:https://www.cnblogs.com/fireblackman/p/15798746.html
参考链接:https://blog.csdn.net/solaraceboy/article/details/94034945