magnus@mt-dell:~$ 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 What to do?
12 Answers
I believe the package you want to install is openssh-server.
sudo apt-get install openssh-server Source: How to setup a restricted SFTP server on Ubuntu?
1openssh-client package contains sftp executable. Install using the following:
sudo apt-get install openssh-client