I ssh to the remote server directory using
sshpass ssh -t remote_server_name "cd /desired_directory/; exec $SHELL -l"Now I want to run a few scripts inside that directory. I am trying using ./name.sh after the above line but it's not working. Please help.