Fix bash ftp command not found in linux kali centos debian ubuntu

How to fix bash ftp command not found in kali linux centos debian ubuntu

To upload, download or manage the contents of an FTP, we have an endless number of graphic applications, Filezilla is one of the most popular. But We need to do this from the command line in Linux.
Fix bash ftp command not found in linux kali centos debian ubuntu
Especially when we work on a server and we don’t have a GUI, we need to upload a file to the server, delete something or create a folder, etc., But only a terminal is available, nothing more.

To work with an FTP server, just one command is enough:

ftp

You should use this command with the IP address (or host) of the FTP server for connect to it, for example:

ftp 192.168.128.2

But you may encounter the following error!!!:

-bash: ftp: command not found

In this article we show you how to fix “bash ftp command not found” problem.

Fix with yum install command

Install directly from Linux repository 

Use Alternate Commands solution

Install ftp command Linux (cenos, kali, etc)

You can simply install this command automatically:

yum install ftp

But you may not succeed and see the error .

Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
No package ftp available.
Error: Nothing to do

In this conditions, follow our other solutions.

How to install ftp command from Linux repository directly

Step 1:

Go to the Linux packages repository page and find ftp rpm link (here the rpm name is ftp-0.17 ).

32-bit OS:

link

64-bit OS:

link1

or (older)

link2

Step 2:

You should download it.

On 32-bit OS:

wget -c http://mirror.centos.org/centos/6/os/i386/Packages/ftp-0.17-54.el6.i686.rpm

On 64-bit OS:

wget -c http://mirror.centos.org/centos/7/os/x86_64/Packages/ftp-0.17-67.el7.x86_64.rpm

Step 3:

Then, install it:

On 32-bit OS:

rpm -ivh ftp-0.17-54.el6.i686.rpm

On 64-bit OS:

rpm -ivh ftp-0.17-67.el7.x86_64.rpm

Use Alternate Commands solution

You can use other commands that have the same usage.

For download:

wget -m --ftp-user=username --ask-password  ftp://192.168.128.2/public_html/dl1/file1.tar.gz

Then enter the password.

For Upload:

scp file-to-upload [email protected]:destination-path

 

Leave a Reply

Your email address will not be published. Required fields are marked *