Re: linux to linux scp in batch mode: how?

From: sti (sis@hymite.com)
Date: 11/06/02


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
>
>



Relevant Pages

  • Re: linux to linux scp in batch mode: how?
    ... reason why it works now is because of the dsa key. ... > been configured automatically when I set up ssh, I would imagine that I am ... >> I have ssh and scp up and running on my two Redhat 7.2 Linux machines, ... >> between the machines. ...
    (comp.security.ssh)
  • [SLE] From SUSE Linux 10.1 to a MS OS Running Kermit 3.16 via copSSH on Windows XP or older Windows
    ... I have SUSE Linux 10.1 and I am able to ssh and scp to the machines. ... via ssh kermit remotely. ...
    (SuSE)
  • linux to linux scp in batch mode: how?
    ... I have ssh and scp up and running on my two Redhat 7.2 Linux machines, ... I need to run some scripts where I tranfer files (am planning to use scp) ... between the machines. ... but I am still asked for a password with both ssh and scp. ...
    (comp.security.ssh)
  • Re: scp a folder without prompting of password (automate)
    ... in the account where you are running scp, ... the phrase each time you use ssh or scp, ... needn't necessarily restart ssh-agent with each run of the script one ...
    (comp.unix.shell)
  • ssh-agent forwarding
    ... 1-from A I ssh B: ... is loaded in A's ssh-agent. ... I am using OpenSSH in all the machines. ... Maybe it was necessary to compile OpenSSH with this option otherwise ...
    (comp.os.linux.networking)