LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   DamnSmallLinux (https://www.linuxquestions.org/questions/damnsmalllinux-42/)
-   -   connect two pc's , dsl and ubuntu feisty (https://www.linuxquestions.org/questions/damnsmalllinux-42/connect-two-pc%27s-dsl-and-ubuntu-feisty-586317/)

firedancer 09-21-2007 08:15 AM

connect two pc's , dsl and ubuntu feisty
 
I have problems getting the two pc's to "respond" to each other

i'm not sure about the configuration , that's what i need help with

i have a crossover cable
using no router


i'm new to this , so pls excuse me , if my question isn't clear enough.


happy linux user :)

blackhole54 09-21-2007 09:57 PM

You need to be a little bit clearer about what you mean by "respond to each other".

The cross over cable is correct if you are directly connecting them together. (Some of the newer hardware will tolerate either kind of cable.) You will need to manually give each computer its own IP address. (For example you could assign the DSL machine 192.168.0.2 and the Ubuntu machine 192.168.0.3.) But at this point, all you could do is have each machine "ping" the other. If you want to do anything more, you need to figure out what you want to do. Perhaps do file sharing using SAMBA? Or SSH from one computer to the other?

firedancer 09-24-2007 07:38 AM

okay, well i followed the steps , and had the pc 's ping each other ,

but i'm not sure if it was done correctly,
my configuration was a little bit different

firedancer 09-24-2007 08:11 AM

SSH is a good start , i'll do some reading about t later on ,

i can ping both pc's now ,setup is somewhat different, so pinging might make me see that there is a connection , but not setup correct

so any suggetions how to start using ssh is alrite

and another questions , how can i find out the vncviewer code/name of my dsl box
ubuntu's is easy to find

thnx 4 rply Blackhole54

firedancer 09-24-2007 08:17 AM

SSH , is good to start


pinging works (kind of) , no error message, maybe i'm wrong

i didn't give pc's static ip , but will do that

thanx

blackhole54

blackhole54 09-24-2007 03:23 PM

A successful ping will look something like this:

Code:

$ ping 192.168.1.xx
PING 192.168.1.xx (192.168.1.xx) from 192.168.1.yy : 56(84) bytes of data.
64 bytes from 192.168.1.xx: icmp_seq=0 ttl=64 time=1.104 msec
64 bytes from 192.168.1.xx: icmp_seq=1 ttl=64 time=1.107 msec
64 bytes from 192.168.1.xx: icmp_seq=2 ttl=64 time=1.085 msec

(I obfuscated my addresses with "xx" and "yy"). This will keep going until you stop it with a Ctl-C.

I don't know how you could successfully ping unless both boxes had an IP address. I don't believe you have DHCP set up, so you would need to assign them manually. The only other possibility is zeroconf which I really don't know anything about.

Both Ubuntu and DSL have an SSH client installed. The box you want to SSH into must have sshd running. DSL has this installed and you can start it from the control panel. By default Ubuntu does not have it installed. If you wish to SSH into Ubuntu, you will have to install the openssh-server package.

As I understand it, these computers will not be connected to the Internet. If you ever do decide to connect them to the Internet, be very careful about exposing sshd to the Internet. There is a lot of activity of people trying to crack into computers via SSH. If you ever decide to do this, there are lots of articles on the Internet about securing SSH.

firedancer 09-25-2007 09:07 AM

yes setup is dhcp




thank you for the insight on using and securing ssh


All times are GMT -5. The time now is 01:53 AM.