?
Solved

Putty Plink command line issue unsupported

Posted on 2008-10-07
6
Medium Priority
?
2,117 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
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

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 750 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
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…
Suggested Courses
Course of the Month11 days, 15 hours left to enroll

752 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