DanWin / hosting

This is a setup for a Tor based shared web hosting server
https://danwin1210.de/hosting/
GNU General Public License v3.0
341 stars 126 forks source link

sftp login #137

Closed zwieblinger closed 2 months ago

zwieblinger commented 2 months ago

Hello. I just have a quick question, which I'm sure is a piece of cake for you.

I have installed your hosting script and everything is running 100%. However, since the last reboot at the end of your instructions, I no longer have SFTP access.

I can still access via an SSH console of my server administration, but I would like to use SFTP access as usual.

Can you tell me which line I have to change to make it work again?

Thanks a lot

DanWin commented 2 months ago

Hello @zwieblinger , SFTP is mandatory to work for the hosting, since this is how users can upload files. I can only guess on what may be broken. I believe you are talking about SFTP with the root user? Authentication is changed to disallow password for security reasons, see https://github.com/DanWin/hosting/blob/master/etc/ssh/sshd_config.d/custom.conf#L5 https://github.com/DanWin/hosting/blob/master/etc/ssh/sshd_config.d/custom.conf#L18 Perhaps you are using an SFTP client that uses password authentication? You should switch to authentication by ssh-key, which is more secure.

zwieblinger commented 2 months ago

Hi my friend and "Servus Daniel"

Your answer was more than appropriate and got me straight out of my thinking hole. As you aptly guessed, I had overlooked the file "etc/ssh/sshd_config.d/custom.conf".

But instead of the technical blah blah blah, I would like to say something about you as a person.

I would like to thank you from the bottom of my heart. Not only for the quick help, but for every minute you dedicate to the project and also for your first class support.

Thank you on behalf of everyone you have helped