On Sat, 10 Mar 2001, Adlar Kim spewed into the bitstream:

AK>can you elaborate more about this? thanks.

Generate a key on the destination host (the one you wish to move the
file to) (ssh-keygen is the command). Do not give it a password (leave
it blank when asked).  Several files will be created in ~/.ssh

[csm@stealth .ssh]$ ls
id_dsa  id_dsa.pub  identity  identity.pub  known_hosts  known_hosts2
        ^^ssh2                ^^ssh1

Then, in the ~/.ssh directory of the user from source host (the one
where the file is you want to get) create either or both of the
following files:

authorized_keys  authorized_keys2
^^ssh1           ^^ssh2

touch ~/.ssh/authorized_keys

-or-

touch ~/.ssh/authorized_keys2

Move a copy of the identity.pub file up to the target host and then cat
it into the authorized_keys file like so:

cat identity.pub >> ~/.ssh/authorized_keys

Or move a copy of the id_dsa.pub file up to the target host and then cat
it into the authorized_keys file like so:

cat id_dsa.pub >> ~/.ssh/authorized_keys2

Then issue this command:

chmod 0600 ~/.ssh/authorized_keys*

Now you should be able to connect without a password (Note: only do this
if the physical security of the destination host is known good because
if you lose control of that machine the miscreant will automatically
have access to the other machine as well).

AK>>From: Chuck Mead <[EMAIL PROTECTED]>
AK>>Reply-To: [EMAIL PROTECTED]
AK>>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
AK>>Subject: Re: automatic file upload tool for linux
AK>>Date: Wed, 7 Mar 2001 07:37:29 -0500 (EST)
AK>>
AK>>On Wed, 7 Mar 2001, K.Deepak spewed into the bitstream:
AK>>
AK>>K>Dear All,
AK>>K>
AK>>K>                Can anyone suggest me some good tool to do a automatic
AK>>K>file upload in linux.
AK>>K>
AK>>K>Any constructive comments would be appreciated
AK>>
AK>>scp with authorized_host keys in place.

--
Chuck Mead, csm -AT- moongroup.com, Owner, MoonGroup.com
(Note: html formatted email sent to me is filtered & deleted unread)
GnuPG Public Key Available: http://wwwkeys.us.pgp.net



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to