LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 07-19-2022, 06:49 AM   #1
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,066

Rep: Reputation: 147Reputation: 147
Question Android/Samsung device FTP or SSH servers?


Recently my Android 12 Samsung Galaxy S10 FTP drop-down statusbar button options include FTP server so I enabled/activated but desktop (FreeBSD, Slackware) nmap shows no port 21. If I can't enable this I either must use WWW (messier/slower) or poweroff and remove SD card (using paperclip) and load from PC card reader (X11/KDE5 file transfer no longer works).
        I told Samsung.com chat but the person was technically incompetent--or perhaps a Millennial or younger--and said ask my provider (I bought the S10 from Samsung) then said use hostname provided in 'upload "modal" window' (apparently isn't English expert) of 'usegalaxy.org: 'Galaxy FTP'... I don't know what that is but would be much slower--through a middleman (probably monitoring)--and defeat purpose. I don't think he knows what he's talking about and didn't even know (nor check) if Android or Samsung has instructions/manual despite I'll need FTP username (and told me to reboot rather than ever acknowledge I need username).
        I've seen third-party articles say enable FTP server in My Files (Samsung's Android File Manager) but no option appears in My Files.
        It's a bit weird they added this because for a decade or few people who used FTP use SSH & SFTP more though I like telnet, rlogin/RSH, plain FTP. I setup Galaxy Tab S3 SSH server but it's default restricted/broken & non-root chrooted (not even in main storage area and has SD card inaccessible) needing several/many workarounds I have to try next one, which problems include you don't even know your username but get random-sounding ones (like u_nnn for digits n) and in recent Android versions you don't even own your own files you put on your phone--root does (this was an overdone 'security' thing that broke many pre-2020s file readers/viewers.)
        I was happy/amused to see FTP added in 2022... what's the story on this--anyone successfully enabled it (or SSH, which in some cases requires root... of course, RSH would be nicer (with a little less overhead) because this is just at home)?

Last edited by dchmelik; 07-19-2022 at 06:29 PM.
 
Old 07-19-2022, 11:14 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,325

Rep: Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330
I've long given up on that.

Unless you're trapped on a desert island with a solar charger, there's bound to be faster ways of file transfer. I have kids of an age where I taught them about ftp, irc, ssh etc while they were under 10 and they're laughing at me now and buried in the latest tech with zero patience. Nobody types if they can point & click; that's the bottom line. Just like nobody spells, when they can type "spell confoosyush" into a browser and get Confucius.

Let's own up and face it: Console jockeys were all the rage in the last millenium.
 
Old 07-19-2022, 06:35 PM   #3
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,066

Original Poster
Rep: Reputation: 147Reputation: 147
Unhappy

Quote:
Originally Posted by business_kid View Post
[...]there's bound to be faster ways of file transfer.[...]
Nonsense!
Quote:
Nobody types if they can point & click[...]
Nonsense! (which FTP can be 'point & press' anyway) I stated file transfer using KDE5 no longer works. Now I'd have to compress one or more directories/folders, copy them to my PC's webserver (if it's on) then go to my Android device's web browser, and download it, and move it where I want, and decompress it--if there's even enough space--then delete the archives. That's six steps instead of one.

If you're not going to help at least stop ranting on topics which then makes them look like a useless answer has been an answer.

Last edited by dchmelik; 07-19-2022 at 06:36 PM.
 
Old 07-20-2022, 07:26 AM   #4
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
I had a similar requirement, initially I was using sFTP client on the phone (Samsung s21 ultra) to copy the files to the computer. Which was a pain because the client was extremely buggy.

Nowadays, I use syncthing and have the client installed on both my phone and the computer. You can decide if you want a bi-directional sync or a one way, I do a bi-directional sync as that allows me to delete/rename/copy stuff on my computer and have them reflected on the phone without having to copy files around.

I suggest that you check it out as it makes it extremely easy to copy stuff from the phone to the computer.
 
Old 07-22-2022, 05:18 AM   #5
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,066

Original Poster
Rep: Reputation: 147Reputation: 147
I'd rather use rsync, but finally got FTP working: one might have to wait a while then get a notification it's open on a non-standard port.
 
Old 12-24-2023, 05:58 AM   #6
Altoid
Member
 
Registered: Oct 2016
Location: Southern Hemisphere
Distribution: Devuan
Posts: 112

Rep: Reputation: Disabled
Hello:

My apologies for resurrecting a rather dated thread.
Just over a hard year for many.
But I digress ...

Quote:
Originally Posted by dchmelik View Post
... finally got FTP working ...
Great!

I have sort of been forced by circumstances to start using a smartphone for some things. 8^°
But I refuse to let go of my still working BlackBerry 9320.

That said, I would be obliged if you'd let me know how you managed to get FTP working.

I run Devuan Beowulf on a Sun Ultra 24 WS and the phone is a Samsung SM-A02M.

Has a microUSB 2.0 socket, 802.11 b/g/n Wi-Fi 2.4GHz and 5.1 + A2DP/LE Bluetooth but I'd rather a cable connection with a USB/ethernet adaptor, if available or can be hacked.

Thanking you in advance, I wish you a Merry Xmas and a Happy New Year.

Best,

A.
 
Old 12-26-2023, 05:32 AM   #7
rufwoof
Member
 
Registered: Nov 2017
Distribution: Kernel+busybox+ssh+vnc+alsa (framebuffer)
Posts: 201

Rep: Reputation: Disabled
ssh ... in the way of sshfs ... i.e. mount a remote folder locally via ssh, as that way the mounted folder can have files dragged from/to that folder using your regular gui desktop/file manager.

termux on my android along with ssh installed and sshd has ssh server started on port 8022 (8000 added to the usual port 22 for ssh).

Personally I prefer to run sshd on the android phone and rather than on the laptop, but you could just as equally run it the other way around.
 
Old 12-27-2023, 07:01 AM   #8
Altoid
Member
 
Registered: Oct 2016
Location: Southern Hemisphere
Distribution: Devuan
Posts: 112

Rep: Reputation: Disabled
Hello:
Quote:
Originally Posted by rufwoof View Post
ssh ... in the way of sshfs ... i.e. mount a remote folder locally via ssh ...
I have managed to solve the problem at hand by just mounting the phone's card via the OS file manager, in this case PCManFM or Thunar via a BlackBerry issued USB cable.

Not having to move huge files or needing any security, it will probably do for now.

Further on I'll study some way to make my 'smart'phone a bit more useful to me eg: some USB/ethernet adaptor plugged into the non-managed switch to ssh into any of the devices I have pugged in ie: my main box, a Devuan Chimaera VM inside (running piHole/unbound) and an Asus 1000HE.

Thanks for your input.

Best,

A.
 
Old 12-28-2023, 08:34 AM   #9
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
For file transfer berween pc and phone (Android) I use kdeconnect. Pretty fast. Gnome adopted kdeconnect as I understand. Unfortunately, I don't think that non KDE Plasma/Gnome can do the trick, so the only way to transfer files is over USB.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Samsung claims foreman lied about his past to get on Apple v. Samsung jury LXer Syndicated Linux News 0 10-04-2012 09:40 AM
LXer: Samsung Asks for JMOL, or New Trial and Remittitur - Says Apple v. Samsung Trial Was Not Fair LXer Syndicated Linux News 1 09-23-2012 06:10 AM
LXer: Apple v. Samsung verdict is in: $1 billion loss for Samsung LXer Syndicated Linux News 0 08-25-2012 10:20 AM
LXer: There's a Verdict in Apple v. Samsung ~pj - Yes, Samsung Infringes - Damages $1,051,855 LXer Syndicated Linux News 0 08-25-2012 08:30 AM
Splix driver for Samsung - New samsung printers iqbala Linux - Hardware 3 07-02-2010 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 05:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration