Putty Plink command line issue unsupported

Posted on 2008-10-07
Medium Priority
Last Modified: 2013-11-21

The goal is to run some tasks on the MSA2000 from a batch file located a Windows remote host
To automatically logon into the MSA2000 I use this command:
 putty.exe -ssh <host ip address> -l <username> -pw <password>
plink.exe -ssh <host ip address> -l <username> -pw <password>
This works fine!!
But I'm not able to execute command :
I test first the command through a manual logon session and it works fine but when I want to get this automatically with the following command :
 putty.exe -ssh <host ip address> -l <username> -pw <password> "command"
 putty.exe -ssh <host ip address> -l <username> -pw <password> -m "file.txt"
where I put the command into the text file
I get an error message which tell me that this is an "unsupported command"

Question by:slimard
  • 4
  • 2

Author Comment

ID: 22668541
Can someone please help with this? I am bit stuck
LVL 51

Expert Comment

ID: 22676636
start putty and save a session for your remote login, let's assume you name the session FOO
then you can use plink to execute a command as follows

plink FOO pwd
LVL 51

Expert Comment

ID: 22676642
it works also simply like

plink user@remote pwd
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.


Author Comment

ID: 22875146
To login it is ok but not to run the commands...So I am using now TeraTerm with its macro features and it is working like a charm
LVL 51

Accepted Solution

ahoffmann earned 750 total points
ID: 22885602
LOL, beside the missing ssh2 support TT is the better choice for me too ;-)
LVL 51

Expert Comment

ID: 24001039
update: teraterm now supports ssh2 and utf-8

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

The question appears often enough, how do I transfer my data from my old server to the new server while preserving file shares, share permissions, and NTFS permisions.  Here are my tips for handling such a transfer.
Disk errors can be the source of sundry problems for the Exchange server, the most common one being that the database fails to mount.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question