Sftp server

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Andi17
Posts: 2
Joined: Fri Dec 27, 2019 2:40 pm

Sftp server

Post by Andi17 »

Hello together,

I want to run a sftp Server on my dietpi that Friends can access to my files from extern with encryption.
Can anyone Help me how can i do this?
Thanks in advance
User avatar
Joulinar
Posts: 2617
Joined: Sat Nov 16, 2019 12:49 am

Re: Sftp server

Post by Joulinar »

Hi,

did you already have an SFTP Server running on your system? If not, pls setup "OpenSSH" Server first. This can be done within "dietpi-software" Settings by changing SSH Server from Dropbear > OpenSSH. Afterwards SFTP should already working inside your local network. It can be checked with an appropriate SFTP Client like WinSCP.

If all this is working, you would need to open Port 22 on your Internet Router / forward port 22 to your DietPi System. But honestly I would not recommend this, because your DietPi system will be accessible from Internet for SSH as well. So you would need to ensure the right protection and Security level for your system. Because every port scanner will find your open SSH Port 22 on the Internet :?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2423
Joined: Sat Nov 18, 2017 6:21 pm

Re: Sftp server

Post by MichaIng »

There is also a standalone SFTP server available (the OpenSSH one) which can be even used by Dropbear: https://packages.debian.org/buster/openssh-sftp-server

However probably it makes sense to simply switch to OpenSSH to have it on board and combined configurable via /etc/sshd_config.
Post Reply