I need to use
plink (or something similar if you have something on mind) to get the output from Debian remote machine onto my Windows box. This works e.g. in this case :
plink 192.168.1.5 "ls" > log.txt
But when I want to use different command like e.g.
ifconfig or what is my point of interest my alias for the script I get the error command not found :
Server sent command exit status 127 bash: showip: command not found Disconnected: All channels closed
Where does the plink look for commands in this case ? I can easily execute aforementioned commands.