• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 403
  • Last Modified:

backup on a remote DLT drive using ssh

Hi All,

I have two solaris machines. One of them has a backup drive attached to it, and I take backup of the other machine using ufsdump like this:
ufsdump 0ucf 111.111.111.111:/dev/rmt/0n /
And on the remote host, I've allowed my host to connect without a password in the .rhosts file. Which is not secure.

How can I do this implementation using SSH? I think using scp, but i'm not aware of the details.

Thanks.
0
kalmen
Asked:
kalmen
  • 2
  • 2
2 Solutions
 
tfewsterCommented:
0
 
tfewsterCommented:
P.S. Do you already have ssh set up to work without passwords?

I think the direct ssh replacement for your existing command would be:
ufsdump 0ucf - / | ssh 111.111.111.111 "dd of=/dev/rmt/0n"
0
 
yuzhCommented:
Use:

ufsdump 0ucf - / | ssh root@111.111.111.111 "dd of=/dev/rmt/0n"

you might endup have to use "dd of=/dev/rmt/0n obs=128b", it depands on your
network connetions.

also see:
http:Q_20173314.html
0
 
kalmenAuthor Commented:
Thank you both.
Now, I come to an interesting question. How can I set up ssh to work without passwords? Do I install my key at the remote server's trusted keys?

0
 
yuzhCommented:
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now