View previous topic :: View next topic |
Author |
Message |
melvin Site Admin
Joined: 25 May 2006 Posts: 635 Location: Santa Barbara, california
|
Posted: Wed Jul 26, 2006 12:55 pm Post subject: Cannot run plink via Automize Command task |
|
|
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 |
|
|
melvin Site Admin
Joined: 25 May 2006 Posts: 635 Location: Santa Barbara, california
|
Posted: Wed Jul 26, 2006 1:07 pm Post subject: |
|
|
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 |
|
|
melvin Site Admin
Joined: 25 May 2006 Posts: 635 Location: Santa Barbara, california
|
Posted: Wed Jul 26, 2006 7:32 pm Post subject: |
|
|
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 |
|
|
|