From 8cdf6eb47052445cde3b4f22e422afa9422a9a73 Mon Sep 17 00:00:00 2001 From: JeffWDH Date: Sat, 21 Oct 2023 14:29:05 -0400 Subject: T5661: Add show show ssh dynamic-protection attacker and show log ssh dynamic-protection --- op-mode-definitions/show-log.xml.in | 12 ++++++++++-- op-mode-definitions/show-ssh.xml.in | 10 ++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in index a2a210543..dcfede991 100644 --- a/op-mode-definitions/show-log.xml.in +++ b/op-mode-definitions/show-log.xml.in @@ -618,12 +618,20 @@ journalctl --no-hostname --boot --unit snmpd.service - + Show log for Secure Shell (SSH) journalctl --no-hostname --boot --unit ssh.service - + + + + Show dynamic-protection log + + journalctl --no-hostname -p info -t sshguard -o short + + + Show last n changes to messages diff --git a/op-mode-definitions/show-ssh.xml.in b/op-mode-definitions/show-ssh.xml.in index dc6e0d02e..88faecada 100644 --- a/op-mode-definitions/show-ssh.xml.in +++ b/op-mode-definitions/show-ssh.xml.in @@ -7,17 +7,23 @@ Show SSH server information + + + Show SSH server dynamic-protection blocked attackers + + ${vyos_op_scripts_dir}/ssh.py show_dynamic_protection + Show SSH server public key fingerprints - ${vyos_op_scripts_dir}/show-ssh-fingerprints.py + ${vyos_op_scripts_dir}/ssh.py show_fingerprints Show visual ASCII art representation of the public key - ${vyos_op_scripts_dir}/show-ssh-fingerprints.py --ascii + ${vyos_op_scripts_dir}/ssh.py show_fingerprints --ascii -- cgit v1.2.3