LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-26-2009, 06:55 PM   #16
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.2, Centos 5.8
Posts: 11,740

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905

Use auth_keys to avoid the passwd issue. However(!) allowing root access via ssh is definitely NOT recommended due to security concerns.
 
Old 11-26-2009, 07:47 PM   #17
ozegoods
Member
 
Registered: Oct 2004
Location: United States
Distribution: Mandriva 2010.1 KDE4
Posts: 38

Rep: Reputation: 0
Quote:
Originally Posted by cbtshare View Post
Ok, I'm trying to just mirror the directory.When I go :

rsync -vaz --rsh="ssh -l root" /home/you 192.168.1.1:/home/bak

it just ask for a password then nothing happens.
any help please?
Why not use keys in the .ssh directory to avoid the need for typing password?

Root logins via ssh may not be safe, so I transfer files to a user account, account name on destination machine is "user".

On my system I would write it like this:

rsync -azP -e 'ssh -p 22' /home/you/ user@192.168.1.1:bak/

This is with ssh on port 22, backing up contents of local directory /home/you/ to remote directory /home/user/bak/

Login as user places me at /home/user/ therefore I only need specify bak/ as the destination directory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie trying to write a simple backup script to backup a single folder Nd for school stryker759a Linux - Newbie 2 09-16-2009 08:52 AM
Need help with script to organise files into folders as part of DVD backup script jasybee2000 Linux - Newbie 5 06-15-2009 07:29 PM
how to create backup MYSQL Script to backup my database for every 1hour RMLinux Linux - Newbie 3 11-20-2008 10:13 AM
Need backup script. gtrawoger Linux - Software 2 07-17-2006 07:31 AM
Backup script raptorman Programming 4 08-22-2005 09:52 AM


All times are GMT -5. The time now is 05:40 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration