-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot connect by sftp to Dietpi #947
Comments
Hi, Which software installed on RPi, Proftpd? And, does standard FTP function? |
You have to install OpenSSH instead of default Dropbear |
@Fourdee : Hi ! My installed sofware are: I'm able to connect to my dietpi with the windows software "puTTY" (so by SSH) but not by SFTP with WinSCP or FileZilla @3d-gussner : As I said before, OpenSSH is already installed and I'm able to connect to DietPi with puTTY. |
@Fourdee By running
Also, the jumbo frame is already disabled too. By the way, I never touched that settings... This is what I can see in /var/log/auth.log just after I'm trying to connect with WinSCP on my pi, by sftp, for user dietpi
By trying SCP protocol, it looks to work and I can remote my dietpi. What I have to do in order to make it work with SFTP protocol ? Thank you for your answers |
The above mentions text print on server, during login can be a cause, so lets check these:
Also, try disabling |
Hi @Fourdee . By disabling By reading the link you provided, does it mean I have to move the Thanks again for your answer... |
Excellent, great to hear 👍
For now, yes. |
Marking as resolved. Please reopen if required. |
Hi.. Sorry for the delay... I confirm that your given solution worked for me.. 😊 Thank you |
It seems that the login command is still in bashrc and it still causes issues with scp? Is there going to be a fix for this? |
@vvv-ibm Hi, Which SSH server installed and client used? |
openssh-server 1:7.4p1-10+deb9u3 |
Hi, Sorry for necroposting, but this additional information might help people finding this answer.
This answer solves the following issues :
Also, note that it changes the SSH signature so it must be removed if it was accepted : Thanks |
Indeed, with Dropbear as SSH server I also face connection drops on larger transfer at about every 450 MiB: #3296 (comment) Would you mind to open a new issue about MC and GNOME Files SFTP connection issues? I would like to try replicating it when I find time. I am not aware of any SFTP connection issues with Dropbear and any SFTP client so far. |
I wasn't reporting a new problem actually, just making the reason and consequences more visible, basically saying : in order to have SFTP on DietPi, just replace Dropbear with OpenSSH.
What ? Dropbear doesn't support SFTP, that's known, even yourself mentioned it on other issues. That said, making OpenSSH default instead of Dropbear would avoid users experiencing this altogether. |
Both is not true (which other issue you mean). Dropbear supports SFTP perfectly fine (when installing any SFTP server, like the dedicated OpenSSH SFTP server package or GreenEnd SFTP server): I use it since years and did a lot of tests. The large file transfer halt was the only issue I only ever faced, I can resume them, and I nearly never transfer large files anyway. SFTP is not particularly a feature of the SSH server, but a dedicated binary is executed from within the SSH session, which enables the file transfer functionality. There is nothing which should break the execution of the SFTP server executable on Dropbear, same as it does not prevent you from executing any other executable. This is the reason I was asking to make a dedicated issue from it, as those are unexpected issues 😉.
Or we try to find out why you experience these unexpected issues, and in case report them to Dropbear to make it better. The recent major liblzma>systemd>OpenSSH attack made me quite confident that it is not the worst thing to have a less popular SSH server as default. And of course it suites much better the lightweight approach of DietPi. The only known limitations are some missing PAM features, so that e.g. new mails are not shown on the console on login, |
Ah, I misinterpreted context in this thread. Of course you require an SFTP server executable (OpenSSH does as well, but has a package dependency on it): apt install openssh-sftp-server Or, the one I would prefer: apt install gesftpserver
ln -s /usr/libexec/gesftpserver /usr/lib/sftp-server # the default path most SFTP clients look for I guess this would solve your issues while using Dropbear then. Of course switching to OpenSSH is a legit alternative. While I would not change the default SSH server, some visual option to install an SFTP server, when Dropbear is selected, would be helpful, indeed. |
And enabled by default, please. |
Hi Team..
I was trying to connect by sftp (with WinScp or FileZilla) to my Dietpi installed in my raspberry Pi 3 Model B. Unfortunetly, I can't connect in any way. WinSCP tells me that STFP Packet is too big and FileZilla is not able to connect to my pi.
Can you help me please ?
Thank you
The text was updated successfully, but these errors were encountered: