Re: IPv4: ssh failure, local port 1023

Geert Uytterhoeven (
Wed, 2 Dec 1998 09:17:41 +0100 (CET)

On Tue, 1 Dec 1998, Ben Collins wrote:
> On Tue, Dec 01, 1998 at 07:20:03PM +0100, Geert Uytterhoeven wrote:
> >
> > Sometimes I have problems using ssh to log in. The ssh connection just doesn't
> > seem to succeed. Using the `-v' option, the last line it prints is
> >
> > Allocated local port 1023
> Is the ssh program suid? If not then it can't allocate port 1023 since

Yes. And I run it as root.

> that is a privileged port that requires root or suid on the binary. If you
> wish to keep ssh -s like myself (it only breaks rhosts type
> authentication which sucks any way) then add this to your ssh_config:
> UsePrivilegedPort no
> This will tell ssh not to even try using ports < 1024.

OK, that could circumvent it.

But why do I never get problems if the allocated port is 1022 or 1021, which is
also privileged?



Geert Uytterhoeven           
Wavelets, Linux/{m68k~Amiga,PPC~CHRP}
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to Please read the FAQ at