Thanks Stephen Herr, Stephen Casey and Rajneesh Hegde. :-D
My Router can not do port mapping from the router's port to a different
internal port at the PC, it's a 1 to 1 deal. I was able to edit the
etc/sshd_config file and set both of my sshd servers to run on a
different port than 22. I'm now able to log in fine with both Putty and
WinSCP (sftp gui program). Once on my local machine, I can also use the
following commands to get to the other local machines:
ssh -p 55002 userid@my.ip.address
sftp -oPort=55002 userid@my.ip.address
In this example, 55002 is the port my sshd is running on and you can
substitute the domain name for "my.ip.address" if you have one. It all
worked fine :-D
Greatly appreciate all of your help, thanks - Alan
sherr@con-span.com wrote:
>
> Alan,
>
> I currently have several servers running on a port other
> than 22. The ISP for the home office took it upon himself
> to protect his clients from hackers and blocks port 22 at
> the ISP gateway. Therefore, I had to work around. As
> others have mentioned, you can change the sshd_config
> file to listen on a port other than 22 by un-commenting
> the Port 22 line then changing the 22 to something else.
> Now this assumes you can get through a router from
> the wan to the LAN on that port.
>
> Now at home and at a different office I have local DSL
> service with a far less complex router. It allows me to
> do port forwarding of the simplest type. Any connection
> to a specific port, say 322, on the router can be forwarded
> to a single machine on the LAN side by IP address only.
> When it is forwarded to that machine it is still 322, thus
> the ssh daemon has to listen on 322 on that machine.
> Another port to another machine. Now some routers I
> have seen are able to forward the port to an IP and port
> so all machines on the LAN side can listen on 22 but
> you still need a different port per machine on the WAN
> side.
>
> And like someone said, to hit any of these versions,
> you have to set the client to the right port using the
> -p switch followed by the port number.
>
> Stephen
>
> Stephen Herr
> Dir. of Information Systems
> CON/SPANŽ Bridge Systems
> http://www.con-span.com
>
>
> Alan Vinh <alanvinh@verizon.net>
> Sent by: ssh-bounces@erdelynet.com
>
> 06/18/2004 08:45
> Please respond to
> alanvinh@verizon.net; Please respond to
> Secure Shell Discussions <ssh@erdelynet.com>
>
>
> To
> Secure Shell Discussions <ssh@erdelynet.com>
> cc
>
> Subject
> CYGWIN--SSHD on a port other than 22?
>
>
>
>
>
>
>
>
> Hi,
>
> Has anyone tried running the cygwin sshd on a different port than 22
> and was successful at it?
>
> I want another machine to be online that is behind my router. I can
> log into the one machine running on port 22, then go to the other
> machine behind the router using its local IP address, but this doesn't
> seem to be very reliable,
> sometimes ssh and sftp just hang trying to get to the other local
> machine and ping can't reach it either. It seems to be with my flaky
> router(?) but I'm curious if the other machine behind the router can
> use a different port
> rather than the default port 22 for the sshd so that I can see it on
> the net too.
>
> BTW, I can get to both machines' web servers via different ports so I
> know they're both online on the internet.
>
> Please help. Thanks - Alan
>
> --
> List Information: https://mail.erdelynet.com/mailman/listinfo/ssh/
> List Archives: http://erdelynet.com/archive/ssh-l/
> To Unsubscribe: Go to
> https://mail.erdelynet.com/mailman/options/ssh#subscribers
> and enter your email address at the bottom.
> If you don't know your password, have it emailed to you. Then unsubscribe.
>
-- List Information: https://mail.erdelynet.com/mailman/listinfo/ssh/ List Archives: http://erdelynet.com/archive/ssh-l/ To Unsubscribe: Go to https://mail.erdelynet.com/mailman/options/ssh#subscribers and enter your email address at the bottom. If you don't know your password, have it emailed to you. Then unsubscribe.Received on Sat Jun 19 19:36:08 2004
This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:34:10 EDT