-4

If both SFTP and SSH both runs on same port #22. Then in which case do we need to use each of them separately.

closed as unclear what you're asking by SilverlightFox, Steffen Ullrich, Dog eat cat world, Rory Alsop Jun 11 '16 at 11:27

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    It is not clear the question you're asking - this doesn't appear to be about security? – SilverlightFox Jun 11 '16 at 6:39
2

SFTP is subsystem of SSH. When you run sftp command, it internally creates ssh connection for you and run sftp-server on the other side.

SSH (Secure SHell) itself is separately for remote shell. SFTP (SSH File Transfer Protocol) itself separately is for file transfer, as you can make up from the shortcuts.

Not the answer you're looking for? Browse other questions tagged or ask your own question.