I am trying to ssh from my computer at work into my home PC. My work computer is running mac os x 10.6.3, home PC is running ubuntu.
At home I have multiple PC's hooked up through a router and modem. I have gone into the router settings and set up port forwarding to forward ports 22 and 175 to my linux pc. (22 is the standard ssh port, I set 175 as well for testing).
I then got the external IP of my home network (Which I believe is pointing to the router?), 66.***.***.***.
Trying to run ssh from my work computer I get
I also tried telnet
All of these commands going to any port other then 175 have a 30-60 second delay before saying connection timed out. The connection refused message on port 175 comes immediately after typing the command.
ping does work, gives results like
Can anybody help? I am not sure what is going wrong.
I did set up port forwarding on my router to send ports 175 and 22 to the ubuntu machine.
Also, I found out that sshd was not listening to port 175, so I fixed that. However, now I get the operation timed out error on both ports 22 and 175, so I am inclined to believe that I am getting through the router but not getting into the machine, otherwise changing settings on the ubuntu machine shouldn't change the error.
However, ssh to the ubuntu machine from others on my home network works so it's only getting in from outside that is a problem.
Is there a firewall in ubuntu that is by default on that I would have to change settings on to make this work?
Ubuntu has all the ports close by default. It has iptables as a firewall.
To open ports you can use a GUI utility like Firestarter or you can use the command line utily ufw that is installed already. These are just front-end managers.
Here's is an example to some configuration using ufw (uncomplicated firewall)
I think you have some problem with your router not Ubuntu.
Try these:
1. Reboot your router.
2. Just in case, under Ubuntu restart SSH:
3. Try connecting again.
By the way did you try to SSH to your work computer from your home Ubuntu?
Try SSH to your work computer and when in it try to SSH back to your home Ubuntu.
---------- Post updated at 10:23 AM ---------- Previous update was at 10:17 AM ----------
Quote:
Originally Posted by Aia
Ubuntu has all the ports close by default. It has iptables as a firewall.
To open ports you can use a GUI utility like Firestarter or you can use the command line utily ufw that is installed already. These are just front-end managers.
Here's is an example to some configuration using ufw (uncomplicated firewall)
Ubuntu has all the ports close by default. It has iptables as a firewall.
To open ports you can use a GUI utility like Firestarter or you can use the command line utily ufw that is installed already. These are just front-end managers.
Here's is an example to some configuration using ufw (uncomplicated firewall)
If all of the ports were closed wouldn't it block an ssh connection from another computer on my home network? I mentioned before that sshing around within my home network works fine, it's just coming in from outside that does not. Or does iptables distinguish between local and global connections?
@daynews
I don't believe I can ssh in to my work computer from home. At work it's on a fairly large network and I have no access to the networking routers or anything to do port forwarding. If the problem is on that end I am probably out of luck.
I will try changing the rules on iptables when I can.
If all of the ports were closed wouldn't it block an ssh connection from another computer on my home network? I mentioned before that sshing around within my home network works fine, it's just coming in from outside that does not. Or does iptables distinguish between local and global connections?
I will try changing the rules on iptables when I can.
I was misinformed about Ubuntu having all ports closed in the desktop. The firewall is installed but by default accepts any connection. Regardless, you were able to connect inside your LAN. That rules out that is a port issue at the target host.
Don't mess with iptables rules before you figure your remote issue.
You said that you forwarded the proper ports in you router? Do you have only a router connected to you system, or there's any other device in the middle?
I have one computer with internet connection and printers that I would like to connect to another computer to use as a practice/test Server. I would like the server to access the other computer by a direct connection of some sort because I don't see the point of aquiring the hardward (ethernet... (5 Replies)
hello i have a ubuntu ssh server that i can acess from any of my comnputers but only if they are on the same wireless network as the server. i tested trhis my tehtehring my samsung blackjack to my windows partition and installing openssh to windows it works when windows is on the wireless but no... (1 Reply)
Hello world!
I'm writing to you from Chile, Southamerica, and need a little help with my tiny home netwk.
Hope you can give me a hand because this thing is breaking my balls.
This is what i have:
1 windows box with XP pro (server)
1 linux box with DSL (box)
1 wrt54gl router with dd-wrt... (1 Reply)
I have a Windows laptop and a Sparc desktop. I'm trying to toy around with routing.
If have always on broadband from BT. My router ipaddress is:
192.168.1.1
This router uses DHCP.
My Laptop Ip is as follows:
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :... (2 Replies)
I recently received an e-mail from "the faculty" at Unix-dot-Com and I was reminded of this notable resource for folks learning about Unix and its clone, Linux. I hadn't posted anything in two years and during that time, I have been working, in my spare time, on a home network combining two Linux... (2 Replies)
Does anyone noe why /home n /packages r usually kept remotely..as in network base by administrators?is it because of security reasons???
thanks. (2 Replies)
Hi All...
I have never really touched any form of unix so any help would be appraciated.
I am looking at creating/building another PC to add to my network for storage purposes only.
Would unix be the best OS to use in this situation as all I have available to me is a very low end PC.
As... (10 Replies)
having trouble with my home XP Network. I have 2 machine running xp but the server cant access or see the second computer. Both can ping each other and i have file and printer sharing installed. HD'S are sharded. Any ideas ? (2 Replies)
i just linked 2 100MHz Linux kernel 2.4.2 boxes togeather using a direct cable connection, on two 3Com PCI network cards, using the EtherLink III chipset. Unfortuanately, when I boot both PCs, i get a loading interface: eth0 for five minutes, then a failed flag. No networking suppt. in windows,... (2 Replies)