Automating file transfer between two SSH enabled server.

Hi Experts,

Few more words to the title, both the servers are ssh enabled but I have read only access to the second server, so I cannot automate SFTP process using RSA/DSA keys.
I am using Control M to trigger the script and do not want any manual intervention to enter the password to complete the transfer.

please suggest alternative solution or code modification.
Any help is highly appreciated.

Regards,
Neeraj

If you want people suggest code modification, you should provide the code at first .

Sorry for misleading words, I meant generally how DSA keygen code works, any modification to that code will work or suggest some alternate solution.

ssh-keygen -t dsa

?

Right.