Access backup folder
Hello,
I scheduled backups from the WHM and I cannot access this folder with my ftp access. I tried with the root user but I get this error
root@**.**.***.***: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
I don't remember if I denied the root access on purpose for security reasons. How can I check that? I also cannot access this folder with regular users.
Thanks for your help
-
Hey there! You would definitely need root access in order to see that directory on the machine. When you are connecting as the root user you will need to make sure you choose the sFTP option in your client, as root requires a secure connection. There may also be a restriction on the root access, as that error indicates you may have the root login restricted to key access. If you run the following command on the server's terminal you can see if the password authentication is on (yes) or off (no): grep PasswordAuthentication /etc/ssh/sshd_config
Once you have that information you'll be able to move forward, either by adjusting the password access to work temporarily or changing to an sFTP connection. If you are familiar with using the command line you could also access /backup from the WHM >> Terminal application with the "cd /backup" command.0 -
Hi, Thanks for your help. Here what I get : #PasswordAuthentication yes PasswordAuthentication yes # PasswordAuthentication. Depending on your PAM configuration, # PAM authentication, then enable this but set PasswordAuthentication
What does that mean?0 -
That just means you don't have to use an SSH key to access the machine. The next thing to check would be this: grep PermitRootLogin /etc/ssh/sshd_config0 -
PermitRootLogin no # the setting of "PermitRootLogin without-password".
I believe I have added a layer of security to avoid root login right? I don't remember how to change that setting0 -
Thanks for the details - so that is what is keeping you from logging in normally. You likely have a wheel user setup to access the machine so you do not have to log in directly as the root user. The easiest way to resolve this would be to change that value to "yes" and then restart the SSH service. After doing that, I would expect the access to work as you are expecting. 0 -
Does that work if I change the value by Yes directly on the terminal screen and then press Enter? Thanks a lot for your help 0
Please sign in to leave a comment.
Comments
7 comments