# Cant login to web admin or via SSH

**URL:** <https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259>\
**Category:** Archive\
**Tags:** asl3\
**Created:** [July 1, 2024, 3:09pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259 "2024-07-01T15:09:04Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![M7DHQ](https://community.allstarlink.org/user_avatar/community.allstarlink.org/m7dhq/32/3032_2.png) [@M7DHQ](https://community.allstarlink.org/u/M7DHQ)\
**Post date:** [July 1, 2024, 3:09pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/1 "2024-07-01T15:09:05Z")

</div>

Hello, I just installed the latest raspberry pi version on a pi3 following the howto and adding hostname and user/password ( I used asl/asl ).

After it reboots I am able to see the web interface either via the IP or the hostname I setup just fine but when I try to log in to the we admin area using asl / asl I get `Wrong user name or password`. Same with SSH

```auto
➜ ~ ssh asl@192.168.1.142
asl@192.168.1.142's password:
Permission denied, please try again.

```

Any ideas of what to try? Tried 3 times now with different usernames/passwords the hostname is setup correctly and it connects to WIFI so I know its using the custom config it just isnt setting up the user for some reason?

---

<div class="post-metadata">

**Author:** ![N8EI](https://community.allstarlink.org/user_avatar/community.allstarlink.org/n8ei/32/4254_2.png) [@N8EI](https://community.allstarlink.org/u/N8EI)\
**Post date:** [July 1, 2024, 3:57pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/2 "2024-07-01T15:57:04Z")

</div>

Try making the password be something that’s at least six characters long. That’s just a guess on my part… we haven’t seen this problem before. If that doesn’t work, use `ssh -vvv` as part of your connect to see if there’s some sort of odd error with your ssh client.

---

<div class="post-metadata">

**Author:** ![M7DHQ](https://community.allstarlink.org/user_avatar/community.allstarlink.org/m7dhq/32/3032_2.png) [@M7DHQ](https://community.allstarlink.org/u/M7DHQ)\
**Post date:** [July 1, 2024, 4:04pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/3 "2024-07-01T16:04:05Z")

</div>

Thx reflashing now with longer password.

---

<div class="post-metadata">

**Author:** ![M7DHQ](https://community.allstarlink.org/user_avatar/community.allstarlink.org/m7dhq/32/3032_2.png) [@M7DHQ](https://community.allstarlink.org/u/M7DHQ)\
**Post date:** [July 1, 2024, 4:11pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/4 "2024-07-01T16:11:42Z")

</div>

Same issue unfortunatly

Discourse would not let me post the output from ssh, contained more than 2 links apparently, so here it is as a gist

> <https://gist.github.com/Pross/776521566299dd756f5d1a430f683af6>

---

<div class="post-metadata">

**Author:** ![N8EI](https://community.allstarlink.org/user_avatar/community.allstarlink.org/n8ei/32/4254_2.png) [@N8EI](https://community.allstarlink.org/u/N8EI)\
**Post date:** [July 1, 2024, 4:56pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/5 "2024-07-01T16:56:21Z")

</div>

I just burned a test image using a username and password of asl/asl and it worked just fine. Are you using Pi Imager 1.8.5?

---

<div class="post-metadata">

**Author:** ![M7DHQ](https://community.allstarlink.org/user_avatar/community.allstarlink.org/m7dhq/32/3032_2.png) [@M7DHQ](https://community.allstarlink.org/u/M7DHQ)\
**Post date:** [July 1, 2024, 5:14pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/6 "2024-07-01T17:14:47Z")

</div>

1.8.5 yea. Im using a Pi3 would that make a difference? I select that model before it gets to the select image setting

---

<div class="post-metadata">

**Author:** ![N8EI](https://community.allstarlink.org/user_avatar/community.allstarlink.org/n8ei/32/4254_2.png) [@N8EI](https://community.allstarlink.org/u/N8EI)\
**Post date:** [July 1, 2024, 5:18pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/7 "2024-07-01T17:18:32Z")

</div>

A Pi 3B is, in fact, what I just tested on. Shouldn’t make any difference. Make sure you don’t have public-key only configured in the imager:

 ![image](https://community.allstarlink.org/uploads/default/original/2X/b/b084ef0bb4696a377750b3d85e8e4a56a9652d3b.png)

---

<div class="post-metadata">

**Author:** ![M7DHQ](https://community.allstarlink.org/user_avatar/community.allstarlink.org/m7dhq/32/3032_2.png) [@M7DHQ](https://community.allstarlink.org/u/M7DHQ)\
**Post date:** [July 1, 2024, 5:23pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/8 "2024-07-01T17:23:37Z")

</div>

Trying now… hopefully that works

---

<div class="post-metadata">

**Author:** ![M7DHQ](https://community.allstarlink.org/user_avatar/community.allstarlink.org/m7dhq/32/3032_2.png) [@M7DHQ](https://community.allstarlink.org/u/M7DHQ)\
**Post date:** [July 1, 2024, 5:34pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/9 "2024-07-01T17:34:03Z")

</div>

Ok that didnt work either.

I guess I’ll do the debian 12 install method instead. Unless you have any other ideas to debug this?

My windows craptop does not have anyway to connect an SD card so I can only use rpi imager on macos.

---

<div class="post-metadata">

**Author:** ![N8EI](https://community.allstarlink.org/user_avatar/community.allstarlink.org/n8ei/32/4254_2.png) [@N8EI](https://community.allstarlink.org/u/N8EI)\
**Post date:** [July 1, 2024, 5:40pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/10 "2024-07-01T17:40:48Z")

</div>

I’m not sure what to tell you. While not personally a Mac user, a number of the other developers are and they haven’t had any problems like what you’re describing. You can install a stock raspberry Pi image (although that’s exactly what the PI appliance is with some incredibly trivial customization), install the repository .deb file, and then install asl3-pi-appliance asl3 asl3-menu and asl3-update-nodelist and get something that’s fairly close to the appliance.

---

<div class="post-metadata">

**Author:** ![M7DHQ](https://community.allstarlink.org/user_avatar/community.allstarlink.org/m7dhq/32/3032_2.png) [@M7DHQ](https://community.allstarlink.org/u/M7DHQ)\
**Post date:** [July 3, 2024, 2:55pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/11 "2024-07-03T14:55:40Z")

</div>

So after some digging other people have found the same issue, it seems that when the imager creates the hashed password in `firstrun.sh` the hash does not match the password. I found solutions on stack exchange as well as pi-hole github.

Running this command creates the correct hash `echo 'asl' | openssl passwd -6 -stdin`

```auto
➜ ~ echo 'asl' | openssl passwd -6 -stdin
$6$tfXWw2djNCKdlyGZ$6q4fKZ7dxWrM1Ubl4aeZ.3izxcum0JC1PgbOA7vPVug/FgVWyeEnGWGXCCr7BDc73BwIcXN6bWNxUNQYEYbsR0

```

Then I just replace the hash in `firstrun.sh` in the two places it occurs, boot for first time and im able to log in!

I dont know whether its a macos issue, python version issue or just something random.  
One thing I did confirm is that even the default pi install had the same issue, so the issue is the imager, not with asl3.

Hopefully this will help the next person who stumbles on this bug.

---

<div class="post-metadata">

**Author:** ![N8EI](https://community.allstarlink.org/user_avatar/community.allstarlink.org/n8ei/32/4254_2.png) [@N8EI](https://community.allstarlink.org/u/N8EI)\
**Post date:** [July 3, 2024, 4:53pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/12 "2024-07-03T16:53:28Z")

</div>

Interesting. Glad you found a workaround.

---

<div class="post-metadata">

**Author:** ![system](https://community.allstarlink.org/uploads/default/original/2X/4/42700284e201b031bd667c3f63bbae05a74b3104.png) [@system](https://community.allstarlink.org/u/system)\
**Post date:** [July 6, 2024, 4:53pm UTC](https://community.allstarlink.org/t/cant-login-to-web-admin-or-via-ssh/21259/13 "2024-07-06T16:53:40Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
