SFTP Access Borken

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.8.2
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: I think I hardened the server

Describe your issue

I can’t access my server via FTP (or SFTP). my user has admin settings via the web gui.

Share relevant logs or error messages

$ grep -w -i -E ‘sftp|internal-sftp|Subsystem’ /etc/ssh/sshd_config

Disallow user without ssh or sftp permissions

AllowGroups ssh.main sftp.main ssh.app sftp.app admins root

SFTP stuff

Subsystem sftp internal-sftp

Apply following instructions to user with sftp perm only

Match Group sftp.main,!ssh.main
ForceCommand internal-sftp -u 0002
# Forbid SFTP users from using their account SSH as a VPN (even if SSH login is disabled)
Match Group sftp.app,!ssh.app
ForceCommand internal-sftp -u 0002

If you can’t, then for the love of god please explain what happens

Status: Connecting to 192.168.1.84…
Response: fzSftp started, protocol_version=11
Command: open XXXXXXX@192.168.1.84 22
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to server

What do you mean?

Where is the diagnosis?

Did you change the ssh port?

1 Like

My ssh port is changed. So I use the same port for secure ftp?

I used the same non-standard port as I use for SSH and also the same RSA key. I was able to connect. Thank you!

1 Like

Did you take some time to read the documentation?

Yes, I did. Before posting here for help.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.