Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain" #1

Open
Annavar-satish opened this issue Apr 19, 2023 · 0 comments

Comments

@Annavar-satish
Copy link

I was trying to create the setup in aws and facing the issue in bastionhost

time="2023-04-19T18:45:20Z" level=info msg="[dialer] Setup tunnel for host [10.0.1.82]"
time="2023-04-19T18:45:20Z" level=info msg="[dialer] Setup tunnel for host [10.0.1.95]"
time="2023-04-19T18:45:20Z" level=info msg="[dialer] Setup tunnel for host [10.0.0.203]"
time="2023-04-19T18:45:20Z" level=warning msg="Failed to set up SSH tunneling for host [10.0.1.82]: Can't retrieve Docker Info: error during connect: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info\": Unable to access node with address [10.0.1.82:22] using SSH. Please check if you are able to SSH to the node using the specified SSH Private Key and if you have configured the correct SSH username. Error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain"
time="2023-04-19T18:45:20Z" level=warning msg="Failed to set up SSH tunneling for host [10.0.1.95]: Can't retrieve Docker Info: error during connect: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info\": Unable to access node with address [10.0.1.95:22] using SSH. Please check if you are able to SSH to the node using the specified SSH Private Key and if you have configured the correct SSH username. Error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain"
time="2023-04-19T18:45:20Z" level=warning msg="Failed to set up SSH tunneling for host [10.0.0.203]: Can't retrieve Docker Info: error during connect: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info\": Unable to access node with address [10.0.0.203:22] using SSH. Please check if you are able to SSH to the node using the specified SSH Private Key and if you have configured the correct SSH username. Error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain"

this is my cluster.yml

cloud_provider:
  name: aws
nodes:
# SSH key path
ssh_key_path: ./ec2-ssh-key.pem
# Name of the K8s Cluster
cluster_name: my-rke-cluster
services:
  etcd:
    # Custom uid/guid for etcd directory and files
    uid: 52034
    gid: 52034
  kube-api:
    # IP range for any services created on Kubernetes
    # This must match the service_cluster_ip_range in kube-controller
    service_cluster_ip_range: 172.16.0.0/16
    # Expose a different port range for NodePort services
    service_node_port_range: 30000-32767
    pod_security_policy: false
  kube-controller:
    # CIDR pool used to assign IP addresses to pods in the cluster
    cluster_cidr: 172.15.0.0/16
    # IP range for any services created on Kubernetes
    # This must match the service_cluster_ip_range in kube-api
    service_cluster_ip_range: 172.16.0.0/16
  kubelet:
    # Base domain for the cluster
    cluster_domain: cluster.local
    # IP address for the DNS service endpoint
    cluster_dns_server: 172.16.0.10
    # Fail if swap is on
    fail_swap_on: false
network:
  plugin: calico
# Specify DNS provider (coredns or kube-dns)
dns:
  provider: coredns
# Kubernetes Authorization mode
# Enable RBAC
authorization:
  mode: rbac
# Specify monitoring provider (metrics-server)
monitoring:
  provider: metrics-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant