Ensure SSH Protocol is set to 2
Scanned 9/3/2026
Install to Claude Code
npx -y skills add CyberStrikeus/CyberStrike --skill cis-gcp-cos-5.1.4 --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Cis Gcp Cos 5.1.4?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-gcp-cos-5-1-4)More formats (shields.io, HTML) on the badges page.
---
name: cis-gcp-cos-5.1.4
description: "Ensure SSH Protocol is set to 2"
category: cis-gcp-cos
version: "1.2.0"
author: cyberstrike-official
tags: [cis, gcp, container-optimized-os, ssh, sshd, sshd-config, encryption]
cis_id: "5.1.4"
cis_benchmark: "CIS Google Container-Optimized OS Benchmark v1.2.0"
tech_stack: [gcp, linux]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---
# 5.1.4 Ensure SSH Protocol is set to 2 (Automated)
## Description
Older versions of SSH support two different and incompatible protocols: SSH1 and SSH2. SSH1 was the original protocol and was subject to security issues. SSH2 is more advanced and secure.
## Rationale
SSH v1 suffers from insecurities that do not affect SSH v2.
## Audit Procedure
Run the following command and verify that output matches:
```bash
# grep ^Protocol /etc/ssh/sshd_config
Protocol 2
```
## Expected Result
Output should show `Protocol 2`.
## Remediation
Edit the `/etc/ssh/sshd_config` file to set the parameter as follows:
```
Protocol 2
```
## Default Value
This command no longer exists in newer versions of SSH. This check is still being included for systems that may be running an older version of SSH. As of openSSH version 7.4 this parameter will not cause an issue when included.
## CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
| ---------------- | ---------------------------------------------------------------- | ---- | ---- | ---- |
| v8 | 3.10 Encrypt Sensitive Data in Transit | | x | x |
| v8 | 4.6 Securely Manage Enterprise Assets and Software | x | x | x |
| v7 | 4.5 Use Multifactor Authentication For All Administrative Access | | x | x |
| v7 | 14.4 Encrypt All Sensitive Information in Transit | | x | x |
## Profile
- Level 1 - Server
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!