[email protected]:~$ Sudo apt-get install sftp
[Sudo] password for magnus:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sftp is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sftp' has no installation candidate
¿Qué hacer?
Creo que el paquete que desea instalar es openssh-server.
Sudo apt-get install openssh-server
Fuente: ¿Cómo configurar un servidor SFTP restringido en Ubuntu?