I want to mount a remote directory and I want to automate this. So I write below script which not working properly.#!/usr/bin/expect -fspawn sshfs vedams@192.168.5.109:/home/user /mnt/remoteexpect assword:send myPassword\rWhen I run the above script and if check ls /mnt/remote, it is giving below error: ls: cannot access /mnt/remote: Transport endpoint is not connectedI used sshpass but not working:sshpass -p myPassword sshfs user@192.168.5.109:/home/user /mnt/remoteShell blocked and getting the same error.Note: If I run sshpass -p vedams123 sshfs vedams@192.168.5.109:/home/user /mnt/remote, working withour any problem.
Automating sshfs not working
bash;sshfs