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? |
Hello,
What do you mean connect them? What exactly are you trying to do, and what do you want to accomplish? Cheers, Josh |
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.
|
Ahh ok. What you want to do is setup SSH I presume?
|
If that's what it takes, yeah. Can you point me at a tuturial??
Both have Fedora 15 |
Sure.... Here you go:
http://www.google.com/search?hl=en&s...&aqi=&aql=&oq= |
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!! |
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.
|
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.
|
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 |
Both computers have port 22 open, the check box is ticked in the firewall gui for ssh port 22.
|
Can you verify for us by running the following?
Code:
iptables -L |
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@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 |
what does
Code:
ssh localhost |
All times are GMT -5. The time now is 08:01 PM. |