Re: allow ssh on particular port....



Hello,

Please mention the OS which you are working. Inn HP-UX this is
possible. SSH 4.2
version is supporting this. Auth selection patch is used to support
this. The following server config directives are used to support this..

# Auth selection
#
#HostbasedAuthAllowUsers
#HostbasedAuthDenyUsers
#PubkeyAuthAllowUsers
#PubkeyAuthDenyUsers
#KerberosAuthAllowUsers
#KerberosAuthDenyUsers
#KerberosOrLocalPasswdAllowUsers
#KerberosOrLocalPasswdDenyUsers
#PasswordAuthAllowUsers
#PasswordAuthDenyUsers
#ChallRespAuthAllowUsers [pam] user1 user2 ...
#ChallRespAuthDenyUsers [pam] user1 user2 ...
#ChallRespAuthAllowUsers [bsdauth] user1 user2 ...
#ChallRespAuthDenyUsers [bsdauth] user1 user2 ...
#ChallRespAuthAllowUsers [skey] user1 user2 ...
#ChallRespAuthDenyUsers [skey] user1 user2 ...
#ChallRespAuthAllowUsers [securid] user1 user2 ...
#ChallRespAuthDenyUsers [securid] user1 user2 ...
#GSSAPIAuthAllowUsers
#GSSAPIAuthDenyUsers

So using this directives u can deny or allow specific users in specific
ports and specific authenitcation.

Thanks,
Santhi.

Unruh wrote:
gsethug@xxxxxxxxx writes:

Hi team ,
I am running ssh on two ports.
port 22
port 75 in sshd_config
now i want to allow root user in port no 25 and deny in 22.
guys if anybody knows let me know.

I assume you meant port no 75 not 25.
I know of no way. But the common opinion is that it is a bad idea anyway.
Log in as a user and then su to root when logged on, instead of trying to
log on directly.

.



Relevant Pages

  • Reference count issue with uart_close() on 2.6.16-2.6.20
    ... After that the serial port is no longer usable no matter what. ... Please find my kernel config and dmesg output below. ... # ACPI Support ... # PCI Hotplug Support ...
    (Linux-Kernel)
  • Panic with amr and 5.4-PRERELEASE
    ... I have a FreeBSD bi-processor box with amr device in FreeBSD ... 'tr /dev/cuaa1' to connect to a different port ... # Floating point support - do not disable. ... pci0: <PCI bus> on pcib0 ...
    (freebsd-current)
  • Panic with amr and 5.4-PRERELEASE
    ... I have a FreeBSD bi-processor box with amr device in FreeBSD ... 'tr /dev/cuaa1' to connect to a different port ... # Floating point support - do not disable. ... pci0: <PCI bus> on pcib0 ...
    (freebsd-stable)
  • Problems Building Bluetooth with K6 and CONFIG_REGPARM
    ... > # ACPI Support ...
    (Linux-Kernel)
  • [2.6.15 / sata_mv] Oops!
    ... Hardware: 8 SATA drives spread across two MV88SX50x1 controllers built into motherboard. ... 03:01.0 SCSI storage controller: Marvell Technology Group Ltd. ... abnormal status 0xD0 on port 0xF90A211C ... # ACPI Support ...
    (Linux-Kernel)