sysconf ssh client clear

Clears the allowlist of client host IP addresses for one user Id or for all user IDs.Clients at specified IPs will be no longer subjected to SSH access restriction for the user specified. If no other SSH filter entry exists for any other user from a given IP address, then any user can have SSH access from the IP.

NOTE   This command is available using Luna Appliance Software 7.7.1 and newer.  

User Privileges

Users with the following privileges can perform this command:

>Admin

>Operator

Syntax

sysconf ssh client clear [-all] [-userId <username>] -force

Argument(s) Shortcut Description
-all -a Set default ssh access for all users
-userId <username> -u User Name
-force -f Force the action with no prompting.

Example clearing a single user ID


lunash:>sysconf ssh client list                           

User ID              Client Access status                                            
---------------------------------------------
audit                10.124.79.145                                                   
admin                All clients                                                     
monitor              All clients                                                     
operator             All clients                                                     
Alice                10.124.79.145 10.124.145.18                                     

Command Result : 0 (Success)


lunash:>sysconf ssh client clear -userid audit

audit will be given SSH access permission from all hosts.

If you are sure that you wish to proceed, then type 'proceed',
otherwise type 'quit'

> proceed
Proceeding...

INFO: Restarting sshd service is recommended to apply updated
      ssh access configuration.

Command Result : 0 (Success) 


lunash:>sysconf ssh client list          

User ID              Client Access status                                            
---------------------------------------------
audit                All clients                                                     
admin                All clients                                                     
monitor              All clients                                                     
operator             All clients                                                     
Alice                10.124.79.145 10.124.145.18                                     

Command Result : 0 (Success)

lunash:>

Example clearing all user IDs' host SSH accessibility


lunash:>sysconf ssh client list                           

User ID              Client Access status                                            
---------------------------------------------
audit                10.124.79.145                                                   
admin                All clients                                                     
monitor              All clients                                                     
operator             All clients                                                     
Alice                10.124.79.145 10.124.145.18                                     

Command Result : 0 (Success)


lunash:>sysconf ssh client clear -all

All users will be given default SSH access permission.

If you are sure that you wish to proceed, then type 'proceed',
otherwise type 'quit'

> proceed
Proceeding...

INFO: Restarting sshd service is recommended to apply updated
      ssh access configuration.

Command Result : 0 (Success)


lunash:>sysconf ssh client list          

User ID              Client Access status                                            
---------------------------------------------
audit                All clients                                                     
admin                All clients                                                     
monitor              All clients                                                     
operator             All clients                                                     
Alice                All clients                                     

Command Result : 0 (Success)

lunash:>