SSH
Secure Shell (SSH) is a cryptographic network protocol used for operating network services securely over an unsecured network, commonly employed for remote comm...
SSH (Secure Shell) is a cryptographic network protocol, used for operating network services securely over an unsecured network. Its primary applications include remote command-line login and execution, but it also supports tunneling (port forwarding), file transfers (via SFTP and SCP), and other secure network services. SSH operates on a client-server model. The SSH client initiates a connection to an SSH server, typically running on the standard port 22. During the connection setup, the client and server negotiate cryptographic algorithms (for key exchange, encryption, message authentication, and host authentication) and establish a secure, encrypted channel. Host authentication is typically achieved using [public-key cryptography](/ru/terms/public-key-cryptography), where the server presents its public host key, which the client verifies against a known list or a trusted Certificate Authority. User authentication can be performed using passwords, public-key cryptography (SSH keys), or other methods like keyboard-interactive authentication. Once authenticated, all subsequent traffic between the client and server is encrypted, protecting data confidentiality and integrity.
graph LR
Center["SSH"]:::main
Pre_encryption["encryption"]:::pre --> Center
click Pre_encryption "/terms/encryption"
Rel_tls_ssl["tls-ssl"]:::related -.-> Center
click Rel_tls_ssl "/terms/tls-ssl"
Rel_firewall["firewall"]:::related -.-> Center
click Rel_firewall "/terms/firewall"
Rel_grpc["grpc"]:::related -.-> Center
click Rel_grpc "/terms/grpc"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 Простыми словами
SSH — это как защищенный туннель между вашим компьютером и другим. Представьте, что вы отправляете письмо в прозрачной коробке (обычный интернет) против отправки его в запертом стальном сейфе, который может открыть только другой человек (SSH).
🤓 Expert Deep Dive
SSH работает на уровне 7 (Application). Он использует криптографию с открытым ключем для аутентификации удаленного компьютера. Протокол обеспечивает сильное шифрование, защиту целостности и аутентификацию. Обмен ключами (Diffie-Hellman) устанавливает общий секретный сеансовый ключ.