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

Unable to connect as root on my server #805

Open
yazzou opened this issue Oct 24, 2015 · 6 comments
Open

Unable to connect as root on my server #805

yazzou opened this issue Oct 24, 2015 · 6 comments

Comments

@yazzou
Copy link

yazzou commented Oct 24, 2015

Hello
I have performed an upgrade and i got the following message :

https://gist.github.com/yazzou/4e9e4a952e72c89484a0#file-suucessful-upgrade

However i have been disconnected from the internet and when trying to connect again as root i have a warning telling me :
The server’s host key does not match the one WinSCP has is cache [http:https://www.turbo-ftp.com/docs/WinSCP_Common_Error%20Messages/]
My drupal sites are up to date and i try to run upgrades as soon as i got notices.
Is the problem i am facing is due to the upgrade or to a potential hack ?
I still have access to webmin server from where i changed immediately my root password

@Pls
Copy link

Pls commented Oct 25, 2015

I think this error message is standard after reinstalling OpenSSH from sources, as upgrade log states it was reinstalled:

BOA [23:26:30] ==> INFO: Installed OpenSSH version 6.0p1, upgrade required
BOA [23:26:30] ==> INFO: Building OpenSSH 7.1p1 from sources, please wait...

I was facing the same error today after automatic upgrade, solution how I fixed the problem with SSH keys - http:https://www.cyberciti.biz/faq/warning-remote-host-identification-has-changed-error-and-solution/

@ar-jan
Copy link
Contributor

ar-jan commented Oct 25, 2015

Same problem (after automatic BOA upgrade). I removed the old fingerprint and accepted the new one, but I still cannot log in.

I notice my old /etc/ssh/sshd_config has been replaced by upgrade.

I've verified via my VPS console that:

  • My public key is listed in /root/.ssh/authorized_keys and /home/o1.ftp/.ssh/authorized_keys, with correct permissions
  • sshd_config:
    • PermitRootLogin yes
    • PubkeyAuthentication yes
    • PasswordAuthentication yes

I've also removed my entire ~/.ssh/known_hosts locally to be sure.

I've tried both public key authentication and password auth, but I get Permission denied.

@omega8cc
Copy link
Owner

It is a duplicate of #786 I guess.

@omega8cc
Copy link
Owner

You may need to generate new keys, if you have used some old, weak keys no longer supported in recent OpenSSH version.

@omega8cc
Copy link
Owner

For OpenSSH built from sources, the correct file to modify for config changes is /usr/etc/sshd_config

@ar-jan
Copy link
Contributor

ar-jan commented Oct 25, 2015

Thanks. The new sshd_config location explains why I couldn't use password-login, and I guess my key used a deprecated cipher (since it was over 1024 bits). It's working now with a new key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants