Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 5510  / 1 Year ago, mon, february 13, 2023, 9:31:17

I have a Ubuntu virtualbox installed Ubuntu Server. My local machine has Ubuntu 12.04 OS. I need to copy files from the /var/www in the virtualbox Ubuntu Server in to my local machine. (My network settings in virtualbox is "Bridged Adapter" and it has a static IP: 192.168.56.101)
My local mchine IP is : 192.168.56.1



I tried following



scp -r test.php [email protected]:


It says



Port 22: No route to host
lost connection.


What is wrong here?


More From » 12.04

 Answers
0

First make sure that you have openssh-server installed on your local machine, if not:



sudo apt-get install openssh-server


Then from your Virtual Machine:



scp /var/www/test.php [email protected]:/home/nilani


Alternatively you could do the other way around, this time from your local machine:



scp [email protected]:/var/www/test.php .

[#26223] Tuesday, February 14, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cupwire

Total Points: 365
Total Questions: 126
Total Answers: 125

Location: Malaysia
Member since Thu, Feb 16, 2023
1 Year ago
;