ssh as root

Hi guys.

I have two machines and I am using both as root. I need to know , is there a way by which I can ssh from Machine1 to Machine2 without giving the root password for Machine2.

I actually need to write a script so that when its executed , it will ssh into another machine and run a command on THAT/other machine.

Help !

Did you try adding root user's public key (Machine 1) to root user's authorized_keys (Machine 2)? You can search "How to setup ssh-keys" for more info.

1 Like

Sure. Looked into it ! Pretty useful ! Thanks

why dont u setup rsh ?

rsh: