檔名:sshfs01.sh
內容:
#!/bin/bash
#sshfs 192.168.72.140/var/www/html/laravel/
if [ -d "/home/webadmin/" ]; then
rm laravel51 -R
mkdir laravel51
sshfs webadmin@192.168.72.140:/var/www/html/laravel/ laravel51
else
mkdir laravel51
sshfs webadmin@192.168.72.140:/var/www/html/laravel/ laravel51
fi
phpstorm
2.關閉遠端掛載
檔名:fusemount01.sh
內容:
#!/bin/bash
fusermount -u laravel51
3.關閉遠端電腦
檔名:shutdown192.sh
內容:
#!/bin/bash
#sshfs 192.168.72.140/var/www/html/laravel
ssh webadmin@192.168.72.140
sudo shutdown now
內容:
#!/bin/bash
#sshfs 192.168.72.140/var/www/html/laravel
ssh webadmin@192.168.72.140
sudo shutdown now
沒有留言:
張貼留言