[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1085
  • Last Modified:

scp one big file(45gb) file from one host to another host

Experts,

i had one question. i need to copy file (45gb) file from one host to another host. how do i do that. i want to run this scp in nohup mode. because i can get problem with timed out.

can any one give the script to run the scp in nohup mode
0
pavan27
Asked:
pavan27
5 Solutions
 
TintinCommented:
nohup scp file host:/path &

0
 
pavan27Author Commented:
Thanks for reply.

how do is give password. can you send me full syatax.

my host name as are host1 and host2
0
 
TintinCommented:
Are you able/permitted  to set up ssh keys?  That would be the easiest option.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
wwnosalCommented:
nohup scp -i key_file  file_to_copy user_name@host1:/path/to/your/file.ext &
0
 
pavan27Author Commented:
what is key_file here. i did not understand key file here

how do i setup ssh keys?
0
 
TintinCommented:
On host1, type in

ssh-keygen -t dsa

Press enter for the all the prompts.

copy the $HOME/.ssh/id_dsa.pub to host2 and put it in

$HOME/.ssh/authorized_keys

make sure .ssh directory has perms of 700 and authorized_keys has perms of 600
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

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