Your HostICan Community  


Go Back   Your HostICan Community > HostICan Web Hosting > Virtual Private Servers (VPS)

Virtual Private Servers (VPS) Need help with your VPS plan on HostICan? Please feel free to ask and we'll give you the answers!

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-13-2008, 04:51 PM
roger's Avatar
roger roger is offline
Senior Member
 
Join Date: Sep 2007
Posts: 270
Question Using SSH certificate login to server

Hi!

Can anyone help me with this? Here is my question...

I installed rsnapshot, rsync, etc. on my local Debian (Ubuntu) based server to automate an off site backup stored on my local server. (That way I don't ever have to manually make any backups as they will all be fully automated).

I created a key on my local server via:

Code:
ssh-keygen -t rsa
Using NO password (blank).

Then I then sent the public key to one of my remote servers (here at hostican) like this:

Code:
scp .ssh/id_rsa.pub root@208.73.xx.xxx:/root/.ssh/authorized_keys2
(The 208.73.xx.xxx server made me login)

I logged into the remote (hostican) WHM and went to: Main >> Security >> Manage SSH Keys
I could see that the key was indeed there and that it was authorized.

Then when I tested the backup (local) system, the remote (hostican) server at 208.73.xx.xxx still forced me to manually enter the root password.

What's up with that?
I thought an authorized key means that it will allow scripts (like ones to use it rsnapshot/rsynch) will not be forced to have a person enter root's password.

Is there something else on the 208.73.xx.xxx server that is forcing this?
Thanks to anyone that can help.

Last edited by roger; 11-13-2008 at 04:56 PM. Reason: spelling
Reply With Quote
  #2  
Old 11-13-2008, 08:22 PM
lnxcode's Avatar
lnxcode lnxcode is offline
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,954
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default Re: Using SSH certificate login to server

This depends, I know you can set it to automatically allow the root key I think you have to indicate it. However, I would strongly recommend that you include the key in the backup statement.

For example:

-p ROOTPASS

in the ssh command, that will be more secure in the long run.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
Reply

Tags
automated, backup, certificate, login, rsnapshot, rsync, script, server, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -4. The time now is 01:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.