PDA

View Full Version : Access work PC from home?



A. Jorge Garcia
03-08-2004, 02:25 AM
At work I setup a fileserver that all my students can login to and save/print their files. My students and I would like to access this server from home.

I'll be using my hdinstalled PCs at home, but my students will probably use a liveCD I burn for them. If I give that PC (fileserver at work) a static IP so I can access it from off campus, am I likely to run into any problems? If I setup ssh on the work PC, can I use fish:// from home in Konqueror to acces my work files from home? Has anyone done this, is there a better way?

TIA,
AJG

OErjan
03-08-2004, 08:51 PM
sftp? it may be slightly basic but is extremly fast to setup. just make the crypt-keys and start the sshd.
i have this script (on a floppy) to generate my keys in knoppix, that is the cdvariant.
i use a Swedish keyboard so it sets that aswell, you may edit as you wish.


loadkeys se-latin1.kmap.gz; ssh-keygen -t rsa -f /etc/ssh/ssh_host_key; ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key; ssh-keygen -t rsa -f /etc/ssh/ssh_host_dsa_key; sshd; passwd knoppix

hope it helps
OErjan

redeagle
03-09-2004, 12:39 AM
ok, i would like to do this as well but i am really lost about it... i am running xp on home pc which is where i would like to serve the files with dsl connection and get to them with linux over the net..

i do not understand what ur script does or how to set up the file share

sorry such a noob

A. Jorge Garcia
03-09-2004, 01:26 AM
OK, I've never used scp. IIRC, I'm using KNOPPIX hdinstalled at home and at school. My students will likely be using a liveCD at home to access the hdinstall at school.

TIA,
AJG

OErjan
03-09-2004, 04:32 PM
scp, sftp and the rest are acessed in console by typing for sftp:

sftp username@ip.nu.mb.er say.

sftp al_bundy@127.0.0.1
now you can use the comand "get" and "put" to do just that say :

get shoppinglist.txt
For more comands... just hit ? inside sftp.

redeagle
my script just generates the encryption keys needed for sshd to run with encryption, only needed once on a hdd install (im lazy, just wrote the script to avoid typing).

sshd is not easy to get going on XP AFIK.
acessing FROM XP? that works, just install EDIT sorry, somehow the link is remade into knoppix.net. oh well here is the right one http://www.chiark.greenend.org.uk/~sgtatham/putty/ putty /EDIT and type sftp...

If you can, put a linuxbox where you store the files you want to acess (a knoppixcd would work, i have done that several times (50+times).
even with the files on your regular XP hdd you should get read acess to your hdd.

A. Jorge Garcia
03-09-2004, 09:27 PM
Oh, OK, I meant I never used sftp. I've used scp in a shell and found it a lot more complicated to use than fish in konqueror.

Using fish, I need only setup sshd. To use sftp, how do I set up an ftp server daemon - do I have to?

This will work from off-campus (internet + static IP) just like it does on-campus (intranet + DHCP)? I've done scp and fish on-campus without static IPs.

BTW, switching my on-campus file server to static IP won't affect my students loging into it on-campus using an X client and kdm (as they do now on DHCP - no static IPs) will it?

TIA,
AJG

OErjan
03-09-2004, 09:44 PM
sftp is a part of ssh, so running sshd will automatically give you sftp :D.
happy surfing.
i do not know, i am not a networking guru, just a mere user. i have both static and dhcp in my home network and things work well, aslong as i have the right ip forwarded from my router or server (okok a p1 133Mhz is not much of a server but...).

redeagle
03-10-2004, 12:25 AM
i followed link but did not see anything putty, i have a gigafast router, wifi, if that helps, if i understand u i can share files on one of the windows machines by just booting to the knoppix and ftp into if from afar and have access the the fat32 or ntfs hd partitions.. but im not sure about the port forwarding thing or if i am right and what putty is, the link took me to knoppix home page and did not see anything like that there

i appreciate ur help it is great to see people helping eachother, nice thing about linux i think, i have allot to learn, we are using linux 9 at work it is allot to learn

OErjan
03-10-2004, 08:35 PM
Putty is a way to allow a computer running windows to access a lunux/unix box with ssh, sftp...
yes you can use knoppix to run sshd on your home computer, as you probably know you have access to your disks in knoppix, but only read access if i remember correctly.
just boot knoppix, generate the keys and start sshd. now you need to know your ip, and possibly forward port 22 to the desird computer on the internal network..

to be more precise on how to forward the port it would help to know model, there are some 12 different from gigafast (address for manuals is here, thanks google http://www.gigafast.com/Support/wirelessSupport.htm ). there should be a good guide in the manual, if not ask further (i found something around page 40 in one of the manuals so...) btw. it is usually port 22 that is ssh,

EDIT here is the correct Putty link
http://www.chiark.greenend.org.uk/~sgtatham/putty
/EDIT