Re: How to pass a command script to remote computer over Putty SSH and execute it ?
- From: matias.romeo@xxxxxxxxx
- Date: Mon, 31 Dec 2007 11:20:59 -0800 (PST)
On Nov 21, 7:58 am, m...@xxxxxxxx (Marcus Mender) wrote:
I can establish successfully a SSH connection over Putty and enter commands directly
in the terminal window. Fine.
However I want to automate the execution of my command sequence.
What I am searching for is a way to enter all commands into a script text file and
the pass this script file for remote execution to Putty.
How can I do this ? I would appreciate a solution similar to:
D:\ssh\putty.exe -load "myProfile" -script "D:\test\myremotecommands.txt"
but it does not work.
Marcus
Marcus,
You need to get plink from the putty's download page.
Then, you can use it like this
plink.exe -ssh -pw pass -noagent -m commands.txt user@xxxxxxxx
Matias
.
- Prev by Date: Re: sftp and directory group writable
- Previous by thread: cygwin open-ssh passphrase
- Index(es):