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
LVL 1
pavan27Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
TintinConnect With a Mentor Commented:
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
 
TintinConnect With a Mentor Commented:
Are you able/permitted  to set up ssh keys?  That would be the easiest option.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
wwnosalConnect With a Mentor Commented:
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
 
TintinConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.