# Can't login to server with user credentials

**URL:** <https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136>\
**Category:** Help! (Home for newbies)\
**Created:** [October 9, 2026, 8:10am UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136 "2026-10-09T08:10:21Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrMartinus](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/d/a6a055/32.png) [@DrMartinus](https://forum.virtualmin.com/u/DrMartinus)\
**Post date:** [October 9, 2026, 8:10am UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/1 "2026-10-09T08:10:21Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | AlmaLinux 10.2 |
| Virtualmin version | 8.3 Pro |

I am still moving from one server to another and need to transfer data from the old server to the new one using rsync. The command looks like this:

```auto
rsync -aH --info=progress2 --exclude='somefile' /var/vmail/domainname/user1/Maildir/ user1@12.34.56.78:/home/username/homes/user1/Maildir/

```

I was able to connect with this command:

```auto
rsync -aH --info=progress2 --exclude='somefile' /var/vmail/domainname/owner/Maildir/ owner@12.34.56.78:/home/owner/Maildir/

```

where “owner” is the owner of a Virtual Server (not root). But the first command (just a user within the Virtual Server, but not owner) doesn’t connect. I get prompted for the password, I enter the password for that user, and it does not accept it. I have been very careful with the password not to introduce any typos, but the server just doesn’t accept it. What do I do wrong?  
I run rsync on the source server, which is the old one. The new one (destination) runs Virtualmin. I have set the user’s login capabilities to “Email, FTP and SSH”, yet there is no way of logging in via SSH.  
I have also checked Fail2ban, it has locked the domain out several times, I unbanned it, yet no success. I restarted sshd, after that again no logging in possible.

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [October 9, 2026, 8:58am UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/2 "2026-10-09T08:58:37Z")

</div>

You need to check logs for the errors on virtualmin side. The Log errors are everything in solving problems otherwise its just a guessing game.

---

<div class="post-metadata">

**Author:** ![DrMartinus](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/d/a6a055/32.png) [@DrMartinus](https://forum.virtualmin.com/u/DrMartinus)\
**Post date:** [October 9, 2026, 9:12am UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/3 "2026-10-09T09:12:18Z")

</div>

It tells me `Invalid user user1 from 34.45.67.89`  
Of course “user1” and “34.45.67.89” are only for illustration, they are not the real username or IP address. I find that odd, as the user is porperly created, it may login according to Virtualmin, etc.  
I found this in `secure` log file, is there another log in which I should look? I didn’t find a ssh logfile, and in `messages` I don’t find any reference to “user1”.

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [October 9, 2026, 9:15am UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/4 "2026-10-09T09:15:18Z")

</div>

> [@DrMartinus](#):
>
> Of course “user1” and “34.45.67.89” are only for illustration, they are not the real username or IP address.

my guess  
User1 is an ‘email only’ user so therefore does not have a login shell (email users have a shell of /dev/null by default)

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [October 9, 2026, 9:19am UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/5 "2026-10-09T09:19:42Z")

</div>

Ok, user1 would normally need a @ symbol. When you list the users for that domain does it show [user1@domain.com](mailto:user1@domain.com) or user1 under username, I suspect thats the problem.  
Not sure how that will work with rync using a ip number

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/f/2/f2fc99537ffe73cb088b445ada8a36a6dc4af2f8.png)

---

<div class="post-metadata">

**Author:** ![DrMartinus](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/d/a6a055/32.png) [@DrMartinus](https://forum.virtualmin.com/u/DrMartinus)\
**Post date:** [October 9, 2026, 9:25am UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/6 "2026-10-09T09:25:45Z")

</div>

Ok, first of all thank you for your input! I appreciate it! I have created this user within a Virtual Server in Virtualmin, i.e. it’s a “sub user” (my choice), not the owner. However, there is an option to set “Login access”, and that I have set (as already mentioned) as “Email, FTP and SSH”. Doesn’t that qualify it as a valid user? And if not: how can I remedy this?  
Since I have disabled root access, I can only connect using a specified user who is a sudoer, but using rsync I cannot use that user, because then I get the response that there are no rights to access that particular folder.  
One idea I just got: I could copy the stuff into that privileged user’s folder and from there move it to the proper folder of the other user, using Virtualmin’s file manager, but wouldn’t that mess horribly with the ownership and access rights? I’m not sure if I want to do that.

---

<div class="post-metadata">

**Author:** ![DrMartinus](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/d/a6a055/32.png) [@DrMartinus](https://forum.virtualmin.com/u/DrMartinus)\
**Post date:** [October 9, 2026, 9:30am UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/7 "2026-10-09T09:30:06Z")

</div>

> [@stefan1959](#):
>
> Ok, user1 would normally need a @ symbol. When you list the users for that domain does it show [user1@domain.com](mailto:user1@domain.com) or user1 under username, I suspect thats the problem.  
> Not sure how that will work with rync using a ip number

It shows `user1@domain.name`. I cannot (yet) use that as login, because the domain isn’t pointing to the right IP address yet.

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [October 9, 2026, 10:10am UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/8 "2026-10-09T10:10:29Z")

</div>

A workaround to use user1 (as long as there is no other user with that name) is in webmin Users and Groups clone that user and add just user1 as the name edit it to have the same id, same group ,same folder location and bash login.

like this

![image](https://cdn.forum.virtualmin.com/uploads/default/optimized/3X/e/9/e9017ad6bbe615e4e394a431ed5237b7f3c421bf_2_690x24.png)

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [October 9, 2026, 4:03pm UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/9 "2026-10-09T16:03:35Z")

</div>

You have to use the actual username.

If the username is `user@domain.tld`, you need to login with the actual username. (`ssh -l user@domain.tld domain.tld` or the IP address or `ssh user@example.com@example.com`). The default username format for email users is `user@domain.tld`.

`user` is not a valid user unless you do what stefan1959 suggested, but you don’t need to do that. Just login with the actual username, which is shown on the Edit Users page in the “Username” field.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [October 9, 2026, 4:05pm UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/10 "2026-10-09T16:05:15Z")

</div>

> [@DrMartinus](#):
>
> One idea I just got: I could copy the stuff into that privileged user’s folder and from there move it to the proper folder of the other user, using Virtualmin’s file manager, but wouldn’t that mess horribly with the ownership and access rights? I’m not sure if I want to do that.

Don’t make things complicated.

Just login with the actual username (`user@domain.tld`). `user` is not the username. The Edit Users page shows you the username in the “Username” field. That’s the username.

---

<div class="post-metadata">

**Author:** ![DrMartinus](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/d/a6a055/32.png) [@DrMartinus](https://forum.virtualmin.com/u/DrMartinus)\
**Post date:** [October 9, 2026, 9:51pm UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/11 "2026-10-09T21:51:38Z")

</div>

Well, but I need to do the rsync from the source server. It’s not just a ssh login. Or can I do `rsync -aH /from/path user@domain.tld 12.34.56.78:/to/path`? I’m pretty sure that won’t work.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [October 9, 2026, 10:54pm UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/12 "2026-10-09T22:54:49Z")

</div>

> [@DrMartinus](#):
>
> Well, but I need to do the rsync from the source server. It’s not just a ssh login. Or can I do `rsync -aH /from/path user@domain.tld 12.34.56.78:/to/path`? I’m pretty sure that won’t work.

It would work if you specify it separately:

```auto
rsync -aH -e 'ssh -l user@domain.tld' /from/path/ 12.34.56.78:/to/path/

```

---

<div class="post-metadata">

**Author:** ![DrMartinus](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/d/a6a055/32.png) [@DrMartinus](https://forum.virtualmin.com/u/DrMartinus)\
**Post date:** [October 11, 2026, 7:36am UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/13 "2026-10-11T07:36:50Z")

</div>

I tried the rsync with ssh, but ran into a multitude of different problems, hence I put the data into one archive, copied that over and distributed the appropriate data to the appropriate users, hoping that all rights and ownerships (which I then set) are properly done. I couldn’t preserve ownership anyway, because on the old server there was a different administration system. It took some time, but not too much.

Thank you to all who helped me!

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [October 19, 2026, 7:37am UTC](https://forum.virtualmin.com/t/cant-login-to-server-with-user-credentials/138136/14 "2026-10-19T07:37:03Z")

</div>

Closed on October 19, 2026, 7:37am UTC

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