-   Linux - Networking (
-   -   Connect to work box from home box (

slackist 09-17-2004 08:29 AM

Connect to work box from home box

I am moving jobs and I want to get my docs, pics and stuff from my work box onto my home box and hopefully learn something new in the process :) by doing it over the net.

Both machines run Slackware 9.1, and I have root access to the work box (and obviously home one too)

I know the IP address of the work LAN and also my work machines internal address as given by ifconfig.

I have pretty much no idea where to start. I haven't ever done any sort of remote log-in so I'd like to find a guide telling me how to do it.

I also don't know how to set up the work machine to allow a remote connection, what kind of extra software I'll need if any, if I need to run some sort of server on the work machine etc etc.

Many thanks for any links and suggestions


ps I would ask our sysadmin for help but he's away for a couple of weeks and his assistant only knows how to re-install Windows, actually I think that is all the assistant ever does :p

bruno buys 09-17-2004 08:53 AM

Yes, you must have a server on the work machine. It can be a ftp or a ssh. I recommend ssh. ssh is quite standard these days, chances are the machine already have it installed. But the command to start it may vary. In my suse I do "rcsshd start/stop" to manage it. On debian, its already started. Once you have the server started, you can try to log into it (first log in the same machine, just for testing): open a console and do "ssh machine", where machine is the name/address. It will present you with a prompt for logging in. If yes, the ssh server is ok.
At home, open a console and do "ssh machine" where machine is the ip of your work server. Everything shall be just similar. ssh will give you a command line where you can copy files/folders.

Post again if there's any problems.

EDIT: For all this to work, your work machine must have either a public ip (not internal) or a port redirectioning by the router/gateway.

barisdemiray 09-17-2004 08:55 AM

Your work box accesses to internet through another machine and doesn't have a real IP address, right? If so, easiest way is using scp on work box as:


scp -rv my_work_files/ chefmark@home_ip:
scp is a secure copying utility that uses SSH when connecting.

But if you want to learn some more and install a server on the work box; then i think you can forward a port on the gateway machine of your work box to port 21 (of your work box) and install a ftp server on your work box. You can read some manual from the abour port-forwarding with iptables.

slackist 09-17-2004 10:08 PM

Thanks for the ideas,

mardanian 09-18-2004 05:34 AM

yes scp is pretty good for secure copying over a net. and I hopes you can now eaily copies your files from work box to your home box if..........
you can access the work box from home via ssh then things are pretty easy for you.

All times are GMT -5. The time now is 09:37 AM.