Hi,
I am trying to use Plink for running commands on remote server. Both, local & remote machine are Windows. Though I am able to connect to the remote machine using Plink, i am not able to use the '-m file' option.
I tried the following three ways but to no avail:
Try 1: plink.exe -ssh -pw mypwd gchhabra@machine -m file.txt
Could not chdir to home directory /home/gchhabra: No such file or directory dir: not found
- file.txt only contains one command i.e., dir
Try 2: plink.exe -ssh -pw mypwd gchhabra@machine dir
Could not chdir to home directory /home/gchhabra: No such file or directory dir: not found
Try 3: plink.exe -ssh -pw mypwd gchhabra@machine < file.txt
In this case, I get the following output:
Using username "gchhabra".
****USAGE WARNING****
This is a private computer system. This computer system, including all ..... including personal information, placed or sent over this system may be monitored.
Use of this computer system, authorized or unauthorized, constitutes consent ... constitutes consent to monitoring for these purposes.
dirCould not chdir to home directory /home/gchhabra: No such file or directory Microsoft Windows [Version x.x.xxx] (C) Copyright 1985-2003 Microsoft Corp.
C:\Program Files\OpenSSH>
After I get the above prompt, it hangs.
Can anyone please help me with this?
Regards,
Gaurav