Solved

Putty Plink command line issue unsupported

Posted on 2008-10-07
6
2,106 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Know what services you can and cannot, should and should not combine on your server.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
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…
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…

688 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