On Thu, 8 Mar 2001 [EMAIL PROTECTED] wrote:
>
>
> Is there a way to establish an ssh2 session without being prompted
> for a password? I'm trying to set up a cron job that will perform
> remote backups and I don't want to set up an FTP server for this.
> I've read through the instructions, and haven't found anything
> (anything obvious to me, anyway). I've set up public key
> authentication, and can log in provided that I give the proper
> password. I'd like to set this thing up to run without any user
> intervention if possible.
>
> Thanks!
> --
> Steve
>
>
You have to use ssh-keygen, and generate key pairs. If you do not
assign a password to the key, you can then copy the public key to the
machine you want to connect to, and put it in the user's .ssh directory
in the authorized_keys file.
If it wasn't a cron job, you could have a password on the key, and use
ssh-agent and ssh-add to set the password, but I do not know how to set
them up for a cron job...
If you set up a private key without a password, make sure you keep it in
a secure directory, because it can be used to log into the remote
machine by anyone that has it.
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list