Sftp|ssh jail disabled scp . Are there any docs?

I did a fresh install and never enabled any jails. However it looks like both v-add-sys-sftp-jail and v-add-sys-ssh-jail were ran during install before the admin user was added.

Only added one user to the system and by default it was set to nologin. I set it to bash. Never was set to jailbash. In any event /etc/ssh/sshd_config had a change which disabled the scp command.

this: Subsystem sftp internal-sftp
was changed to: Subsystem sftp internal-sftp-server

It was hard to chase down as scp didnt give a good error. adding the -O option to scp was a workaround.

my other hestia installs did not have this change but they were older installs and upgraded to 1.9.3

Is any of this documented and is it the desired output to modify the sshd_config upon hestia installation when no jails are selected ?

yes you can say scp is depreciated. yes there are opinions that internal-stp-server is redundant. never knew any of that. All I know is scp quit working for me and it

thanks

Keep in mind that this is a bug and there’s a PR to fix it:

Workaround:

sed -i -E 's/internal-sftp.*/internal-sftp/' /etc/ssh/sshd_config && systemctl restart ssh

Thanks i was unaware of the upcoming fix when I posted this. I didn’t see any docs on the jails but I am no help to assist as I don’t use these features.
Thanks so much sahsanu

1 Like