Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello out there...
This is my first threat here, so if i mess up with some rules, please be gentle...smile
I have to NAS devices...and i have root access to both of them.
And i want to do a rsync between them.
The Rsync command is clear...but i always get prompted for pass phrase...which makes it impossible to automate that via cron job
I already created the rsa key...and tried to get it into the authorized keys on the other NAS, but even after that...still pass phrase...
Tried this here:
"cat /root/.ssh/id_rsa.pub | ssh root@destinationip 'cat >> .ssh/authorized_keys'
And get:
"The authenticity of host 'dest ip (destip)' can't be established.
RSA key fingerprint is 35:60:b9:53:a4:08:fb:1a:be:7a:7d:b5:4f:ee:cc:2c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'destip' (RSA) to the list of known hosts.
root@destip's password:
Can someone give me a hint where the culprit could be?
Thx in advance
Last edited by Darkyputz; 12-09-2015 at 10:02 AM.
Reason: RESOLVED
login as: root
root@localip's password:
Last login: Wed Dec 9 09:27:24 2015 from jm-8
Last login: Wed Dec 9 10:34:17 2015 from jm-8 on pts/1
Linux Pro6bak 2.6.37.6.RNx86_64.2.4 #1 SMP Wed Aug 20 11:41:34 PDT 2014 x86_64 GNU/Linux
Pro6bak:~# cat /root/.ssh/id_rsa.pub | ssh root@destip 'cat >> .ssh/authorized_keys
Enter passphrase for key '/root/.ssh/id_rsa':
Pro6bak:~# ssh root@destip
Enter passphrase for key '/root/.ssh/id_rsa':
Welcome to ReadyNASOS 6.2.4
Last login: Tue Dec 8 15:22:17 2015 from 96.80.133.17
root@ReadyNas312:~# chmod 750 ~
root@ReadyNas312:~# chmod 700 ~/.ssh
root@ReadyNas312:~# chmod 600 ~/.ssh/authorized_keys
root@ReadyNas312:~# exit
logout
Connection to destip closed.
Pro6bak:~# ssh root@destip
Enter pass phrase for key '/root/.ssh/id_rsa':
Glad you got it sorted! SSH keys aren't too bad to set up and get going once you know the gotchas, the only issue is the complete and utter lack of any error logging, even with verbosity turned up. You have to know what the problem is, because for security reasons SSH is not going to tell you...a little annoying.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.