SSH not running in script

June 23, 2009 at 21:30:20
Specs: OpenVMS, 2
Can i use ssh command to establish
connection between OpenVMS and Linux in
.com script.
When i am using SSH in .com script at that
time it will give error.
I am using ssh in my script named ssh.com
as follow
$ set verify
$ ssh mycomp@192.168.15.52
$ exit

But it gives an error as follows
$ ssh mycomp@192.168.15.52
FATAL: ssh_io_register_fd: fd 3 already
registered!


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

Can any body help me....



See More: SSH not running in script

Report •


#1
June 24, 2009 at 07:32:06
The best place for this post would be in the UNIX or Linux forum. I'll take a quick kick at helping you as I've been learning UNIX/Linux but I am definitely NOT a guru..........lol

First the following from your post:

ssh mycomp@192.168.15.52

When I am logged in on one UNIX box with a user account but need to ssh into another as root, or as a user account on that box, I use the following:

ssh root@xxx.xxx.xxx.xxx

or

ssh useraccount@xxx.xxx.xxx.xxx

In your case you have "mycomp". If that's the name of a PC (ie: a PC's hostname), that's the problem. You can directly connect to another UNIX/Linux box via ssh as follows if you have an identical user account on the target as the one you're logged in as on the box you'd be ssh'ing from:

ssh xxx.xxx.xxx.xxx

or by using the hostname:

ssh mycomp

Does that help?

In a nutshell, you can connect using "ssh user@IP_Address" or "ssh user@Hostname" but you can't connect "ssh hostname@IP_Address"

Never forget, the manual has all kinds of helpful info so a simple man ssh from the command line will give you the manual page for ssh. Also, google provides you with a great resource.


Report •

#2
June 24, 2009 at 14:39:59
From other post.

"-o "batchmode yes"

"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10


Report •

#3
June 29, 2009 at 02:19:30
hello friends
i am doing OpenVMS script that communicate with linux
so i want to say that i have to run script from OpenVMS to
ssh linux workstation and i know ssh command as follow
ssh user@ip_address
mycomp is the username of the linux workstation
but it is not working in script of OpenVMS it is giving error as

$ ssh mycomp@192.168.15.52
FATAL: ssh_io_register_fd: fd 3 already
registered!

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


Report •

Related Solutions

#4
June 29, 2009 at 05:57:22
Did you post your question in the UNIX or Linux forum? If not, do so. You're much more likely to get the help you need there.

Report •


Ask Question