hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cannot run plink via Automize Command task

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Command tasks and commandline
View previous topic :: View next topic  
Author Message
melvin
Site Admin


Joined: 25 May 2006
Posts: 635
Location: Santa Barbara, california

PostPosted: Wed Jul 26, 2006 12:55 pm    Post subject: Cannot run plink via Automize Command task Reply with quote

This is an issue emailed to us by a Automize 7.x user
---------------------------------------------------------------------------
Dear Hitek,

We are experiencing a return error on a Command Task in Automize Enterprise 7. The Command Task is the following:

plink -batch -ssh -pw pasword user@myserver.com ls -l

We can execute this line with no errors and expected results returned in the Windows MS-DOS command window. However, when trying to add this as Command Task in Automize, in the logs we receive the following error:

Command - remove - Error : The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is.
Jul 25, 2006 8:43:18 PM Command - remove : The server's rsa2 key fingerprint is: ssh-rsa 1024 xx:xx:xx (fingerprint)
Jul 25, 2006 8:43:18 PM Command - remove - Error : Connection abandoned.
Jul 25, 2006 8:43:28 PM Command - remove - End Instance = 13 , Exit Code = 1 , Runtime (ms) = 15232

Please advise,

Thanks!
Back to top
View user's profile Send private message Send e-mail
melvin
Site Admin


Joined: 25 May 2006
Posts: 635
Location: Santa Barbara, california

PostPosted: Wed Jul 26, 2006 1:07 pm    Post subject: Reply with quote

Putty is a free ssh client for windows and unix. Plink is a commandline tool for putty. Using plink in batch mode allows to automate ssh commands.

You should use putty in interactive mode and connect once to the SSH server. Once you connect, the host key is stored in the windows registry. Subsequently plink can be used from Automize command task and will read the host key.
Back to top
View user's profile Send private message Send e-mail
melvin
Site Admin


Joined: 25 May 2006
Posts: 635
Location: Santa Barbara, california

PostPosted: Wed Jul 26, 2006 7:32 pm    Post subject: Reply with quote

Also from the Automize command task, you should use the dos shell to launch plink rather than running plink directly.

example:
commandline = cmd.exe /c test.bat

where test.bat contains the following code to run plink:
plink.exe -batch -ssh -pw password melvin@192.168.0.7 ls -l
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Command tasks and commandline All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group