-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.

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

1 Answer 1

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 .