Use FTP or LFTP over a SOCKS proxy or SSH tunnel

Install tsocks:

sudo dnf install tsocks  # OR ...
sudo apt install tsocks

Start a SOCKS tunnel over SSH:

ssh -D 6000

Create a ~/.tsocks.conf file:

cat > ~/.tsocks.conf <<EOF
server =
server_port = 6000

Run your FTP client using tsocks and the newly created config file:

TSOCKS_CONF_FILE=$HOME/.tsocks.conf tsocks lftp