[Novalug] connecting two computers together

Oscar oscar@oscarm.org
Tue Jan 24 16:36:29 EST 2012


On 01/24/2012 04:04 PM, Nino R. Pereira wrote:
> Hi,
>
> putting the subject matter in google gives me all kinds of hits,
> but I'm not competent enough to untangle them all. So, I'm asking
> for a little guidance.
>
> I have 3 computers connected to a single wireless hub that talks
> to the wireless transmitter on FiOS. Another one is stand-alone,
> also wireless but with a wireless card: it also has an ethernet port.
>
> Question 1: Is it possible to connect by ssh from one of those hub-connected
> computers to another one? How do you find out which IP address
> to use?
>
> Question 2: can you do the same through the wireless? Or is it better
> to run another ethernet cable to the hub (which allows another connection)?
>
> A simplified answer, or maybe a pointer to a web site that explains
> it all is highly appreciated.
>
> Thank you,
>
> Nino
>
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug
Use ifconfig (might have to do sudo ifconfig)  to figure out each 
computer's IP address. You might also be able to figure this out from a 
router, if it has a page listing connected devices.  If you're using 
network manager w/gnome you can get the IP address via looking at the 
network connection's properties.

To be able to ssh from one machine to the other(target), the target 
machine has to be running the sshd (ssh daemon). As long as its running, 
you can ssh to the target machine with a user account that exists on target.

Example
Machine A - is your laptop, your user account is "john"
Machine B - is your desktop, your user account here is "jdoe"

to ssh from A to B, B has to be running SSH and you'd connect with ssh 
jdoe@<machineB's ip>

Depending on your distro, setting up ssh may differ, and you might need 
to update some files like hosts.allowed or firewall settings to allow 
access to the ssh server and its ports.

Once you have it running, its pretty handy. Besides using SSH, you can 
use scp to copy files from one to the other, use rsync over ssh to 
synchronize directories, or mount a remote directory via sshfs.



More information about the Novalug mailing list