SSH
A protocol for logging in to and running commands on another computer securely over a network.
In more detail
SSH stands for Secure Shell. It encrypts the connection and authenticates both ends, usually with SSH keys for the user and host keys for the server.
Examples
SSH is Ansible's default connection to Linux and Unix managed nodes; it is the only open door they need.ssh deploy@web01 'ls /srv/backups'ports["ssh"]SSH stands for Secure Shell. The server first proves its identity with its host key, then the user authenticates separately with a password, a key or another method, and the session is encrypted. Accepting a host key says which server you reached; it grants no account access.Bastion hosts accept SSH from the internet, so their auth logs attract password guessing.Related terms
- SSH key — A key pair used to log in over SSH: the private key stays on your machine and the public key is added to the server account.
- host key checking — SSH's check that a server's identity key matches the one recorded the first time you connected, protecting you from impostor servers.
- connection plugin — The plugin that decides how Ansible reaches a host: SSH by default, or local, WinRM, a container runtime or a network device protocol.
- managed node — A machine that Ansible configures; it needs only a way in, normally SSH, and a Python interpreter, not Ansible itself.
- port — A number from 1 to 65535 that picks out one service on a machine, such as 22 for SSH or 80 for plain web traffic.
- security group — A stateful firewall attached to a resource’s network interface, made only of allow rules for ports, protocols and sources.
- scp — The command that copies files to or from another machine over SSH, written as user@host:path.
- rsync — A file copying tool that sends only the parts that differ between source and destination, locally or over SSH.
- docker exec — Runs an extra command inside a container that is already running.
- Docker context — A saved setting that tells the Docker CLI which Docker daemon to talk to.
- host key — The key pair an SSH server uses to prove its identity to every client that connects.
- ssh-agent — A background program that holds your decrypted private keys for a session so you do not retype passphrases for every connection.
- SSH config file — The client configuration file, ~/.ssh/config, where Host blocks give short aliases their real hostname, user, port and identity file.
- authentication — Establishing who a request represents, for example by checking a password, a session cookie or a signed token.
Taught in
- Ansible Architecture And The Control Node — Ansible Configuration Management at Scale
- Installing Ansible — Ansible Configuration Management at Scale
- Connections And Privilege Escalation — Ansible Configuration Management at Scale
- Playbook Syntax And YAML — Ansible Configuration Management at Scale
- Twelve Alerts, Ten Services — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Confusable Services Sprint: One Clue Each — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Security Hub, GuardDuty And Inspector: Signal, Noise And Response — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Long-Stem Clinic: When Two Answers Both Work — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Port 22 Answers From The Internet: NSGs And Application Security Groups — Microsoft Azure Administrator (AZ-104) Exam Prep
- No Public Doors: Bastion, Service Endpoints And Private Endpoints — Microsoft Azure Administrator (AZ-104) Exam Prep
- When Did It Start, And What Changed? KQL For Administrators — Microsoft Azure Administrator (AZ-104) Exam Prep
- Secrets, Keys And Certificates In Pipelines — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- Archives, Transfers And The Network — Bash Scripting & Command Line Automation
- Spend Two Hours Like A Points Table — Certified Kubernetes Administrator (CKA) Exam Prep
- Node NotReady: Kubelet, Runtime And Certificates — Certified Kubernetes Administrator (CKA) Exam Prep
- Two Hours, Sixteen Tasks: A CKS Plan — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Verify Binaries: A Hash With No Name — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Network Exposure: NodePorts, Host Firewalls And Egress — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Security Groups and Firewalls — Cloud Infrastructure & Hyperscaler Architecture
- The Intern Who Could Delete Backups: Identity And Access — CompTIA Cloud+ (CV0-004) Exam Prep
- An Image That Runs As Root: Security Best Practices — CompTIA Cloud+ (CV0-004) Exam Prep
- Security Sprint: A Table To Complete — CompTIA Cloud+ (CV0-004) Exam Prep
- Two Reminders, One Booking: Integration And DevOps Tools — CompTIA Cloud+ (CV0-004) Exam Prep
- Shared Responsibility Model & Cloud Threat Landscapes — Cloud Security & DevSecOps Engineering
- Security Landing Zones & Centralized Egress Inspection — Cloud Security & DevSecOps Engineering
- Static IaC Scanning: Linting Terraform with Checkov — Cloud Security & DevSecOps Engineering
- Cloud Security Posture Management & Remediation — Cloud Security & DevSecOps Engineering
- CIA Triad, Non-Repudiation & Parkerian Hexad — Cybersecurity Fundamentals, GRC & Cryptography
- Defense-in-Depth & Security Control Categories — Cybersecurity Fundamentals, GRC & Cryptography
- Security Governance vs Security Management — Cybersecurity Fundamentals, GRC & Cryptography
- Security Baselines, Policies & Hardening Standards — Cybersecurity Fundamentals, GRC & Cryptography
- Data States: Security at Rest, in Transit, and in Use — Cybersecurity Fundamentals, GRC & Cryptography
- Security Architecture Gap Analysis — Cybersecurity Fundamentals, GRC & Cryptography
- Why Containers: Bare Metal, Machines And Processes — Docker Architecture & Production Containers
- First Network And Observability Setup — Google Cloud Associate Cloud Engineer Exam Prep
- Compute Engine — Google Cloud Associate Cloud Engineer Exam Prep
- Networking: VPCs, Firewalls And Hybrid Links — Google Cloud Associate Cloud Engineer Exam Prep
- Tooling: Infrastructure As Code And AI Assistants — Google Cloud Associate Cloud Engineer Exam Prep
- Running Compute Engine — Google Cloud Associate Cloud Engineer Exam Prep
- From Push To Runner: How GitLab Starts A Pipeline — GitLab Certified CI/CD Associate Exam Prep
- The Container Registry: Build, Tag, Push, Clean Up — GitLab Certified CI/CD Associate Exam Prep
- Runner Types And Executors: Who Runs The Job, And Where — GitLab Certified CI/CD Associate Exam Prep
- Arrays, Slices, and Maps — Concurrent Systems Programming with Go
- Ports, Protocols And Firewall Rules — ISC2 Certified in Cybersecurity (CC) Exam Prep
- Copied From A Blog Post: The Kubelet — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Job Control, And Processes That Outlive You — Linux Fundamentals & Systems Administration
- SSH: The Protocol, And The Host Key You Accept — Linux Fundamentals & Systems Administration
- SSH Keys, The Agent And The Config File — Linux Fundamentals & Systems Administration
- The Reboot That Fails You — Red Hat Certified System Administrator (EX200) Exam Prep
- Logins, su, sudo And SSH Between Hosts — Red Hat Certified System Administrator (EX200) Exam Prep
- Repositories You Configure By File — Red Hat Certified System Administrator (EX200) Exam Prep
- Targets, Boot And Shutdown — Red Hat Certified System Administrator (EX200) Exam Prep
- NFS Client Mounts That Survive The Boot — Red Hat Certified System Administrator (EX200) Exam Prep
- firewalld: Zones, Services And Ports That Stay Open — Red Hat Certified System Administrator (EX200) Exam Prep
- SELinux Ports And Booleans: The Other Two Refusals — Red Hat Certified System Administrator (EX200) Exam Prep
- Mock Exam, Part 2: Real Machines And The Ten Costly Mistakes — Red Hat Certified System Administrator (EX200) Exam Prep
- Log Parsing, Schema Normalization (OCSF/ECS) & Extraction — Security Operations & Threat Hunting (SOC)
- Containment & Eradication: Host, Net & Identity — Security Operations & Threat Hunting (SOC)
- Hardening, Application Control And Deception — CompTIA Security+ (SY0-801) Exam Prep
- A Server Nobody Can Find: Addresses, Routes And Names On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- The Reindex That Died With The VPN: Jobs, cron, at And Timers — CompTIA Linux+ (XK0-006) Exam Prep
- The Upgrade That Broke Nginx: Packages, Repositories And Pins On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- One Word Locked Out Every Directory User: PAM, SSSD, LDAP And Kerberos — CompTIA Linux+ (XK0-006) Exam Prep
- Who Wrote That Sudoers File? The Journal, rsyslog, logrotate And auditd — CompTIA Linux+ (XK0-006) Exam Prep
- One Rule, Four Firewalls: firewalld, ufw, nftables And iptables — CompTIA Linux+ (XK0-006) Exam Prep
- The Pager Command That Opened A Root Shell: sudo, su And Least Privilege — CompTIA Linux+ (XK0-006) Exam Prep
- Root Over SSH From Anywhere: Keys, sshd, setuid Files And Attributes — CompTIA Linux+ (XK0-006) Exam Prep
- Three Audit Findings And A Phone: Password Policy, Lockouts And MFA — CompTIA Linux+ (XK0-006) Exam Prep
- What Changed Last Night? Integrity, Scans, Benchmarks And Secure Deletion — CompTIA Linux+ (XK0-006) Exam Prep
- Forty Servers By Teatime: Ansible Playbooks, Inventories And Puppet Manifests — CompTIA Linux+ (XK0-006) Exam Prep
- A New Depot By Friday: OpenTofu, Cloud-init, Pipelines And Kubernetes — CompTIA Linux+ (XK0-006) Exam Prep
- The Customers Noticed First: SLAs, SLOs, Alerts, SNMP And Log Aggregation — CompTIA Linux+ (XK0-006) Exam Prep
- Patched On Paper: Missing Updates, Broken Chains, Old Protocols And Open Doors — CompTIA Linux+ (XK0-006) Exam Prep
- It Is Slow, Says Everyone: CPU, Memory, Disk And Network Bottlenecks — CompTIA Linux+ (XK0-006) Exam Prep
- Three PBQs Against The Clock: A Performance-Based Mock On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Exam Strategy: Hosts, Help And The Order Of Twenty Tasks — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Recovering From Boot, File System And Disk Failures — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Addresses, Gateways And Names On Both Stacks — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Network Troubleshooting: The Ladder From Link To Port — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- OpenSSH: Keys, Client Aliases And A Hardened Server — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Packet Filtering With nftables: A Default Drop That Stays Up — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Port Forwarding, Redirection And NAT With nftables — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Remote File Systems: NFS, SMB And Network Block Devices — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Accounts On Ubuntu: Skeletons, Groups And Offboarding — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Environment Profiles: Which File Does This Shell Read? — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- User Limits: Who Gets Which Number At Login — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Drill: A Gateway That Survives The Reboot — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Mock Exam, Part 1: Seventeen Tasks, One Reboot — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Mock Exam, Part 2: Real Machines And The Costly Mistakes — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Booting: Firmware To Login, And Where To Step In — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep
- Exam Strategy: The First Fifteen Minutes And ansible-doc — RHCE in Ansible (EX294): Automate Red Hat Systems
- ansible.cfg: Which File Wins, And The Settings That Matter — RHCE in Ansible (EX294): Automate Red Hat Systems
- SSH Keys And An Account For Ansible — RHCE in Ansible (EX294): Automate Red Hat Systems
- Privilege Escalation: sudo Rules And become — RHCE in Ansible (EX294): Automate Red Hat Systems
- Deploying Files: file, copy, lineinfile And blockinfile — RHCE in Ansible (EX294): Automate Red Hat Systems
- Mock Exam, Part 1: Seven Tasks Across Three Sections — RHCE in Ansible (EX294): Automate Red Hat Systems
- Mock Exam, Part 2: Real Machines And The Patterns That Fail — RHCE in Ansible (EX294): Automate Red Hat Systems
References
- RFC 4251: the Secure Shell (SSH) protocol architecture
- ansible.builtin.ssh connection plugin
- RFC 4251: The Secure Shell (SSH) Protocol Architecture
- OpenSSH manual: ssh(1)
- NIST glossary: Secure Shell
Certification courses
- AWS Cloud Practitioner course and practice exam: CLF-C02
- AWS DevOps Engineer Professional course and practice exam: DOP-C02
- AZ-104 course and practice exam: Microsoft Azure Administrator
- AZ-400 course and practice exam: Microsoft Azure DevOps Engineer Expert
- CKA course and practice exam: Certified Kubernetes Administrator
- CKS course and practice exam: Certified Kubernetes Security Specialist
- CompTIA Cloud+ course and practice exam: CV0-004
- Google Associate Cloud Engineer course and practice exam: Google Cloud certification
- GitLab CI/CD Associate course and practice exam: GitLab Certified CI/CD Associate
- ISC2 CC course and practice exam: Certified in Cybersecurity
- KCSA course and practice exam: Kubernetes and Cloud Native Security Associate
- RHCSA course and practice exam: Red Hat Certified System Administrator (EX200)
- CompTIA Security+ course and practice exam: SY0-801
- CompTIA Linux+ course and practice exam: XK0-006
- LFCS course and practice exam: Linux Foundation Certified System Administrator
- LPIC-1 course and practice exam: Linux Administrator (101-500 and 102-500)
- RHCE course and practice exam: Red Hat Certified Engineer in Ansible (EX294)