Rancher Agent cannot connect to Cluster (EC2 Autoscaling Groups)

I am using rancher 2.5.7 and trying to connect nodes in Autoscaling group to rancher cluster. When doing so I am facing an error

time="2021-05-03T16:06:56Z" level=info msg="Connecting to wss://rancher.example.tech/v3/connect/register with token <token-key>:<token-secret>"
time="2021-05-03T16:06:56Z" level=info msg="Connecting to proxy" url="wss://rancher.example.tech/v3/connect/register"
time="2021-05-03T16:06:56Z" level=error msg="Failed to connect to proxy. Response status: 400 - 400 Bad Request. Response body: cluster not found" error="websocket: bad handshake"
time="2021-05-03T16:06:56Z" level=error msg="Remotedialer proxy error" error="websocket: bad handshake"

Tags on Ec2 Node:
kubernetes.io/cluster/c-4k6fk: owned

Command used to Run Rancher agent:

sudo docker run -d --privileged --restart=unless-stopped --net=host \
    -v /etc/kubernetes:/etc/kubernetes \
    -v /var/run:/var/run \
    rancher/rancher-agent:v2.5.7 \
    --server https://rancher.example.tech \
    --token <token-key>:<token-secret> \
    --address ${PUBLIC_IP} \
    --internal-address ${PRIVATE_IP} \
    --ca-checksum 8784a983fbbddf517ec5c92388633e8fddfbd8b9cac6f347ad251a8a4daa3e6d \
    --etcd --controlplane

I am trying to follow the method described here: Rancher Docs: Cluster Autoscaler with AWS EC2 Auto Scaling Groups

I was using wrong token for the operation, was using api key,secret instead of clusterregistration token