Upload Directory Tree To Remote FTP Server Recursively using NCFTP Rumi, May 5, 2018 Install ncftp client Type the following apt-get command under Debian / Ubuntu Linux to install ncftp client, run: $ sudo apt-get install ncftp If you are RHEL / CentOS / Fedora Linux user, type the following yum command to install ncftp client (first turn on EPEL repo): # yum install ncftp Syntax and examples: The syntax is as follows: ncftpput ftp-host-name /path/to/remote/dir /path/to/local/dir ncftpput -options ftp-host-name /path/to/remote/dir /path/to/local/dir Try the ncftpput client command as follows: ncftpput -R -v -u "username" ftp.yourdomain.com /www/forum /tmp/phpbb Where, -u “username” : Ftp server username -v : Verbose i.e. show upload progress -R : Recursive mode; copy whole directory trees. ftp.yourdomain.com : Remote ftp server (use FQDN or IP). /www/forum : Remote ftp server directory where all files and subdirectories will be uploaded. /www/phpbb : Local directory (or list of files) to upload remote ftp server directory /www/forum You can pass the password with -p option: ncftpput -R -v -u "username" -p "passwordHere" ftp.yourdomain.com /www/forum /tmp/phpbb You can use port number 2021 instead of the default FTP service port # 21 as follows: ncftpput -R -v -u "username" -p "passwordHere" -P 2021 ftp.yourdomain.com /www/forum /tmp/phpbb Related Administrations Configurations (Linux) FTP ClientNCFTP
INSTALL IPTABLES IN DEBIAN 11 (BULLSEYE) February 26, 2024February 26, 2024 In this article you will learn how to uninstall default nftables framework, install iptables Debian 11 (Bullseye) and basic rules initial configuration. Uninstall nftables and its Dependencies IPtables is being replaced by nftables starting with Debian 10 Buster. Debian 11 comes with nftables framework. To install iptables first we need uninstall nftables and its dependencies. SSH… Read More
Send Email from Linux Terminal May 12, 2018 1. Using ‘sendmail’ Command Sendmail is a most popular SMTP server used in most of Linux/Unix distribution. Sendmail allows sending email from command line. Use below instructions to send email using ‘sendmail‘ command. Create a file using following content. [root@tecadmin ~]# nano /tmp/email.txt Subject: Terminal Email Send Email Content line… Read More
Postfix start error on CentOS March 7, 2018 When I tried to start postfix today, I got the following message: fatal: parameter inet_interfaces: no local interface found for 1.2.3.4 Solution is straightforward: nano /etc/postfix/main.cf comment out “inet_interfaces = all” add “inet_protocol = ipv4” Related Read More