Isn't that restriction an OS thing ? Maybe you need to run the java process as root to be allowed to bind to port 22 ?
On Wed, Dec 5, 2012 at 1:55 AM, Ramakanth MS <ramakanth...@gmail.com> wrote: > Hi, > > > > I am trying to implement Apache Mina (SSHD) as a SSH for our product on a > linux OS. Mina SSHD will replace the native SSH and listen on port 22. I > have tried setting the port as 22 and start the SSHD Server, results in a > PermissionDenied Exception. This is due to the port number < 1024 and > requires root access. > > > One of the way of working around this is to have a port redirection say, 22 > to 45000. Are there any other mechanisms using which I can have Mina SSHD > to use/listen on port22 > > Appreciate any help/pointers > > Thanks, > Ramakanth > -- ------------------------ Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ FuseSource, Integration everywhere http://fusesource.com