Posts

Showing posts from January, 2016

grep: unknown device method

Today while using grep command via rundeck I was through grep: unknown device method  error. And the reason is due to I am having ' - ' in my search pattern I was through this error. I mean search includes grep "-search.this" /path/to/file Then you may get error with grep. So remove ' - ' in pattern and repeat your search. grep "search.this" /path/to/file Hope that helps.

Uploading files to FTP/SFTP using CURL

Hello, Today I am writing below article which can help you to upload files to SFTP/FTP by using CURL. Ok why we need that ? Let me tell explain!! How we login into SFTP/FTP ? [root@virt03 test]# sftp 192.168.56.110 Connecting to 192.168.56.110... root@192.168.56.110's password: sftp> ls anaconda-ks.cfg       nodes                 post-install          post-install.log sftp> exit and uploading files with put command. Its a lengthy way. So recently I have gone through few articles and with some R&D I have modified it as script and command-line argument support.So you can call the script with filename as argument.  So Lets do this!!! Command 1 : This is for uploading a single to SFTP/FTP by using CURL.  SFTP curl -k  -u virt03:virt03 -T file4  sftp://192.168.56.110/home/virt03/ Syntax :  curl -k  -u username:password -T filename sftp://IP_Addreess OR Hostname:/path/to/upload  FTP curl -k  -u virt03:virt03 -T f

List the installed RPMs by date of installation in CentOS/RHEL 6.x

How to list  the installed packages on date wise Command is :  # rpm -qa --qf '%{INSTALLTIME} (%{INSTALLTIME:date}): %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -n

How To Configure VSFTPD With TLS/SSL On RHEL/CentOS 6.x and How To Connect Secure VSFTPD(TLS/SSL) in Heterogeneous Environments Using Client Programs. (Part..A)

Image
Traditional FTP is rather insecure. When you login, your username and password are transmitted in clear text, raising the possibility of your credentials  be ing  'sniffed' by a malicious person. Fortunately there's an easy answer to this. You can quite easily configure your vsftpd server to use OpenSSL encryption, so that usernames & password, and even data files, are encrypted during transfer. It takes just a few simple steps:   Vsftpd is already available under CentOS/RHEL   default repositories. We assume that CentOS/RHEL users have enabled default repositories  in his system. Now execute following command.   Note:-  This post works with  Security-Enhanced Linux ( SELinux ) is enabled    Installing and Configuring the Vsftpd in RHEL/CentOS 6.x   Step1 :-    Install VsFTPd   # yum install vsftpd   Step2 :-   Configure Basic VsFTPd Settings   Now Edit Vsftpd configuration file  /etc/vsftpd/ vsftpd.conf  in CentOS/RHEL  and do the some ba