How do I enable SSH access via `ssh` (instead of `kubectl exec`) to a container in Kubernetes?

Step 1

How to open port 22 (for SSH connection) on a service's page in Rancher?

Step 2

Step 3

Step 4

Step 5

Step 6

Step 7

Step 8

Step 9

Step 10

What are the differences between accessing a Kubernetes container via SSH using ssh and kubectl exec?