Solved

Putty Plink command line issue unsupported

Posted on 2008-10-07
6
2,074 Views
Last Modified: 2013-11-21
Hello,

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>
                        or
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"
                        or
 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"

Thanks
S.
0
Comment
Question by:slimard
  • 4
  • 2
6 Comments
 

Author Comment

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

Expert Comment

by:ahoffmann
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
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 22676642
it works also simply like

plink user@remote pwd
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:slimard
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
0
 
LVL 51

Accepted Solution

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

Expert Comment

by:ahoffmann
ID: 24001039
update: teraterm now supports ssh2 and utf-8
http://sourceforge.jp/projects/ttssh2/
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

840 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