[NTLUG:Discuss] Using scp....
Jack Snodgrass
jack at jacksnodgrass.com
Tue Oct 7 19:07:20 CDT 2003
On Tue, 2003-10-07 at 18:06, Douglas King wrote:
> I had someone set up my Linux machines to use SCP as the "backup" feature
> every night. However, I have had to rebuild a couple of the machines, and
> need to set up SCP again. When the "backup" machine logs in, it's asking
> for a password. There is supposed to be a way to "fix" the passwords in
> the respective machines so that when it gets to that stage...it logs an and
> backs up the designated directories. My QUESTION is....what is the process
> in "fixing" the password stuff, where it doesn't stall there?
there are different versions of ssh and scp but it generally works like
this:
you generate a public/private key ( try ssh-keygen -b2048 -tdsa ) and
don't
specify a password.
You then transfer the identity.pub file to the remote system as
something like
remote.pub. ( use scp or ftp to transfer the file )
Once the file is there, your add the .pub file to your local keys on the
remote box
( cat remote.pub >> ~/.ssh/authorized_keys2 ).
Now when your ssh or scp to the box, it will transfer it's key, compare
it to the
public version and connect if you set everything up correctly.
jack
More information about the Discuss
mailing list