# Ssh login problem

**URL:** <https://dietpi.com/forum/t/ssh-login-problem/3910>\
**Category:** Troubleshooting\
**Created:** [7 March 2020 10:43 UTC](https://dietpi.com/forum/t/ssh-login-problem/3910 "2020-03-07T10:43:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirkdeb](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@dirkdeb](https://dietpi.com/forum/u/dirkdeb)\
**Post date:** [7 March 2020 10:43 UTC](https://dietpi.com/forum/t/ssh-login-problem/3910/1 "2020-03-07T10:43:44Z")

</div>

I need help with configuration of Openssh-server…please

After a succesful DietPi with Openssh server installation a putty ssh login gives following error:  
Access denied  
As I am inside a firewall on my own on the network, I am not concerned about security…for now 🙂  
My /etc/ssh/sshd\_config is the default/as installed config file.  
Accept for following changes:  
PermitRootLogin yes  
PasswordAuthentication yes  
usePAM no … I changed this default because I got a PAM authentication failure with that enabled

I did useradd user1, passwd user1 .  
The users login/password were tested successfully  
Tried to ssh with putty and login as root and user1 with the same result: Access denied

journalctl -xe |grep ssh  
Failed password for root from 192.168.1.100 port 500356 port 22 [preauth]  
Same for user1

I telnet to my DietPi box with telnet 192.168.1.100 22 with response:  
SSH-2.0-OpenSSH\_7.9p1 Rasbian-10+deb10u2

So… the firewall and network access is fine, ssh server service is running

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [7 March 2020 11:21 UTC](https://dietpi.com/forum/t/ssh-login-problem/3910/2 "2020-03-07T11:21:49Z")

</div>

Hi,

how did you install OpenSSH? Did you used dietpi-software to change SSH Server preference from Dropbear \> OpenSSH??

I tested it on one of my Demo VM’s and it was working out of the box without any configuration needed. Just switched the SSH Server, reboot, done.

---

<div class="post-metadata">

**Author:** ![dirkdeb](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@dirkdeb](https://dietpi.com/forum/u/dirkdeb)\
**Post date:** [7 March 2020 13:47 UTC](https://dietpi.com/forum/t/ssh-login-problem/3910/3 "2020-03-07T13:47:22Z")

</div>

Yip  
I first installed Dropbear via dietpi-software and had the same problem so I thought I previously worked with Openssh and then changed it  
through dietpi-software to OpenSSH

You think, maybe I must uninstall Dropbear and Openssh via dietpi-software , reboot and try again via dietpi-software ?

Thanks again

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [7 March 2020 14:24 UTC](https://dietpi.com/forum/t/ssh-login-problem/3910/4 "2020-03-07T14:24:28Z")

</div>

Hi,

usually there is an option inside dietpi-software that automatically will remove the not needed SSH Server. No need to do it via Software Optimised

> ┌──────────────┤ DietPi-Software ├──────────────────┐  
> │  
> │ Help! : Links to online guides, docs and information  
> │ DietPi-Config : Feature-rich configuration tool for your device  
> │ ●──────────── Select Software ────────────────────●  
> │ Search : Find a software title for installation  
> │ Software Optimised : Select DietPi optimised software for installation  
> │ Software Additional : Select additional Linux software for installation  
> │ \> **SSH Server : [Dropbear]**  
> │ File Server : [None]  
> │ Log System : [DietPi-Ramlog #1]  
> │ Webserver Preference : [Lighttpd]  
> │ User Data Location : [SD/eMMC | /mnt/dietpi\_userdata]  
> │ ●────────── Install or Remove Software ───────────────●  
> │ Uninstall : Select installed software for removal  
> │ Install : Go \>\> Start installation for selected software

Means: If you select OpenSSH, Dropbear will be removed. And if you select Dropbear, OpenSSH will be removed. In general, you should have one SSH server only active as both will try to run on same port 22, which might be conflicting.

---

<div class="post-metadata">

**Author:** ![dirkdeb](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@dirkdeb](https://dietpi.com/forum/u/dirkdeb)\
**Post date:** [9 March 2020 06:24 UTC](https://dietpi.com/forum/t/ssh-login-problem/3910/5 "2020-03-09T06:24:08Z")

</div>

Thanks for the reply.  
I got hold of the login problem.  
I did as you suggest with dietpi-config but the login denied problem stayed.  
This morning I realised I added the users via a usb pluged in keyeboard that was wrongly configured…([EN.uk](http://EN.uk) ans should be [EN.us](http://EN.us)) .sooo the password configured via the keyboard and the ssh session login from the notebook’ s password did not corespond : )

Never too old …

---

<div class="post-metadata">

**Author:** ![cannotdraw](https://dietpi.com/forum/user_avatar/dietpi.com/cannotdraw/32/6737_2.png) [@cannotdraw](https://dietpi.com/forum/u/cannotdraw)\
**Post date:** [2 August 2024 03:58 UTC](https://dietpi.com/forum/t/ssh-login-problem/3910/6 "2024-08-02T03:58:53Z")

</div>

THANK YOU! i had started to suspect something like this could be, as in some environments I cannot turn on the backlight on my keyboard as its tied to the scroll lock and I can’t find a way to change it, they prob also selected the wrong english when they programmed it, and now that I don’t have that keyboard I’m having this issue. It explains years of similar difficulties in the past lol, so glad I found your answer.

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [31 October 2024 03:59 UTC](https://dietpi.com/forum/t/ssh-login-problem/3910/7 "2024-10-31T03:59:41Z")

</div>

Closed on 31 October 2024 03:59 UTC

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