How to enable SFTP after installing histiaCP?

Why did they disable SFTP ? After installation even with root access I can’t access the server.
how to enable SFTP after installing histiaCP ?

1 Like

Click on USER.
Click on Packages.
Click the Edit icon next to the package you wish to modify.
Click on System.
Change SSH Access to: bash.

1 Like

No no, you misunderstood me, after installing HestiaCP, SFTP is disabled and you cannot log in as ROOT user.

1 Like

SFTP isnt disabled by default, there was a bug, that on some systems sftp wasnt enabled.

SFTP should work out of the box for hestia users, but usualy root isnt allowed to login by default sshd configuration.

2 Likes

I’m facing this problem again, ubuntu 22.04, I enabled admin user in DASH settings and also in package settings, but for some reason I can’t connect to upload necessary folders.
in config - sshd all enabled ( PermitRootLogin yes )

I’m facing this problem again, ubuntu 22.04, I enabled admin user in DASH settings and also in package settings, but for some reason I can’t connect to upload necessary folders.
in config - sshd all enabled ( PermitRootLogin yes )

UPD
Interesting observation. after installing hestiaCP, but BEFORE rebooting the server, sftp works fine, after rebooting it cannot connect and writes an error

Try this:

sed -i 's/internal-sftp-server.*/internal-sftp/' /etc/ssh/sshd_config
systemctl restart ssh
2 Likes

Thank you, you’ve been very helpful. It works!

1 Like

Thanks, that helped! In my case on fresh install Hestia would only allow sftp access if bash was disabled. If you’d enable bash, then sftp was broken.