Coder Social home page Coder Social logo

Comments (3)

MVladislav avatar MVladislav commented on June 9, 2024

Hi @sangraikang

Is your problem still persisting?
Upon a quick inspection, it seems that you are not using a public key when attempting to SSH into the server. By default, SSH is configured for public key authentication, and the logs indicate unsuccessful attempts with the default public keys.
To resolve this, make sure to provide your public key during the SSH login process.

from ansible-cis-ubuntu-2204.

sangraikang avatar sangraikang commented on June 9, 2024

Yes I am still having same issue. The public key is used in the remote server under authorized_keys and it was primary login method before the cis hardening and after it is giving the ssh error.

from ansible-cis-ubuntu-2204.

MVladislav avatar MVladislav commented on June 9, 2024

Hmm, that is strange, never get SSH login problem for a fresh Ubuntu 22.04 installation.
When I mention SSH usage, I'm referring to whether you provide your key with the ssh command using -i ~/.ssh/... when attempting to login to the server.
With the limited information from the logs you provided, it's challenging to pinpoint the location of the problem.

It shouldn't be an issue with cis_ubuntu2204_rule_5_4_2 as it is disabled by default and when i remember correct 5.4.2 is for different login changes not for SSH one.

Are there any additional details in the logs when you attempt to log in via SSH?
Can you access the Ubuntu server in any other way and check the logs on the server side?

from ansible-cis-ubuntu-2204.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.