You can use telnet to find out if you have connectivity to an open TCP port.<br><br>So <i>telnet <your-public-ip> 22</i> should just open with a banner like "SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu3".<br><br>It should just work from any machine within your own network (granted that you properly forwarded that port and disabled any firewalls). If that works, then you should test it from somewhere else, which should also work but then you depend on port TCP/22 being allowed (outbound) wherever you decide to run that from.<br>
<br>If you're considering leaving SSH open to the world, make sure you have a strong password and not obvious username as well as iptables/fail2ban or something of that nature to protect yourself. There are a lot of wannabe hackers out there scanning public IPs.<br>
<br>Rafael<br><br><br><div class="gmail_quote">On Thu, May 20, 2010 at 8:32 AM, Stephen <span dir="ltr"><<a href="mailto:stephen-d-bJEeYj9oJeDQT0dZR+AlfA@public.gmane.org">stephen-d-bJEeYj9oJeDQT0dZR+AlfA@public.gmane.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I have set up OpenSSH on my Linux server and Putty as a client on my Windows laptop.<br>
<br>
They connect just fine at home.<br>
<br>
I set the router's firewall to forward port 22 to the Linux server.<br>
<br>
I can ping the router just fine. But I get unable to connect errors when trying to connect using SSH.<br>
<br>
How can I diagnose this?<br>
<br>
I am thinking that I connect the laptop to the WAN port on the router, hard code IP's for the wan port and the laptop and go from there. Am I on the right track?<br>
<br>
Thanks<br>
Stephen<br><font color="#888888">
--<br>
The Toronto Linux Users Group. Meetings: <a href="http://gtalug.org/" target="_blank">http://gtalug.org/</a><br>
TLUG requests: Linux topics, No HTML, wrap text below 80 columns<br>
How to UNSUBSCRIBE: <a href="http://gtalug.org/wiki/Mailing_lists" target="_blank">http://gtalug.org/wiki/Mailing_lists</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Rafael Carneiro<br><a href="http://ca.linkedin.com/in/rcarneiro">http://ca.linkedin.com/in/rcarneiro</a><br>