Re: plink problem
- From: ארטיום <alkhimey@xxxxxxxxx>
- Date: Thu, 7 Oct 2010 13:50:56 -0700 (PDT)
On Oct 3, 9:14 pm, Crimson <madcrim...@xxxxxxxxx> wrote:
On Sep 30, 8:55 pm, ארטיום <alkhi...@xxxxxxxxx> wrote:
On Sep 27, 9:10 am, Crimson <madcrim...@xxxxxxxxx> wrote:
On 25 Sep., 13:10, ארטיום <alkhi...@xxxxxxxxx> wrote:
I am using Windows 7 and the latest version of putty/plink.
I want automate execution of a script on a remote computer. I wrote a
batch file to run plink in the flowing fashion:
plink server.com -l username -pw password ./some_server_script.sh -
batch
I hoped that it will execute the script and exit without prompting for
anything, but it actually prompts for my user name and password. What
is wrong here? The documentation says that -l specifies the user name
and -pw the password.
I have tried the following as well:
putty server.com -l username -pw password
And it connected me without questions, but using putty will not help
me to automate things.
Any ideas how can I solve this?
I normally do
plink -pw <password> <username>@<hostname>
which works perfect.
I get:
C:\Users\Me\Downloads>plink.exe -pw <password> <username>@<host>
login as: <username>
<username>@<host>: Command not found.
Err... did you replace the parts in <> by the respective values? It
should look like
plink -pw yourpassword yourlo...@xxxxxxxxxxxx
without any < or > left.
Yes, I did that.
Are you running this on Windows?
.
- References:
- Re: plink problem
- From: Crimson
- Re: plink problem
- Prev by Date: Re: plink problem
- Next by Date: PuTTY X11 forwarding and not using localhost
- Previous by thread: Re: plink problem
- Next by thread: PuTTY X11 forwarding and not using localhost
- Index(es):
Relevant Pages
|