illustrate
The code needs to be written on the PC host (Linux), and the code must be copied to the slave machine (Linux) every time to compile and run the program. scp
Commands are used here scp -r /主机/文件 从机名@192.168.x.x:从机目录/
. The use sshfs
can be compiled directly on the slave machine, omitting the copy step.
System structure block diagram
Linux master <=====> Linux slave
Steps
host
sudo apt-get install openssh-server
ifconfig -a
Get the IP address in the LAN
Slave
sudo apt-get install sshfs
sshfs -o idmap=user -o reconnect [email protected]:/path/to/your/workspace /path/to/your/workspace
The hosts file can now be accessed happily from the slave
author : Wangsong
mail : [email protected]