Setting up Linksys WRT54GL for Remote Server

Jim mickeyboa at sbcglobal.net
Thu Dec 18 00:06:02 UTC 2008


Les Mikesell wrote:
> Jim wrote:
>
>>>> Map port 8122 on the external IP to be routed to the first box's 
>>>> port 22
>>>> Map port 8222 on the external IP to be routed to the second box's 
>>>> port 22
>>>>
>>>> When you want to log into the boxes remotely, specify the port as part
>>>> of the command:
>>>>
>>>> ssh -p 8222 example.com
>>>> ssh -p 8122 Yo.ur.IP.Address
>>>>
>>>> or
>>>>
>>>> scp -P 8122 yourfile example.com:
>>>>
>>>> Note that Secure Copy (scp) uses capital -P while Secure Shell (ssh)
>>>> uses lowercase. Trips me up all the time.
>>>>
>>>>   
>>> I'm using NX for my remote connections on both ends.
>>> How would I do this using NX ?
>
> Click the 'configure' button and type in the 'Port' value next to the 
> Host where it current has 22.
>
>>> So I think what your saying is, in the WRT54GL (Server) , "port 
>>> forwarding",
>>> map 8122 to 22 to 192.168.1.253
>>> map 8222 to 22 to  192.168.1.254
>>> That's on the Server side.
>>>
>>> But on the client side in NX for each user on server, how do you 
>>> treat that in NX ?
>>>
>> I tryed to map 8222 to 22 on Port Forwarding in  WRT54GL, but it 
>> switches the ports around after "saving settings", to 22 in first box 
>> 'to' 8222 in second box.
>>
>> What am I doing wrong ?
>
> If you can't get it to map different port numbers, you can make sshd 
> listen on a different port - see /etc/ssh/sshd_config.
>
This is the section for port assignment in /etc/sshd_config, what should 
be changed ?

#Port 22
#Protocol 2,1
Protocol 2
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::




More information about the users mailing list