1.手动互信:
mkdir ~/.ssh
chmod 770 ~/.ssh
ssh-keygen -t rsa
ssh-keygen -t dsa
cat ~/.ssh/id_rsa.pub >>~/.ssh/authorized_keys
cat ~/.ssh/id_dsa.pub >>~/.ssh/authorized_keys
cat 主机2上的authorized_keys >>~/.ssh/authorized_keys
scp ~/.ssh/authorized_keys 主机2上:~/.ssh/authorized_keys
2.方便下载文件:
http://localhost/
其他linux主机:wget localhost/xxx文件
python3: python3 -m http.server 80
http://localhost/
其他linux主机:wget localhost/xxx文件
3.nfs 共享
/opt/ *(rw,insecure,sync,no_root_squash)