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

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?

1

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

1

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

sudo apt-get install openssh-client

Source:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like