PDA

View Full Version : 100% newbie question



Schopenhauer101
07-18-2004, 01:01 AM
Hi!

Ehh, hum, yes really newbie question i belive.
This is how it goes:I got two old laptops with Debian-install on em. Both are connected to the internet via a LAN routher/"modem". How can i connect the computers to eachother in the fastest, easiest way possible?
I will try to save myself from further embaressment by not telling you how long time ive been searching the net about how to do this. Should it be done by ftp? With shh and Secpanel or anything like that? Im really suprised myself that i havnt fixed this without having to ask for help.

Take care!
/Björn.

mzilikazi
07-18-2004, 02:03 PM
It would be quite easy to use ssh. You simply need to generate ssh keys on each box



ssh-keygen -b 1024 -t rsa1 -f /etc/ssh/ssh_host_key -N ""
ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
ssh-keygen -b 1024 -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""

Start the ssh server:


/etc/init.d/ssh start

then ssh into a box on your LAN (for example)


ssh Björn@192.168.1.101

Also mc is great for ssh files transfer. Fire up mc (in a shell of course) then hit F9 and use Shell Link. I use it all the time both on my LAN and from outside the LAN.