Originally Posted by
peng2
Hi papibe, I have another question. If I want to 'push' the file from the remote server to my local folder, how should I do it?
There a few ways to accomplish that. First you need a service running on your home computer. The common tools most of us use is openssh, as SeijiSensei suggested. Install it like this:
Code:
sudo apt-get install openssh-server
As an easy, and temporary solution, you can use a reverse ssh tunnel:
On your home machine connect to the server:
Code:
ssh -R 23456:localhost:22 serveruser@remoteserver
enter the password and login normally.
You have created a reverse tunnel from the server on port 23456 to your home computer's port 22 (sshd). Now you can run this on the current session on the server and 'push' the file to your home machine:
Code:
scp -oPort=23456 /path/to/file your_home_machine_user@localhost:
Once you have copied your file, you logout and the reverse tunnel is destroyed.
For a permanent way to access your home computer from the Internet take a look at this post here.
Hope it helps.
Regards.
Bookmarks