Re: Setting up a Linksys WRT54G router for SSH port forwarding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/04/2010 07:08 PM, Sam Sharpe wrote:
On 5 October 2010 00:02, Jim <binarynut@xxxxxxxxxxx> wrote:
 Fedora 12 on both computers
That's irrelevant. This isn't a Fedora problem, this is a basic
networking problem.

I have two computers setting behind this Linksys WRT54G router and I
want to connect to both of them by SSH remote across the Internet.    I
have the internet IP for this router.

I have Googled the Internet and found out how to setup one on port 22 ,
but not Two computers using SSH port 22
You can't do this, which is why Google isn't giving you any hits.
Think about it...

If you connect remotely to port 22 on the internet ip of the router,
how would it know which server you were intending to connect to?
Routers are very clever these days, but I haven't seen any with ESP.

You need to run SSH on a different port on one of these machines and
forward that port on the router to that machine.

--
Sam
 So  I assume I would have to do it this way,   in router ,      ssh     22      2222    both   192.168.1.101   enable         and go into /etc/ssh/sshd_config on 192.168.1.101 (computer #2) and set port to 2222.

To set iptable rules , how would I do that for port 2222 ?
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux