Solved

Putty Plink command line issue unsupported

Posted on 2008-10-07
6
2,033 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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

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

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

Solid State Drive Performance Tips: Solid state storage technology is now a standard.  After testing and using several different brands and revisions of SSD's over the years I have put together a collection of tips,tools and suggestions that I ha…
Problem description :  Some external hard disks / USB flash drives do not show actual space as mentioned in the factory settings. This is a common problem when you use an 8 GB USB drive to make it bootable to install a firmware/ driver on a serv…
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…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now