Re: linux to linux scp in batch mode: how?
From: sti (sis@hymite.com)Date: 11/06/02
- Next message: sti: "Re: linux to linux scp in batch mode: how?"
- Previous message: : "linux to linux scp in batch mode: how?"
- In reply to: : "linux to linux scp in batch mode: how?"
- Next in thread: sti: "Re: linux to linux scp in batch mode: how?"
- Reply: sti: "Re: linux to linux scp in batch mode: how?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "sti" <sis@hymite.com> Date: Wed, 6 Nov 2002 13:04:32 +0100
Hmmmm. I think I got things to work!
Found another howto with a search for ssh-agent, and I have done two things
to make this work:
1) I ran "ssh-keygen -t rsa1" again, and copied the identity.pub contents
again to the other machine's authorized_keys file
2) I also ran "ssh-keygen -t dsa" and also placed this public key from
id_dsa.pub into the other machine's authorized_keys file.
And now I can log on via ssh or scp without being prompted for the password.
I am not specifically using ssh-agent, by the way. So unless this agent has
been configured automatically when I set up ssh, I would imagine that I am
not using it.
Of course I have not tested whether this will work in batch mode. That comes
next.
/Steve
"sti" <sis@hymite.com> wrote in message
news:aqav93$135u$1@news.net.uni-c.dk...
> Hi,
>
> I have ssh and scp up and running on my two Redhat 7.2 Linux machines, but
> need to type in a password each time I log on.
>
> I need to run some scripts where I tranfer files (am planning to use scp)
> between the machines. So I need to set this up so that the connection can
be
> made without password.
>
> I have been through the procedures in a HowTo and the book Linux Network
> Administrators Guide, but I must be missing something, because I can't get
> this to work. I am generating a key with ssh-keygen, then copying the
> contents of identity.pub on the remote machine to authorized_keys of the
> local machine, but I am still asked for a password with both ssh and scp.
I
> have edited .ssh/config so that batchmode is "yes" and then nothing works
> anymore - connection is just denied.
>
> Can anyone explain to me how to set this up correctly?
>
> Thanks!
>
> Steve
>
>
- Next message: sti: "Re: linux to linux scp in batch mode: how?"
- Previous message: : "linux to linux scp in batch mode: how?"
- In reply to: : "linux to linux scp in batch mode: how?"
- Next in thread: sti: "Re: linux to linux scp in batch mode: how?"
- Reply: sti: "Re: linux to linux scp in batch mode: how?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|