Hi Group, We are using rsh command for file transfer between our two servers. We are using ssh protocol for rsh by using 'rsh -e ssh '. As we are not using certficates for ssh, the ssh daemon ask the password from the user before establishing the connection with the remote server. rsh don't have any facility to embed password in the command itself. The problem starts from here. As we want to automate the whole process we are planning to run the rsh command in the cron jobs. Now in the cron job we cannot enter the password. I think in the shell script i cannot supply the password in the situation like this. Will anybody kindly suggest me a way to overcome this problem, like using any other scripting language or something else.
Thanx and regards,
Prashant Parab
You can automate using ssh. You have to generate the key pair (private and public) and copy the public key on machine you are trying to login without password. The details of how to setup are given in the ssh manual.
Amitay.
On Mon, 2003-04-07 at 10:37, Prashant Parab wrote:
Hi Group, We are using rsh command for file transfer between our two servers. We are using ssh protocol for rsh by using 'rsh -e ssh '. As we are not using certficates for ssh, the ssh daemon ask the password from the user before establishing the connection with the remote server. rsh don't have any facility to embed password in the command itself. The problem starts from here. As we want to automate the whole process we are planning to run the rsh command in the cron jobs. Now in the cron job we cannot enter the password. I think in the shell script i cannot supply the password in the situation like this. Will anybody kindly suggest me a way to overcome this problem, like using any other scripting language or something else.
Thanx and regards,
Prashant Parab
Hi,
I think we need a more descriptive subject than just "Need Help", it means a whole lot of different things otherwise ;)
On 7 Apr 2003, Prashant Parab wrote:
Hi Group, We are using rsh command for file transfer between our two servers. We are using ssh protocol for rsh by using 'rsh -e ssh '. As we are not
I think you are using rsync and not rsh, rsh doesn't have this -e option, rsync does. rsh is simply "remote shell", so why would someone execute ssh remotely over a unsecure protocol?, doesn't make sense. Also it doesn't do file transfer natively :)
using certficates for ssh, the ssh daemon ask the password from the user
[snip]
starts from here. As we want to automate the whole process we are planning to run the rsh command in the cron jobs. Now in the cron job we
man ssh
-Rajesh