我想使用bash脚本将Raspberry Pi变成无线接入点(或返回),该脚本将通过ssh执行。在离开当前网络之前,我想从此脚本关闭ssh连接。
我已经尝试过pkill -f ssh -u pi,但是没有用。
pkill -f ssh -u pi
我通过添加sudo解决了问题:)
sudo