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

SSH... #800

Open
BigBobDalton opened this issue Oct 12, 2024 · 7 comments
Open

SSH... #800

BigBobDalton opened this issue Oct 12, 2024 · 7 comments

Comments

@BigBobDalton
Copy link

Okay, I am not new to using ssh, I have raspberry's working with my pub file but this cam just won't authorize. Not sure if dropbear has anything to do with it but I keep getting refusal to login stating Permission denied (publickey).
the authorization file has my correct generated key. I even tried recreating a new pub key and adding that to the file, still it fails.

On my Raspberry's I can edit the ssh.hd file but this wz_mini doesn't appear to have that option.

Any help would be great.

Thanks.

@bjs-pdx
Copy link

bjs-pdx commented Oct 21, 2024

Any chance your key file has line feeds/carriage returns in it? I had a similar problem until I realized mine did.

@my-umd
Copy link

my-umd commented Oct 25, 2024

What type of key are you using? I can only get type ed25519 key working.

@BigBobDalton
Copy link
Author

No, my key does not have carriage returns, I even tried an empty key. Odd that my key works on every other device I have, albeit windows, linux and macOS.

Encoding is ed25519

@virmaior
Copy link
Contributor

One question would be whether your camera is properly running wz_mini.
can you access the web interface for wz_mini on that camera?
what version of the wyze firmware are you running?
is it a v2 or v3 camera?

@BigBobDalton
Copy link
Author

yeah, I can access it via wz_mini camera is version 3.

At this point I will just keep taking out the sd-card since ssh is not working between my iMac and the camera.

@virmaior
Copy link
Contributor

I had quite a bit of difficulty getting osx to use keys.
There's some settings I've had to do on the security chain every time I reboot and then have to use sudo ssh <camera ip>.

@donsandrop
Copy link

to get SSH working while using macOS

  1. Open a terminal window
  2. type "ssh-keygen" and follow the prompts, example below
% ssh-keygen
Generating public/private ed25519 key pair.
Enter file in which to save the key (/Users/UserID/.ssh/id_ed25519): wz_mini
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in wz_mini
Your public key has been saved in wz_mini.pub
  1. find the .pub file that was created. This was in /Users/UserID for me.
  2. Open the file in a text editor
  3. Copy the key and place it in the /wz_mini_hacks-master/SD_ROOT/wz_mini/etc/ssh/authorized_keys file and save the setting. It should look like the below
#PLACE AUTHORIZED KEYS BELOW

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHayxPmJSWfujHUmPgIrB2lOf6bE1jsQwiUR77InsbTh [email protected]

  1. to ssh into the camera type a similar command in a terminal window:
    ssh root@wyzecameraip -i /Users/UserID/ssh/wz_mini

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

No branches or pull requests

5 participants