Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On that note, from a Linux system, what does `sftp` use on the command line? I had always assumed that SFTP was always and only SSH transfers, just like using `scp`. Is this wrong of me to think this way?


I had always assumed that SFTP was always and only SSH transfers, just like using `scp`. Is this wrong of me to think this way?

No, this is absolutely correct. But don't be surprised if someone misinterprets you.


I'm not sure I agree with you 100% on your police work there, Lou. SFTP is its own protocol; it runs over SSH, but is substantially more complicated than "scp". "sftp" is not just user interface, like scp is.


I took his comment to mean, "I've always understood SFTP to be the FTP protocol that runs over SSH", and so I replied that his understanding was correct.

I didn't consider him saying "like using scp" to mean he thinks "it is scp". Rather, I took it to mean, "it uses SSH to copy files, like scp".

But, I can see how one could interpret it that way. It was not my intent.

I'm staying the heck of out of the pedantry business in the future. This has been a ridiculous bundle of threads all spawned just because I had a bee in my bonnet about how the term SFTP is confusingly misused by lots of folks. I don't even use any of these "FTP" protocols for anything (I use rsync or SVN for website data, and scp for one-off file copies--I haven't used an FTP GUI since I owned an Amiga). I only ever touch FTP for testing problems our users report, and then always using lftp on the command line. I've got no dog in this race...


'man sftp'

:)


Man, why can't people let me take 10 minutes of their life to explain trivialities for me to grasp in 60 seconds, instead of me being the one to waste 10 minutes looking it up? Are you all really that lazy and self-centered?


Because it would take about 15 seconds for you to find the answer by yourself by invoking the aforementionned command.

Seriously, here's the first DESCRIPTION paragraph of man sftp:

  sftp is an interactive file transfer program, similar to ftp(1), which performs all operations over an encrypted
  ssh(1) transport.  It may also use many features of ssh, such as public key authentication and compression.
  sftp connects and logs into the specified host, then enters an interactive command mode.


"... Man, why can't people let me take 10 minutes of their life to explain trivialities for me to grasp in 60 seconds ..."

If this is not an ironic comment: RTFM is good for you and it's not a good habit to encourage people to ask for "pre-digested" knowledge just because "you" see no value in looking something up.


Sarcasm is the name of the game. I was just so caught up in the article/comments that I momentarily forgot about manpages, usually my first place to consult.


Teach a man to fish...


"I had always assumed that SFTP was always and only SSH transfers, just like using `scp`."

Which brings up what I was wondering, what use cases do SFTP/FTPS/FSTP etc. satisfy that a combination of scp and rsync do not? Maybe better for GUI client and file browser interfaces?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: