Possible to FTP to DietPi and get to /mnt?

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
trendy
Posts: 342
Joined: Tue Feb 25, 2020 2:54 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by trendy »

Joulinar wrote: Thu Mar 18, 2021 8:12 pm @trendy can you check install state for OpenSSH client

Code: Select all

cat /boot/dietpi/.installed | grep -F [0]
Yeah, sure it is not selected.

Code: Select all

dietpi@kakadu:[~]$ cat /boot/dietpi/.installed | grep -F [0]
aSOFTWARE_INSTALL_STATE[0]=0
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Possible to FTP to DietPi and get to /mnt?

Post by Joulinar »

What device/image you are running
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
trendy
Posts: 342
Joined: Tue Feb 25, 2020 2:54 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by trendy »

Code: Select all

DietPi v7.0.2 (beta) : 13:26 - Παρ 19/03/2021
 ─────────────────────────────────────────────────────
 - Device model : RPi B (armv6l)
The beta must have been a leftover. I switched back to main after the testing period finished.
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Possible to FTP to DietPi and get to /mnt?

Post by Joulinar »

Maybe package got installed along with others? We never will find out probably. Running dietpi-update -1 should reinstall master branch
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
trendy
Posts: 342
Joined: Tue Feb 25, 2020 2:54 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by trendy »

I do not have any system to test currently. If you, however, happen to do some testing for something else, please check if it is there on a freshly installed system. If it is not, try again installing pihole. I cannot think of anything else.
User avatar
MichaIng
Site Admin
Posts: 3097
Joined: Sat Nov 18, 2017 6:21 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by MichaIng »

Pi-hole does not pull it as dependency. To check whether it's a dependency of any other installed package, you could simply try to remove it. On confirmation prompt it would show you if/which dependants would be removed together with it: apt remove openssh-client
User avatar
trendy
Posts: 342
Joined: Tue Feb 25, 2020 2:54 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by trendy »

I did some testing and found out that on one system with dropbear as server, the openssh-client is pulled when sftp-server is installed, which most likely is what could have triggered the installation.
For the other system, in case you switch the ssh server from dropbear to openssh, both client and server are installed. Weirdly, removal of sftp-server asks to remove server too, and removal of client asks to remove both server and sftp as well.
Pretty strange and it doesn't seem to work as I have expected.
User avatar
MichaIng
Site Admin
Posts: 3097
Joined: Sat Nov 18, 2017 6:21 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by MichaIng »

Ah that makes all sense. These are the package dependencies:
openssh-server > openssh-sftp-server + openssh-client
openssh-sftp-server > openssh-client

Here an alternative SFTP server that does not pull the OpenSSH dependency: https://packages.debian.org/buster/gesftpserver
But it's SFTP only, no SCP.
Post Reply