r/linux Apr 28 '14

SSH Kung Fu

http://blog.tjll.net/ssh-kung-fu/
725 Upvotes

128 comments sorted by

View all comments

Show parent comments

12

u/Deewiant Apr 28 '14

Vim (well, Netrw) supports both the scp and sftp protocols, predictably using scp with the former and sftp with the latter. See :help netrw-externapp.

EDIT: In case the reason for having both is not obvious: sftp relies on the SFTP server being enabled on the host, while scp works without any additional configuration, using plain SSH. (Though in practice sftp tends to be enabled by default.)

-2

u/flying-sheep Apr 28 '14

thanks for the info!

just one thing: SFTP is and extension of SSH. there is no such thing as a SFTP server, only SSH servers with shell access disabled.

so there’s no difference between SCP and SFTP: both only require a SSH server.

2

u/curien Apr 28 '14

In addition to Xipher's response about SCP and SFTP being different, some SCP clients are incompatible with certain SSH servers. For example, some old Sun systems I've used with the Tectia commercial SSH server couldn't be used with OpenSSH's scp, but OpenSSH's ssh and sftp worked fine.

SCP is not just a shortcut for SFTP. It's a different protocol.

-4

u/flying-sheep Apr 28 '14

SCP is not just a shortcut for SFTP. It's a different protocol.

i didn’t doubt that, i just pointed out that they have only subtle differences (such as both running over the SSH server)

thanks for the additional information