LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   home network (https://www.linuxquestions.org/questions/linux-networking-3/home-network-903253/)

Pedroski 09-15-2011 06:56 PM

home network
 
I would like to connect my old laptop and the new one. They are both connected to the dsl router and the internet.

How do I connect them? What program should I use?

corp769 09-15-2011 07:01 PM

Hello,

What do you mean connect them? What exactly are you trying to do, and what do you want to accomplish?

Cheers,

Josh

Pedroski 09-15-2011 07:14 PM

I want to access my old computer from the new one, take lots of things off it, and generally just learn a bit how to set up a home network under Fedora.

corp769 09-15-2011 07:16 PM

Ahh ok. What you want to do is setup SSH I presume?

Pedroski 09-15-2011 07:24 PM

If that's what it takes, yeah. Can you point me at a tuturial??

Both have Fedora 15

corp769 09-15-2011 07:29 PM

Sure.... Here you go:
http://www.google.com/search?hl=en&s...&aqi=&aql=&oq=

Pedroski 09-15-2011 08:55 PM

Well, that didn't get me far: I am pedroski@fangshan on this machine. On the new laptop I am pedro@fangshan. How will ssh know how to find pedro@fangshan? pedro@fangshan is somewhere behind the router.

I have port 22 open on both machines, but if I try

[pedroski@fangshan ~]$ ssh pedroski@fangshan
ssh: connect to host fangshan port 22: Connection refused
[pedroski@fangshan ~]$
So I can't even ssh to myself on the old laptop. How will I connect to the new one?

If I try to connect to pedro@fangshan I get nothing.

I know, more tutorials!! Maybe I shouldn't have two computers called fangshan!!

corp769 09-15-2011 08:59 PM

Most likely, you need to open port 22 in your firewall. Do you know anything about iptables? Under Fedora 15, navigate to your firewall preferences under administration, and open the port. You can also do it from the command line, which I prefer, but I won't put too much strain on you, since it seems you don't know much about linux.

corp769 09-15-2011 09:00 PM

I also noticed that you have the same hostnames for both computers on your network; You should really rename one of them to something different, as this can be affecting it also. You should never have duplicate hostnames on the same network.

schneidz 09-15-2011 09:18 PM

if you use ip addresses then they will be unique.
you can determine ip addresses by using ifconfig

also, check out sshfs.

edit: we should make sure sshd is running on both machines:
Code:

sudo service sshd status

Pedroski 09-15-2011 09:20 PM

Both computers have port 22 open, the check box is ticked in the firewall gui for ssh port 22.

corp769 09-15-2011 09:22 PM

Can you verify for us by running the following?
Code:

iptables -L
Also, have you changed one of your hostnames yet? That would definitely be conflicting within your problem. Also, try it by IP address only, as stated by schneidz.

Pedroski 09-15-2011 09:28 PM

My ip is dynamic, at the mo this machine has:

ppp0 Link encap:Point-to-Point Protocol
inet addr:114.222.233.148 P-t-P:114.222.232.1 Mask:255.255.255.255 the other laptop has a different number.

Can I ssh right into it?

I tried from the old to the new:
[pedroski@fangshan ~]$ ssh 180.110.99.183
ssh: connect to host 180.110.99.183 port 22: Connection refused
[pedroski@fangshan ~]$
but the port is ticked!

Pedroski 09-15-2011 09:31 PM

[pedroski@fangshan ~]$ su -c 'iptables -L'
Password:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

schneidz 09-15-2011 09:31 PM

what does
Code:

ssh localhost
yeild ?


All times are GMT -5. The time now is 08:01 PM.