Ambari server can't authenticate with publickey The 2019 Stack Overflow Developer Survey Results Are Inssh refusing connection with message “no hostkey alg”SSH Permission denied (publickey)SSH-Login with key does not work correctlyCan't Use SSH Keys Unless Running SSH With SudoDisconnected: No supported authentication methods available (server sent: publickey)Permission denied via ssh accessPublic key authentication Permission denied (publickey)Permission denied(publickey)SSH Invalid key length on embedded devicePermission denied (publickey) after every time being disconnected

Is one supposed to eat the zero'ah (shank bone) from the Seder plate?

Worn-tile Scrabble

How to type a long/em dash `—`

Is an up-to-date browser secure on an out-of-date OS?

Getting crown tickets for Statue of Liberty

Is it safe to harvest rainwater that fell on solar panels?

APIPA and LAN Broadcast Domain

How much of the clove should I use when using big garlic heads?

Why was M87 targeted for the Event Horizon Telescope instead of Sagittarius A*?

Why couldn't they take pictures of a closer black hole?

Can a flute soloist sit?

ODD NUMBER in Cognitive Linguistics of WILLIAM CROFT and D. ALAN CRUSE

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

Mathematics of imaging the black hole

Match Roman Numerals

Will it cause any balance problems to have PCs level up and gain the benefits of a long rest mid-fight?

Can withdrawing asylum be illegal?

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?

How to display lines in a file like ls displays files in a directory?

Can we generate random numbers using irrational numbers like π and e?

Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?

A word that means fill it to the required quantity

What is the meaning of Triage in Cybersec world?



Ambari server can't authenticate with publickey



The 2019 Stack Overflow Developer Survey Results Are Inssh refusing connection with message “no hostkey alg”SSH Permission denied (publickey)SSH-Login with key does not work correctlyCan't Use SSH Keys Unless Running SSH With SudoDisconnected: No supported authentication methods available (server sent: publickey)Permission denied via ssh accessPublic key authentication Permission denied (publickey)Permission denied(publickey)SSH Invalid key length on embedded devicePermission denied (publickey) after every time being disconnected



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I've been trying to get this to work for two weeks and my last post asking for help got downvoted without any comments. I hope to understand more of the topic now and provide more information.



I have two ubuntu 18.04 VMs one has the Ambari server and the other is the agent. I've set up the keys on the machines and they are working perfectly. This is the error I'm getting when I try to register the agent:



root@agent01.cluster: Permission denied (publickey,password).
SSH command execution finished
host=agent01.cluster, exitcode=255
Command end time 2019-04-09 12:11:16

ERROR: Bootstrap of host agent01.cluster fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: root@agent01.cluster: Permission denied (publickey,password).


Ambari-Server: ambari.cluster (192.168.178.50)



Ambari-Agent01: agent01.cluster (192.168.178.51)



This was my workflow up to getting the error:



  1. SSH from my laptop to ambari.cluster

  2. become root of ambari.cluster

  3. root@ambari-server: ssh-agent bash

  4. root@ambari-server: ssh-add -L

  5. If there is no key set I'd add it


  6. root@ambari-server: ssh root@agent01.cluster Works perfectly

  7. Try to register the host on the ambari server user interface. This is where I get the error from above

SSH with verbose:



root@ambari:/home/ambari# ssh -v root@agent01.cluster
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to agent01.cluster [192.168.178.51] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to agent01.cluster:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:3O7/r4qqVJLPgJFBIYqzWt12DX8+CGUn7rI9cat4WgA
debug1: Host 'agent01.cluster' is known and matches the ECDSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:xKpUfZm12W6sHSqwVemYib2QAfezRL3bXayhoSGMIdY /root/.ssh/id_rsa
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug1: Authentication succeeded (publickey).
Authenticated to agent01.cluster ([192.168.178.51]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-47-generic x86_64)


The logs from ambari-server:



INFO:root:BootStrapping hosts ['agent01.cluster'] using /usr/lib/ambari-server/lib/ambari_server cluster primary OS: ubuntu18 with user 'root'with ssh Port '22' sshKey File /var/run/ambari-server/bootstrap/3/sshKey password File null using tmp dir /var/run/ambari-server/bootstrap/3 ambari: ubuntu-server-6.home; server_port: 8080; ambari version: 2.7.3.0; user_run_as: root
INFO:root:Executing parallel bootstrap
ERROR:root:ERROR: Bootstrap of host agent01.cluster fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: root@agent01.cluster: Permission denied (publickey,password).

STDOUT:
root@agent01.cluster: Permission denied (publickey,password).

INFO:root:Finished parallel bootstrap


