SV-258753r933320_rule
V-258753
SRG-OS-000023-VMM-000060
ESXI-80-000192
CAT II
10
From an ESXi shell, run the following command:
# esxcli system ssh server config set -k banner -v /etc/issue
or
From a PowerCLI command prompt while connected to the ESXi host, run the following commands:
$esxcli = Get-EsxCli -v2
$arguments = $esxcli.system.ssh.server.config.set.CreateArgs()
$arguments.keyword = 'banner'
$arguments.value = '/etc/issue'
$esxcli.system.ssh.server.config.set.Invoke($arguments)
From an ESXi shell, run the following command:
# esxcli system ssh server config list -k banner
or
From a PowerCLI command prompt while connected to the ESXi host, run the following commands:
$esxcli = Get-EsxCli -v2
$esxcli.system.ssh.server.config.list.invoke() | Where-Object {$_.Key -eq 'banner'}
Example result:
banner /etc/issue
If "banner" is not configured to "/etc/issue", this is a finding.
V-258753
False
ESXI-80-000192
From an ESXi shell, run the following command:
# esxcli system ssh server config list -k banner
or
From a PowerCLI command prompt while connected to the ESXi host, run the following commands:
$esxcli = Get-EsxCli -v2
$esxcli.system.ssh.server.config.list.invoke() | Where-Object {$_.Key -eq 'banner'}
Example result:
banner /etc/issue
If "banner" is not configured to "/etc/issue", this is a finding.
M
5562