If you do not enable SSH logon when you create a Container Service for Kubernetes (ACK) cluster, you cannot directly connect to the cluster by using SSH or kubectl. To use SSH to connect to an ACK cluster that has SSH logon disabled, you must manually attach elastic IP addresses (EIPs) to Elastic Compute Service (ECS) instances in the cluster, configure security group rules, and then open SSH port 22.
For more information about how to enable SSH logon when you create a cluster, see Bind an EIP to the Kubernetes API server when you create an ACK cluster.
- Log on to the ACK console.
- In the left-side navigation pane of the ACK console, click Clusters.
- On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
- In the left-side navigation pane of the ACK console, choose .
- On the Clusters page, find the cluster that you want to manage, and then click the name of the cluster or click Manage in the Actions column.
- On the Cluster Information page, click the Cluster Resources tab. Find APIServerSLB and click the ID of the Server Load Balancer (SLB) instance.
- In the left-side navigation pane, choose Listener tab and then click Add Listener. . On the Instances page, click the
- Add an SSH listener. For more information, see Add a TCP listener. After the listener is created, you can use SSH to connect to your cluster through the public IP address of the SLB instance.