I then tried to add my SSH-Key to /var/run/ambari-server/bootstrap/3/sshKey but wasn't successful.



I'm lost now, where should I look next?



Thanks for any help!










share|improve this question






















  • This question appears to be about ambari-server and ambari-clients, rather than about Ubuntu.

    – user68186
    2 days ago

















0















I've been trying to get this to work for two weeks and my last post asking for help got downvoted without any comments. I hope to understand more of the topic now and provide more information.



I have two ubuntu 18.04 VMs one has the Ambari server and the other is the agent. I've set up the keys on the machines and they are working perfectly. This is the error I'm getting when I try to register the agent:



root@agent01.cluster: Permission denied (publickey,password).
SSH command execution finished
host=agent01.cluster, exitcode=255
Command end time 2019-04-09 12:11:16

ERROR: Bootstrap of host agent01.cluster fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: root@agent01.cluster: Permission denied (publickey,password).


Ambari-Server: ambari.cluster (192.168.178.50)



Ambari-Agent01: agent01.cluster (192.168.178.51)



This was my workflow up to getting the error:



  1. SSH from my laptop to ambari.cluster

  2. become root of ambari.cluster

  3. root@ambari-server: ssh-agent bash

  4. root@ambari-server: ssh-add -L

  5. If there is no key set I'd add it


  6. root@ambari-server: ssh root@agent01.cluster Works perfectly

  7. Try to register the host on the ambari server user interface. This is where I get the error from above

SSH with verbose:



root@ambari:/home/ambari# ssh -v root@agent01.cluster
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to agent01.cluster [192.168.178.51] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to agent01.cluster:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:3O7/r4qqVJLPgJFBIYqzWt12DX8+CGUn7rI9cat4WgA
debug1: Host 'agent01.cluster' is known and matches the ECDSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:xKpUfZm12W6sHSqwVemYib2QAfezRL3bXayhoSGMIdY /root/.ssh/id_rsa
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug1: Authentication succeeded (publickey).
Authenticated to agent01.cluster ([192.168.178.51]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-47-generic x86_64)


The logs from ambari-server:



INFO:root:BootStrapping hosts ['agent01.cluster'] using /usr/lib/ambari-server/lib/ambari_server cluster primary OS: ubuntu18 with user 'root'with ssh Port '22' sshKey File /var/run/ambari-server/bootstrap/3/sshKey password File null using tmp dir /var/run/ambari-server/bootstrap/3 ambari: ubuntu-server-6.home; server_port: 8080; ambari version: 2.7.3.0; user_run_as: root
INFO:root:Executing parallel bootstrap
ERROR:root:ERROR: Bootstrap of host agent01.cluster fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: root@agent01.cluster: Permission denied (publickey,password).

STDOUT:
root@agent01.cluster: Permission denied (publickey,password).

INFO:root:Finished parallel bootstrap


I then tried to add my SSH-Key to /var/run/ambari-server/bootstrap/3/sshKey but wasn't successful.



I'm lost now, where should I look next?



Thanks for any help!










share|improve this question






















  • This question appears to be about ambari-server and ambari-clients, rather than about Ubuntu.

    – user68186
    2 days ago













0












0








0








I've been trying to get this to work for two weeks and my last post asking for help got downvoted without any comments. I hope to understand more of the topic now and provide more information.



I have two ubuntu 18.04 VMs one has the Ambari server and the other is the agent. I've set up the keys on the machines and they are working perfectly. This is the error I'm getting when I try to register the agent:



root@agent01.cluster: Permission denied (publickey,password).
SSH command execution finished
host=agent01.cluster, exitcode=255
Command end time 2019-04-09 12:11:16

ERROR: Bootstrap of host agent01.cluster fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: root@agent01.cluster: Permission denied (publickey,password).


Ambari-Server: ambari.cluster (192.168.178.50)



Ambari-Agent01: agent01.cluster (192.168.178.51)



This was my workflow up to getting the error:



  1. SSH from my laptop to ambari.cluster

  2. become root of ambari.cluster

  3. root@ambari-server: ssh-agent bash

  4. root@ambari-server: ssh-add -L

  5. If there is no key set I'd add it


  6. root@ambari-server: ssh root@agent01.cluster Works perfectly

  7. Try to register the host on the ambari server user interface. This is where I get the error from above

SSH with verbose:



