carlalexander / debops-wordpress

Your superpowered WordPress server in three commands.
GNU General Public License v3.0
440 stars 65 forks source link

Failed to connect to the host via ssh: Permission denied #185

Closed juanmigithub closed 6 years ago

juanmigithub commented 7 years ago

Hi! Thanks in advance for this ;-)

This command don't work and I don't know where is the error... Can you help me?

# debops bootstrap -u root

Running Ansible playbook from:
/root/.local/share/debops/debops-playbooks/playbooks/bootstrap.yml ...

PLAY [Bootstrap Python support on a host] ******************************************************************************************************************************************

TASK [debops.bootstrap/raw : Update APT repositories, install mandatory packages] **************************************************************************************************
fatal: [kraken.escuela.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n", "unreachable": true}
        to retry, use: --limit @/root/.local/share/debops/debops-playbooks/playbooks/bootstrap.retry

PLAY RECAP *************************************************************************************************************************************************************************
kraken.escuela.com   : ok=0    changed=0    unreachable=1    failed=0   

TASK: debops.bootstrap/raw : Update APT repositories, install mandatory packages --- 0.10s

I check the ssh-key and it's works fine.

# ssh -T git@github.com Hi juanmigithub! You've successfully authenticated, but GitHub does not provide shell access.

juanmigithub commented 7 years ago

Solved adding:

PubkeyAcceptedKeyTypes=+ssh-dss

In sshd_config

carlalexander commented 6 years ago

Cool! Can I close @juanmigithub?

juanmigithub commented 6 years ago

Yes ;) El El lun, 11 sept 2017 a las 19:01, Carl Alexander < notifications@github.com> escribió:

Cool! Can I close @juanmigithub https://github.com/juanmigithub?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/carlalexander/debops-wordpress/issues/185#issuecomment-328592720, or mute the thread https://github.com/notifications/unsubscribe-auth/AeRUFotCRwPn2_ziEf2HI-pT2D9_wGcnks5shWc3gaJpZM4PQ0MU .