Code Monkey home page Code Monkey logo

Comments (8)

Nishanth-R avatar Nishanth-R commented on July 22, 2024 5

Figured out what the Issue was , Raspbian switches off SSH by default now and hence this project wont work until you connect to peripherals and enable ssh.

from ansible-pi.

davidnquach avatar davidnquach commented on July 22, 2024 3

You can just add an ssh file to the boot path

If you want to enable SSH, all you need to do is to put a file called ssh in the /boot/ directory. The contents of the file don’t matter: it can contain any text you like, or even nothing at all. When the Pi boots, it looks for this file; if it finds it, it enables SSH and then deletes the file.

ref: https://www.raspberrypi.org/blog/a-security-update-for-raspbian-pixel/

from ansible-pi.

Marto32 avatar Marto32 commented on July 22, 2024 1

Got it working - thank you!

from ansible-pi.

Nishanth-R avatar Nishanth-R commented on July 22, 2024

Hi ,
Facing the same issue : For traceability , I have added the Raspi's ip address in Hosts file, updated the wpa_supplicant.conf file and ran the command. Am I missing something?

from ansible-pi.

Marto32 avatar Marto32 commented on July 22, 2024

the guide that @davidnquach posted worked for me regarding the connection failure, but now I'm getting this error:

{"changed": false, "msg": "host key mismatch for 192.168.1.xxx", "unreachable": true}

Any idea how to rectify this?

I'm not sure what to enter for the SSH Password and SSH Key for your new device prompts.

from ansible-pi.

davidnquach avatar davidnquach commented on July 22, 2024

@Marto32

If this is your first time setting up; the default user is pi, and the password is raspberry.

ref: https://www.raspberrypi.org/documentation/linux/usage/users.md

from ansible-pi.

Marto32 avatar Marto32 commented on July 22, 2024

Thanks @davidnquach. I think the problem is the ssh key prompt. What do you enter for please enter the SSH Key for your new device::?

I've tried blank and the one from my known_hosts file but I keep getting this error now:

fatal: [192.168.1.xxx]: UNREACHABLE! => {"changed": false, "msg": "Authentication failed.", "unreachable": true}

from ansible-pi.

davidnquach avatar davidnquach commented on July 22, 2024

I don't believe I have run into that but have you generated an ssh key for your local machine? Also how are you running the ssh command? ssh [email protected] should just prompt you for the password and another prompt for you to agree that it is a safe machine to log into.

from ansible-pi.

Related Issues (4)

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.