TMAegisBeta
Thêm quy tắc cho cisco-ios

Cisco IOS

TMA-CISCO-IOS-1.2.2

Set 'transport input ssh' for 'line vty' connections

CaoCấp 1Tự độngcisco-ios

Mô tả

Selects the Secure Shell (SSH) protocol. Configuring VTY access control restricts remote access to only those authorized to manage the device and prevents unauthorized users from accessing the system. Fails if any 'line vty' block lacks 'transport input ssh' or still allows telnet/all. Audited against the output of 'show running-config' (run 'terminal length 0' first; do not use 'show running-config all' or 'show startup-config').

Cách kiểm tra

Phương pháp kiểm tra: Mẫu cấu hình

Mẫu khớp
(?m)(?:^line vty[^\n]*\n(?:[ \t]+(?:$|[^t \t\n]|t(?:$|[^r\n]|r(?:$|[^a\n]|a(?:$|[^n\n]|n(?:$|[^s\n]|s(?:$|[^p\n]|p(?:$|[^o\n]|o(?:$|[^r\n]|r(?:$|[^t\n]|t(?:$|[^ \n]| (?:$|[^i\n]|i(?:$|[^n\n]|n(?:$|[^p\n]|p(?:$|[^u\n]|u(?:$|[^t\n]|t(?:$|[^ \n]| (?:$|[^s\n]|s(?:$|[^s\n]|s(?:$|[^h\n])))))))))))))))))))[^\n]*\n)*(?:[^ \t]|\z))|(?:^line vty[^\n]*\n(?:[ \t][^\n]*\n)*?[ \t]+transport input [^\n]*\b(?:telnet|all)\b)

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

! Apply SSH to transport input on all VTY management lines line vty <line-number> <ending-line-number> transport input ssh

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
cisco-iosnetworkmanagement-plane
Tham chiếu
CIS Cisco IOS XE 17.x Benchmark v2.2.1 - 1.2.2 Set 'transport input ssh' for 'line vty' connections

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target cisco-ios