I am able execute a sh file using PuTTY. But when I try to execute the same in plink
it's throwing a permission denied error.
I am able to execute basic command like la - let or PWD and more using plink
.
But only sh files are throwing permission denied error.
In command prompt I typed this
plink -ssh -l username -pw password host -m input.txt> output.txt
If I mention ls -lrt
it's working fine. But running sh file is not working.
No antivirus.
Input text:
./start shellscriptname.sh
Output:
Username and path and
permission denied keyboard interactive