5
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?

Magnus Teekivi
  • 245
  • 1
  • 2
  • 6

2 Answers2

10

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?

5

openssh-client package contains sftp executable. Install using the following:

sudo apt-get install openssh-client

Source: https://packages.ubuntu.com/focal/amd64/openssh-client/filelist

oradwell
  • 151