Security
cancel
Showing results for 
Search instead for 
Did you mean: 

child process (/usr/bin/ssh2) exited with code 2

vinod u
Advisor

child process (/usr/bin/ssh2) exited with code 2

Hi,
I have a script which uses SFTP to place a file on Windows server.Server is on Tru 64 5.2
I generated public keys and send to team which owns windows server. They said they deployed as usual. but when i run my script i am seeing some errors like
more etl_sftp_mg_sox.log
warning: Connecting to compliance.xxx.xxxxxx.com failed: Connection Timed Out
Warning: child process (/usr/bin/ssh2) exited with code 2.

I generated keys using keygen command. Whats wrong here is there any thing to be done after generation of keys. Or is it firewall problem. How to find the Root cause of the problem.
thanks in advance
2 REPLIES
Rob Leadbeater
Honored Contributor

Re: child process (/usr/bin/ssh2) exited with code 2

Hi,

What troubleshooting have you done ?

Can you resolve the hostname that you're trying to connect to ?

What network equipment is in between the client and the server ?

Cheers,

Rob
Steven Schweda
Honored Contributor

Re: child process (/usr/bin/ssh2) exited with code 2

> [...] Connection Timed Out

If that's the first thing that happens (after
a long pause, I'll assume), then you would
seem to have some kind of network problem.

> [...] Or is it firewall problem. [...]

Could be, if you have a firewall. Or if the
other guy has one. Can you do sftp (or ssh)
to any other systems (within or without your
own network)?

> I have a script [...]

I'd start with some interactive commands, so
that I could can see what's happening when it
happens. When I got something to work, I
might try writing a script.