cancel
Showing results for 
Search instead for 
Did you mean: 

SSH Script

jim lake
Occasional Advisor

SSH Script

Hi,

I have set up ssh public key authentication between two VMS nodes using SSH2. I'm attempting to write a DCL script which I will submit as a batch job to run commands remotely on of the nodes. When I attempt to execute a simple dcl script to connect to the other node using ssh I receive the following

%TCPIP-F-SSH_FATAL, non-specific fatal error condition

Is it possible to do this or should I attempt it using an alternative such as rsh.


Any help would be great

Thanks!

7 REPLIES
Steven Schweda
Honored Contributor

Re: SSH Script

> When I attempt to execute a simple dcl
> script [...]

If it's that simple, why not show us the
thing, instead of encouraging pointless
guesswork?

Interactive SSH works?
Steven Schweda
Honored Contributor

Re: SSH Script

> %TCPIP-F-SSH_FATAL, non-specific fatal error condition

Did you leave out the part about "FATAL:
ssh_io_register_fd: fd 3 already
registered!"? There's a cure for that:

-o "batchmode yes"
jim lake
Occasional Advisor

Re: SSH Script

Sorry, I'm very new to OpenVMS aswell as online forums.

There is only one line the script as I was simply attempting to connect to the other node.

ssh xxx.xxx.xxx.xxx

it connects fine when this is enetered at the prompt but when its run in a script I get %TCPIP-F-SSH_FATAL, non-specific fatal error condition

Thanks


jim lake
Occasional Advisor

Re: SSH Script

Thanks for your response it helped greatly although I added the -o "batchmode yes" option to the ssh command.

It worked fine when ran interactively but when ran in batch mode it hangs after it displays authentication successful.
Steven Schweda
Honored Contributor

Re: SSH Script

One of us doesn't seem to know what
"although" means.

So, you're happy now, or what still doesn't
work?

> ssh xxx.xxx.xxx.xxx

With no command to run, what did you expect
this to do?

Is there some actual task you're trying to
perform?
jim lake
Occasional Advisor

Re: SSH Script

I am going to use this to periodically execute commands on anouther node.

This is the exact command that I want to run in batch mode. Keep in mind that it works interactively.

ssh 10.222.65.212 -o "batchmode yes"

Thanks
jim lake
Occasional Advisor

Re: SSH Script

I figured it out thanks for you help