Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- remote command with putty
September 25, 2007, 5:18 pm
rate this thread
I try to find a way to execute a remote command with putty on the
command line. Unfortunately I can NOT use plink, it has to be putty.
In addition I can NOT use stored sessions, I have to give all
parameters via the command line.
First I tried to give the remote command directly in the command line
as if putty was plink:
Did not work. Error message = Invalid Port Number. As I did not find
any related hint in the putty docs, I suppose putty does not accept
remote commands in the command line. But I found the option -m which
allows to specify a file containing one (or more) remote commands:
where remoteComand.sh conntains only one command: ls -la
Does not work. After prompting me for the user-password the putty
shell closes immediately, without running the remote command. I found
the same error report a few times in the web, but the solution always
was using plink ...
Re: remote command with putty
Well, I expected the output to ls -la appearing in the terminal window
opened by putty, where I am also challenged for my password. I also
tested it with other commands, which leave a trace of having been
executed and / or require more user interaction. Same effect: The
putty terminal closes immediately after typing in my password. No
traces on the target machine ...
- » How to enable logging to the sshd.log file in Windows? (Using SSH in Cygwin)
- — Next thread in » Secure Shell Forum
- » LISA '07 - Latest News and Top 5 Reasons to Attend
- — Previous thread in » Secure Shell Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum