Hi,
I am using a remote storage service for backing up our data - we want to have a script run as part of a cron job which would do the backups from our local Linux machine to the service's Linux machine.
I want to use tar and ssh to do this (rather than mounting the disk and using cp) . Therefore want to learn how to avoid having to type in a password with ssh. I am new to this feature so I went online and read the procedure, downloaded and built OpenSSH and did the following:
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/homes/12/same/.ssh/id_rsa):
/homes/12/same/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /homes/12/same/.ssh/id_rsa.
Your public key has been saved in /homes/12/same/.ssh/id_rsa.pub.
The key fingerprint is:
27:a4:d4:63:35:62: ... same@dpdw
$ ssh-copy-id -i ~/.ssh/id_dsa.pub
test3@remote.machine
test3@remote.machine''s password:
Now try logging into the machine, with "ssh 'test3@remote.machine'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
So at this point I'm expecting to be able to ssh into the remote machine and not be prompted for a password. Is this what should happen? As can be below seen I'm still prompted.
$ ssh 'test3@remote.machine'
test3@remote.machine's password:
Can someone please suggest a possible problem with what I'm doing that's preventing this from working?
Thanks in advance,
Sam