# Unable to access via SSH after install

**URL:** https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613
**Category:** Support
**Tags:** ssh, install, english
**Created:** [July 29, 2024, 10:39am UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613 "2024-07-29T10:39:28Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![s4v0h34d](https://forum.yunohost.org/user_avatar/forum.yunohost.org/s4v0h34d/32/9670_2.png) [@s4v0h34d](https://forum.yunohost.org/u/s4v0h34d)
#### Post date: [July 29, 2024, 10:39am UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/1 "2024-07-29T10:39:29Z")

</div>

### My YunoHost server

**Hardware:** Dedicated Server AR6-32 - 6 Core x 3.6 GHz (AMD Ryzen 5 Pro 3600) - RAM: 32 GB - SSD: 2 x 480 GB Software RAID 1  
**YunoHost version:** 11.2.24  
**I have access to my server :** Through the webadmin  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no

### Description of my issue

Hi, sorry to bother you for something I’m probably doing wrong, in some way, but I’ve tried several times and I don’t get what I’m doing wrong.  
I installed Yunohost on several different structures, and every time I followed the same instructions:

- `apt install curl ca-certificates curl https://install.yunohost.org | bash`
- chose “Yes” and “No” to the following questions during the install process (the default answers)
- tried to login via web interface for the postinstall routine

Here I experienced the same issue twice on this machine.  
I start the postinstall process and I set my password.  
In the login page after this process, I’m not able to login with my username and password. I have to refresh the page or reload from the url bar. But after that, my user and pass work.  
The bigger problem is when I try to connect via SSH: usually the root user gets the admin password (having chosen the default options during installation) and I can login. But on this machine I’m not able to login as root with the new password I chose. And the strangest thing is: i cannot login through ssh even with the admin account I created during the postinstall process.  
So I’m able to access Yunohost’s user interface with my admin user and pass, but when I try to access the server through SSH my admin user is recognized, but the password doesn’t work and I get an “Access denied” message.  
Sorry again and thanks for every possible help on this  
s

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [July 29, 2024, 10:47am UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/2 "2024-07-29T10:47:02Z")

</div>

To summarize, after postinstall

- you can log in the webadmin with your personal account
- you cannot log in with SSH as root (that’s normal if you are not on the same local network as your server)
- you cannot log in with SSH as your personal account (that is not normal)

Does the Diagnosis page report anything wrong with SSH or connectivity? Have you allowed YunoHost to alter the SSH config during the installation?

---

<div class="post-metadata">

### Author: ![s4v0h34d](https://forum.yunohost.org/user_avatar/forum.yunohost.org/s4v0h34d/32/9670_2.png) [@s4v0h34d](https://forum.yunohost.org/u/s4v0h34d)
#### Post date: [July 29, 2024, 11:39am UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/3 "2024-07-29T11:39:02Z")

</div>

Thanks @tituspijean , your summary is correct.  
here’s the diagnosis SSH part:

 ![Schermata del 2024-07-29 13-34-03](https://forum.yunohost.org/uploads/default/original/2X/9/9fbc525d5ad82d9fc9a6e351dfe0301eab438b83.png)  
as you can see it says that it appears to have been manually modified, but I never had access to the server, so I couldn’t be able to modify any file after installaion.  
During installation I followed the same guide I always follow and that says:

> When prompted to overwrite configuration files and allow YunoHost to reconfigure SSH, choose the default options ( **Yes** and **No** , respectively).

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [July 30, 2024, 11:49am UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/4 "2024-07-30T11:49:25Z")

</div>

There might have been a mishap here, let’s try to regenerate the configuration, can you perform the first command of the Diagnosis warning and share its output here?

---

<div class="post-metadata">

### Author: ![s4v0h34d](https://forum.yunohost.org/user_avatar/forum.yunohost.org/s4v0h34d/32/9670_2.png) [@s4v0h34d](https://forum.yunohost.org/u/s4v0h34d)
#### Post date: [July 30, 2024, 12:08pm UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/5 "2024-07-30T12:08:57Z")

</div>

That’s the problem, I cannot access via SSH, so I cannot perform any action on the server terminal.

---

<div class="post-metadata">

### Author: ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)
#### Post date: [July 30, 2024, 2:02pm UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/6 "2024-07-30T14:02:35Z")

</div>

Can you try to add a new user and add it to the admins group? Try sshing with the new user

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [July 30, 2024, 4:47pm UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/7 "2024-07-30T16:47:17Z")

</div>

If jarod’s suggestion does not work, try installing a web-based terminal emulator like Wetty.

---

<div class="post-metadata">

### Author: ![s4v0h34d](https://forum.yunohost.org/user_avatar/forum.yunohost.org/s4v0h34d/32/9670_2.png) [@s4v0h34d](https://forum.yunohost.org/u/s4v0h34d)
#### Post date: [July 30, 2024, 9:23pm UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/8 "2024-07-30T21:23:34Z")

</div>

Thanks, creating a new user and putting it into admins, worked (sorry for the late reply, I was working and I’m about to go to bed, but I wanted to try this, in order to give you the results). Here’s what I get when I perform `yunohost tools regen-conf ssh --dry-run --with-diff`

 ![Schermata del 2024-07-30 23-17-36](https://forum.yunohost.org/uploads/default/original/2X/c/c72d75756cbffa5f783092456e8161348d1188e5.png)  
 ![Schermata del 2024-07-30 23-17-47](https://forum.yunohost.org/uploads/default/original/2X/a/a1f1e3f1b6b44d4855a0463ee0624e23e6309cd1.png)  
 ![Schermata del 2024-07-30 23-17-58](https://forum.yunohost.org/uploads/default/original/2X/4/46fbab83a92501db9473127c1ae6c7f1751572f2.png)  
 ![Schermata del 2024-07-30 23-18-10](https://forum.yunohost.org/uploads/default/original/2X/3/39040ddbb81f923ab482a005a0da8ca86b1eae50.png)  
 ![Schermata del 2024-07-30 23-18-26](https://forum.yunohost.org/uploads/default/original/2X/3/3cb94ad1f3f2301f43cfd8e731bcf2087eb5ca79.png)  
Let me know if I have to force the reset to recommended configuration or not, I’ll do it first thing in the morning. Thanks and sorry again.

---

<div class="post-metadata">

### Author: ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)
#### Post date: [July 30, 2024, 10:23pm UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/9 "2024-07-30T22:23:23Z")

</div>

Did you use ‘admin’ as first user?

---

<div class="post-metadata">

### Author: ![s4v0h34d](https://forum.yunohost.org/user_avatar/forum.yunohost.org/s4v0h34d/32/9670_2.png) [@s4v0h34d](https://forum.yunohost.org/u/s4v0h34d)
#### Post date: [July 31, 2024, 7:52am UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/10 "2024-07-31T07:52:25Z")

</div>

sorry, I don’t understand the question.  
If you’re asking if I called “admin” the first user I created while installing, the answer is NO.  
I created the second one, the one you suggested to create and add to admins, with a name that contains “admin”, but I created it just for this purpose.  
If you’re asking something different, let me know. I’m sorry, but I’m a newbie.  
Thanks again

PS. let me know if I have to force the recommended configuration

---

<div class="post-metadata">

### Author: ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)
#### Post date: [July 31, 2024, 4:56pm UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/11 "2024-07-31T16:56:40Z")

</div>

> [@s4v0h34d](#):
>
> If you’re asking if I called “admin” the first user

Yes, I noticed that some users were complaining about not being able to ssh when they were using “admin” as username.  
Anyway, you can make a copy of your sshd\_config file and force the regen.  
Since you didn’t modify it yourself, I would say it should be reset to what yunohost wants.  
In my servers, I prefer letting yunohost manage everything so it’s coherent and easy to understand.

---

<div class="post-metadata">

### Author: ![s4v0h34d](https://forum.yunohost.org/user_avatar/forum.yunohost.org/s4v0h34d/32/9670_2.png) [@s4v0h34d](https://forum.yunohost.org/u/s4v0h34d)
#### Post date: [July 31, 2024, 6:11pm UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/12 "2024-07-31T18:11:10Z")

</div>

finally!  
Thank you so much!  
Now I can login with my usual account via SSH.  
Really, really strange. I didn’t manually changed the file that appeared manually changed.  
But thank you, everything’s fine and diagnosis gives a green flag.

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [August 30, 2024, 6:11pm UTC](https://forum.yunohost.org/t/unable-to-access-via-ssh-after-install/30613/13 "2024-08-30T18:11:38Z")

</div>

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