How/what are you trying to ssh into omv with
SSH Access denied
-
- OMV 5.x
- SusDa12
-
-
How/what are you trying to ssh into omv with
I am using the terminal in Ubuntu 18.04. Or cmd in Windows 10
-
For windows I would recommend PuTTY, many people use this on windows, there is a version for Linux.
-
-
I am using the terminal in Ubuntu 18.04. Or cmd in Windows 10
OK same as me then, so do ssh root@<hostname> or <ip address> of OMV then you get the password prompt, type in the wrong password and you get Permission denied, please try again. Do that three times and you get Permission denied (publickey, password)
-
For windows I would recommend PuTTY, many people use this on windows, there is a version for Linux.
I have tried it with Putty too. Same result.
-
OK same as me then, so do ssh root@<hostname> or <ip address> of OMV then you get the password prompt, type in the wrong password and you get Permission denied, please try again. Do that three times and you get Permission denied (publickey, password)
Yes. I get that?
-
-
Yes. I get that?
The the issue is the password, for me to get those errors I have entered rubbish as the password, but I have a user set up for me and I have just added myself to the ssh group and I can login with my user name, I can even change my password and I can ssh in.
-
The the issue is the password, for me to get those errors I have entered rubbish as the password, but I have a user set up for me and I have just added myself to the ssh group and I can login with my user name, I can even change my password and I can ssh in.
Yeah I get that. But as I already wrote earlier, I have also tried creating a new user and added it to the ssh group. I am 100% sure about the password for this user. But still I cant log in.
-
I am 100% sure about the password for this user. But still I cant log in.
You know you can change a users password in the WebUI, Access Rights Manager -> User, select the user click edit on the menu, type in a new password then confirm the password, save, apply.
-
-
-
BTW, post 11 how did you get that output?
I never did. I have to log in to get that. Right?
-
-
-
This was @raulfg3 log output
Whoops so it is, it is getting late here
-
you can try it:
So, my attempt would be now - to start up via the console, i.e. connect the screen and keyboard and then:
Log in as root, then edit the file nano /etc/ssh/sshd_config.
and changing:
PermitRootLogin no -> to PermitRootLogin yes
(when done push STRG+X and "Y" followed with Enter).
finaly restart SSH - sudo systemctl restart sshd
-
you can try it:
So, my attempt would be now - to start up via the console, i.e. connect the screen and keyboard and then:
Log in as root, then edit the file nano /etc/ssh/sshd_config.
and changing:
PermitRootLogin no -> to PermitRootLogin yes
(when done push STRG+X and "Y" followed with Enter).
finaly restart SSH - sudo systemctl restart sshd
According to him however... he's also tried creating a user and adding said user to SSH group, and he can't SSH w/ that user either (did you restart SSH after doing this?)
It seems to me it's pretty clear his password is wrong.
-
-
It seems I have hacked this issue.
1) Go to access rights management
2) doubleclick the user, in the tab groups - check ssh group
3) then - IMPORTANT! - enter uour password in two boxes in the tab user.
Now you can enter the ssh with the password
PS - root access is denied "user is not in the sudoers file" - PPS solved by adding the user in sudo and root groups
-
I had this exact problem. On Raspberry Pi OS. It occurred after I installed OMV 6. Before installation I was able to SSH into command line from a Windows machine. That was how I installed OMV. (Need to install Pi OS through a connected monitor/keyboard.) Afterwards I received the "access denied" message when attempting to log into the Pi command line through SSD. Yes, the password was correct! I went into the user's profile through OMV admin (Users > Users > click on name > Groups) and checked SSH. It now works as before. I did not need to enter a password anywhere (did not understand that comment), just confirm apply. (Did not need to add root.)
-
OMV provides a more secure sshd config over what is distributed with the Raspbian OS. It requires that the user is in the group ssh.
See directive AllowGroups root ssh in /etc/ssh/sshd_config.
This may come as a surprise for people who are used to ssh as user pi before.
-
-
Howdy,
I had same issue, what I did to fix it is:
mkdir /home/username/.ssh
touch /home/username/.ssh/authorized_keys
chmod 700 /home/username/.ssh
chmod 600 /home/username/.ssh/authorized_keys
chown -R username:username /home/username/.ssh
ANDadded username to line in ssh service configfile (/etc/ssh/sshd_config)
AllowGroups root _ssh USERNAMEI asume the problem started because user was created via OMV panel or useradd instead of adduser, not sure.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!