Attempt of apt-get install sftp fails with : E: Package 'sftp' has no installation candidate

7,368

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?

Share:
7,368

Related videos on Youtube

Magnus Teekivi
Author by

Magnus Teekivi

Updated on September 18, 2022

Comments

  • Magnus Teekivi
    Magnus Teekivi over 1 year
    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?

    • steeldriver
      steeldriver about 8 years
      AFAIK the default sftp client is provided by the openssh-client package
  • Magnus Teekivi
    Magnus Teekivi about 8 years
    That did the trick. That's what I like about AskUbuntu. Ask a simple question, get a simple answer.