Error in executing Perl script

Hello All

I am facing an issue
The unix script is running fine in unix environment which uses ssh connection but when I try to run the same in informatica environment (same server where I was running the unix script manually successfully) its showing the below error

 
 
command-line line 0: Missing yes/no argument

My code is

 
 
#!/usr/bin/ksh
ssh -o 'PasswordAuthentication yes' -o 'PreferredAuthentications publickey' -i $HOME/.ssh/id_dsa us320 <<EOF;
perl Balancing.pl m_SBD_GRD_0277_GP_VTL_PORT_CNTR_to_WRHS_STG;
EOF

Please let me know which command line argument I am missing

Thanks a lot everyone

Can you remove the above highlighted semicolon and try..?

I have done the same but still no luck

Please help me out

The error you have posted is related to ssh command. Search the internet with this error or try this link if it helps..

Rite now I am just executing the below command in unix and via informatica

 
ssh -o 'PasswordAuthentication yes' -o 'PreferredAuthentications publickey' -i $HOME/.ssh/id_dsa us320

In unix server its running fine

But when running through informatica GUI in same server below error is there

 
command-line line 0: Missing yes/no argument

Do I have to modify the ssh command

Need your kind help

IMO you need an equal sign between variable name and value:

ssh -o 'PasswordAuthentication=yes' -o 'PreferredAuthentications=publickey'

Still no luck but thanks for your reply

command doesn't seem to have any issues.

try with -v debug mode(-v, -vv, -vvv), we may get some idea

ssh -v -o 'PasswordAuthentication yes' -o 'PreferredAuthentications publickey' -i $HOME/.ssh/id_dsa us320

--ahamed

Thanks Ahmed for your reply

I have run it in the debug mode
Now here is the observation

In Unix server it ran fine ..Logs are below

 
OpenSSH_5.2p1_q7.gbe9e533M, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/opt/quest/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to us320 [162.131.215.68] port 22.
debug1: Connection established.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/r141695/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2
debug1: match: OpenSSH_5.2 pat OpenSSH*

But in Informatica log is below

 
Process id 14221434. Standard output and error:
OpenSSH_5.2p1_q7.gbe9e533M, OpenSSL 0.9.8k 25 Mar 2009
command-line line 0: Missing yes/no argument.

Can you pleas help me out

Does ssh work without any arguments? i.e.

ssh -i $HOME/.ssh/id_dsa us320

Try these and check if ssh is running

#On local server
which ssh
#On remote server
ps -eaf | grep ssh

--ahamed

Hi

I think I got the issue why informatica is behaving such way

When I run the below command without " ' " option like

 
ssh -vv -o PasswordAuthentication yes -o ForwardAgent no -i $HOME/.ssh/id_dsa us320

It errors

 
OpenSSH_5.2p1_q7.gbe9e533M, OpenSSL 0.9.8k 25 Mar 2009
command-line line 0: Missing yes/no argument.

The exact error I am finding in Informatica so somehow infa unable to parse the " ' " value
Please help me out how to get rid of this

try double quotes??

ssh -vv -o "PasswordAuthentication=yes" -o "ForwardAgent=no" -i $HOME/.ssh/id_dsa us320

--ahamed