Hello everyone,
Since last two weeks i am facing a new issue in SSH. whenever i am trying to add some more files on my VPS using SCP then it says connection closed. I tried almost everything like reinstalling SSH, enabling and disabling. But nothing works. In fresh install of Hestia it works only within 1st 10 min and after that it stop working.
Hi @rabby
But, can you connect using ssh?
Show the output of these commands?
grep -Ev '^#|^$' /etc/ssh/sshd_config
iptables -S
ls -lR /srv/
Out is so long. Please be specific what i need to look. Because everything else is working on my server except SCP.
If SSH is working SCP should work too, maybe you mean SFTP?
grep -Ev '^#|^$' /etc/ssh/sshd_config
iptables -S
ls -la /srv/ftp/
ls -la /srv/jail/

See this screenshot
Whenever i am trying to do SCP file transfer i face this.
Show the output of the commands (copy and paste the output, no screenshots please).
Do you access via ssh using root user and password?
yes i access via SSH using root.
Include /etc/ssh/sshd_config.d/*.conf
LoginGraceTime 1m
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
DebianBanner no
AcceptEnv LANG LC_*
Subsystem sftp internal-sftp-server
PermitRootLogin yes
HostKeyAlgorithms +ssh-rsa
Match User sftp_dummy99,rabby,akkvc,coskot,grkvc,kodetree,lifeline,mukt,nashachudaokender,nashamuktipunjab,rahul_keyanntech,testing,grkvc_dev
ChrootDirectory /srv/jail/%u
X11Forwarding no
AllowTCPForwarding no
ForceCommand internal-sftp -d /home/%u
Execute these commands and try again:
sed -i 's/internal-sftp-server/internal-sftp/' /etc/ssh/sshd_config
systemctl restart ssh
Yes, Great it works. i trying everything with chatGPT. How can i learn how to handle server any complete guide please share reference.
Thanks
Great! ![]()
I’ve never actually read a complete guide on how to manage Linux. I’ve gone through tons of articles, specific how-tos for certain services, and lots of forum posts, but I’ve never used a guide that tries to cover everything. So I’m afraid I can’t really recommend one.
Wasted so much time figuring this out, finally it works after sed
When are we release 1.9.4 - hestiacp/install/upgrade/versions/1.9.4.sh at 7acc8283fcd5b3d8de053e57fa766b18ad137f01 · hestiacp/hestiacp · GitHub
I feel ya. didnt know this old thread and started another.
Hey Boys and Girls.
I’ve also just come across this issue (clean install about a month ago, ubuntu 24.04) do we need to add a line to the install docs / getting started? Maybe a per distro errata? I assume this happens to everyone?
Yes, it’s a bug.
If the error is happening now:
sed -i 's/internal-sftp-server/internal-sftp/' /etc/ssh/sshd_config
systemctl restart ssh
After that, to fix it permanently:
cd /usr/local/hestia/bin/
mv v-add-sys-sftp-jail v-add-sys-sftp-jail.ori
curl -sSL https://raw.githubusercontent.com/hestiacp/hestiacp/b7b2f3b10cbfd5b727bb8cb835bc236bdfbc6660/bin/v-add-sys-sftp-jail -o v-add-sys-sftp-jail
chmod +x v-add-sys-sftp-jail
It’s a bug that should be fixed in next Hestia release.
Hey @Sahsanu,
Ah, so the script that adds the sftp users is doing so with the wrong binary? This (and other) post was fairly easy to find so I guess not the end of the world.
When do we expect the next release?
I’ve no idea.
probaly next week.
Awesome. Not much point adding a note to the docs then if it’s going to be fixed in the next week or so.