root@ambari:/home/ambari# ssh -v root@agent01.cluster
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to agent01.cluster [192.168.178.51] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to agent01.cluster:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:3O7/r4qqVJLPgJFBIYqzWt12DX8+CGUn7rI9cat4WgA
debug1: Host 'agent01.cluster' is known and matches the ECDSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:xKpUfZm12W6sHSqwVemYib2QAfezRL3bXayhoSGMIdY /root/.ssh/id_rsa
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug1: Authentication succeeded (publickey).
Authenticated to agent01.cluster ([192.168.178.51]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-47-generic x86_64)


The logs from ambari-server:



INFO:root:BootStrapping hosts ['agent01.cluster'] using /usr/lib/ambari-server/lib/ambari_server cluster primary OS: ubuntu18 with user 'root'with ssh Port '22' sshKey File /var/run/ambari-server/bootstrap/3/sshKey password File null using tmp dir /var/run/ambari-server/bootstrap/3 ambari: ubuntu-server-6.home; server_port: 8080; ambari version: 2.7.3.0; user_run_as: root
INFO:root:Executing parallel bootstrap
ERROR:root:ERROR: Bootstrap of host agent01.cluster fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: root@agent01.cluster: Permission denied (publickey,password).

STDOUT:
root@agent01.cluster: Permission denied (publickey,password).

INFO:root:Finished parallel bootstrap


I then tried to add my SSH-Key to /var/run/ambari-server/bootstrap/3/sshKey but wasn't successful.



I'm lost now, where should I look next?



Thanks for any help!










share|improve this question














I've been trying to get this to work for two weeks and my last post asking for help got downvoted without any comments. I hope to understand more of the topic now and provide more information.



I have two ubuntu 18.04 VMs one has the Ambari server and the other is the agent. I've set up the keys on the machines and they are working perfectly. This is the error I'm getting when I try to register the agent:



root@agent01.cluster: Permission denied (publickey,password).
SSH command execution finished
host=agent01.cluster, exitcode=255
Command end time 2019-04-09 12:11:16

ERROR: Bootstrap of host agent01.cluster fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: root@agent01.cluster: Permission denied (publickey,password).


Ambari-Server: ambari.cluster (192.168.178.50)



Ambari-Agent01: agent01.cluster (192.168.178.51)



This was my workflow up to getting the error:



  1. SSH from my laptop to ambari.cluster

  2. become root of ambari.cluster

  3. root@ambari-server: ssh-agent bash

  4. root@ambari-server: ssh-add -L

  5. If there is no key set I'd add it


  6. root@ambari-server: ssh root@agent01.cluster Works perfectly

  7. Try to register the host on the ambari server user interface. This is where I get the error from above

SSH with verbose:



root@ambari:/home/ambari# ssh -v root@agent01.cluster
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to agent01.cluster [192.168.178.51] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to agent01.cluster:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:3O7/r4qqVJLPgJFBIYqzWt12DX8+CGUn7rI9cat4WgA
debug1: Host 'agent01.cluster' is known and matches the ECDSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:xKpUfZm12W6sHSqwVemYib2QAfezRL3bXayhoSGMIdY /root/.ssh/id_rsa
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug1: Authentication succeeded (publickey).
Authenticated to agent01.cluster ([192.168.178.51]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-47-generic x86_64)


The logs from ambari-server:



INFO:root:BootStrapping hosts ['agent01.cluster'] using /usr/lib/ambari-server/lib/ambari_server cluster primary OS: ubuntu18 with user 'root'with ssh Port '22' sshKey File /var/run/ambari-server/bootstrap/3/sshKey password File null using tmp dir /var/run/ambari-server/bootstrap/3 ambari: ubuntu-server-6.home; server_port: 8080; ambari version: 2.7.3.0; user_run_as: root
INFO:root:Executing parallel bootstrap
ERROR:root:ERROR: Bootstrap of host agent01.cluster fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: root@agent01.cluster: Permission denied (publickey,password).

STDOUT:
root@agent01.cluster: Permission denied (publickey,password).

INFO:root:Finished parallel bootstrap


I then tried to add my SSH-Key to /var/run/ambari-server/bootstrap/3/sshKey but wasn't successful.



I'm lost now, where should I look next?



Thanks for any help!







18.04 ssh






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









In0cenTIn0cenT

134




134












  • This question appears to be about ambari-server and ambari-clients, rather than about Ubuntu.

    – user68186
    2 days ago

















  • This question appears to be about ambari-server and ambari-clients, rather than about Ubuntu.

    – user68186
    2 days ago
















This question appears to be about ambari-server and ambari-clients, rather than about Ubuntu.

– user68186
2 days ago





This question appears to be about ambari-server and ambari-clients, rather than about Ubuntu.

– user68186
2 days ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132427%2fambari-server-cant-authenticate-with-publickey%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132427%2fambari-server-cant-authenticate-with-publickey%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?