Hello Guys ,
I have been working on a script where we are looking to connect a remote Xserver from a Unix box. Once a connection is made , i need to run several commands on remote machine to check various stuffs.
As per my knowledge on unix (which is like a drop in ocean) , i found SSH as a best option for doing my task as it allows freely to run any command on remote machine . I declined using ftp or sftp , as these connections do not satisfy my needs i.e running commands like "kill, ps, sed , grep etc". I considered telnet but server do not supports it.
I frankly cannot thing of any other best option then SSH.
I tried implementing SSH in my shell script , but got stuck when on password step. I had no idea to overcome this password thing automatically in my shell script. After googling a lot , i found options like sshpass, scp, spawn and others utilities , but none of them works at my unix server.I don't have options to use RSA here.
i am looking for some solution so i can use SSH in my script and pass the password and then log in to remote machine .
Also if u guys have better solution then SSH , it will always be welcomed.
Looking forward for expert's help.
Cheers !!!!!!!!