Do you have a question? Post it now! No Registration Necessary. Now with pictures!
April 6, 2011, 12:37 pm
rate this thread
managed to get it working nicely from within cmd.exe using the
doskey cmdalias="C:\Program Files\PuTTY\plink.exe" -l user server /bin/
(my actual command looks like this:
doskey cmdalias=chcp 28591 $T "C:\Program Files\PuTTY\plink.exe" -l
user server /bin/command $* $T chcp 850
but that is only to switch encoding before and after running the
command since the server is running iso-8859-1)
But since cmd.exe is 1. annoying to start 2. bad, I'd like to add
cmdalias.exe to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
\CurrentVersion\App Paths" and have it run putty with the same command
I've tried reading the putty manual and help-text and have found the -
I've been unable however to use -m to execute my command because I
need the alias to take an argument.
In the doskey example I have $* which represents all arguments
supplied to the alias, but how to accomplish something similar with
putty I don't understand.
Is it possible to have putty receiving and argument to a remotely
- » Do Compression and CompressionLevel apply to Dynamic port forwardings (socks5) ?
- — Next 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