Secure Shell Commands
©2008 Allied Telesis Inc. All rights reserved.
45.28
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
Software Version 5.2.1
ssh server deny-users
This command adds a username pattern to the deny list of the SSH server. If the user of an
incoming SSH session matches the pattern, the session is rejected.
SSH server also maintains the allow list. The server checks the user in the deny list first. If a user
is listed in the deny list, then the user access is denied even if the user is listed in the allow list.
If a hostname pattern is specified, the user is denied from the hosts matching the pattern.
The no form deletes a username pattern from the deny list of the SSH server. To delete an
entry from the deny list, the username and hostname pattern should match exactly with the
existing entry.
Syntax
ssh server deny-users
<username_pattern>
[
<hostname_pattern>
]
no ssh server deny-users
<username_pattern>
[
<hostname_pattern>
]
Mode
Configure mode
Example
To deny the user john to access SSH login from any host, use the command:
awplus(config)#
ssh server deny-users john
To deny the user john to access SSH login from a range of IP address (from 192.168.2.1 to
192.168.2.255), use the command:
awplus(config)#
ssh server deny-users john 192.168.2.*
To deny the user john to access SSH login from b-company.com domain, use the command:
awplus(config)#
ssh server deny-users john*.b-company.com
To delete the existing user entry "john 192.168.2.*" in the deny list, use the command:
awplus(config)#
no ssh server deny-users john 192.168.2.*
Related Commands
show running-config ssh
show ssh server deny-users
ssh server allow-users
Parameter
Description
<username_pattern>
The username pattern that users can match to. The username
must begin with a letter. Valid characters are all numbers, letters,
and the underscore, hyphen, full stop and asterisk symbols. An
asterisk acts as a wildcard character that matches any string of
characters.
<hostname_pattern>
The host name pattern that hosts can match to. If specified, the
server denies the user only when they connect from hosts
matching the pattern. An asterisk acts as a wildcard character that
matches any string of characters.