Frogg logo

Frogg's web tools

Hand Crafted Tools

Home > VMWare Esxi > Esxi FTP via sh
Welcome on Frogg's web tools | Current date :
07/10/2022

Esxi FTP via sh

1] activate ssh on your esxi

2] download ncftp linux files at adress

ncftp binaries

from windows:

copy past the url into your web browser
upload bin files to your esxi using SFTP option on a ftp client (SFTP is included in ssh)

from esxi

temporary disable firewall copy to clipboard
esxcli network firewall set --enable false

get ncftp files copy to clipboard
wget {Archive.tgz}

create a folder where tar will be extract copy to clipboard
mkdir {TargetFolder}

extract them copy to clipboard
tar -C {TargetFolder}  -xvzf {Archive.tgz}

once extracted you can move the bin folder to where you want

3] in esxi ssh go to the bin folder, find ncftpput (the nftp command to upload file) and add execute rights

copy to clipboard
chmod +x ncftpput

4] disable temporary firewall (due to passive mode)

copy to clipboard
esxcli network firewall set --enable false

5] upload your file !

copy to clipboard
./bin/ncftpput -u {user} -p {pass} -v -z -t 5 -E -P 21 {server} {serverPath} {localFilePath}
    -v = use progress meter (not really usefull)
    -z = resume mode
    -t = timeout in secondes
    -E = passive mode (-F for active mode)
    -P = port
    if you dont use passive mode, u can disable only ftppart of the firewall with the command: esxcli network firewall ruleset set -r ftpClient -e true

6] enable firewall

once done, set back on your firewall copy to clipboard
esxcli network firewall set --enable true

Page created by the 06/04/2022 15:34
Generated in 0.003 sec & displayed in ... sec