Support Questions

Find answers, ask questions, and share your expertise

SCP file transfer between Hortonworks Sandbox to Windows local host

avatar
New Contributor

Hi everyone,

 

I just installed virtualbox ad hortonworks sanbox.  I want to copy files between my local host and Sandbox using SCP.  I used this command and getting errors.

 

[root@sandbox-hdp ~]# scp -P 2222 root@sandbox-hdp.hortonworks.com:/root/saketh/sample1.txt C:\Users\satvi\Desktop\test\sample1.txt
ssh: connect to host sandbox-hdp.hortonworks.com port 2222: Connection refused
 
root@sandbox-hdp ~]# scp -P 4200 root@sandbox-hdp.hortonworks.com:/root/saketh/sample1.txt C:\Users\satvi\Desktop\sample1.txt
ssh_exchange_identification: Connection closed by remote host
 

Thanks

Saketh 

3 REPLIES 3

avatar
Expert Contributor

Hello

 

Make sure you configure in Windows hosts file for "sandbox-hdp.hortonworks.com" with a proper IP address

avatar
New Contributor

Thank you for your quick response.  i am new to this technology and not sure how to implement your solution.  Do you mind elaborating?

 

Thanks

Saketh

 

avatar

Hi @Saketh 

 

If you are new to the HDP Sandbox and you don't understand what @Daming Xue is referring to, I highly recommend you review the tutorial Learning the Ropes of the HDP Sandbox and specifically the subsection Map Sandbox IP to Your Desired Hostname in the Hosts File as the procedure is described in detail there.

 

 

Bill Brooks, Community Moderator
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.