How to Setup password less SSH Authentication in Linux

  • Create RSA Key pair for accessing SSH Service

[root@testserver01 ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:

How to Sync Folder & files from One server to Another Server

Rsync Copy Files & Folder through SSH

  • Install Rsync in Both Server

[root@testsvr01 ~]# yum install -y rsync

[root@testsvr02 ~]# yum install -y rsync

  • Run below command for Sync files and Folder

[root@testsvr01 ~]# rsync -v -r -e ssh --progress /opt/soruce_dir/* root@testsvr02:/opt/dest_dir/

How to move (copy) Files and Folder to Another Location using Rsync

Install Rsync CLI Tools

[root@testsvr01 ~]# yum install rsync -y

Move Files and Folder to Another Location using Rsync

[root@testsvr01 ~]# rsync -avzi  --delete --progress /opt/soruce_dir/ /opt/destination_dir/

Copy Files and Folder to Another Location using Rsync

[root@testsvr01 ~]# rsync -avzu --progress /opt/soruce_dir/ /opt/destination_dir/

How to Set SSH Banner in Redhat Linux

[root@testsvr01 ~]# cat << EOF > /etc/ssh/sshd-banner #############################################################################

 

         ACCESS WARNING: THIS IS Learns to Win NETWORK
         *********************************************************

  Unauthorized access to this device or the attached networks is prohibited
  without express written permission. Violators will be prosecuted to the
  fullest extend of both civil and criminal law.

Show Saved WIFI Password in Windows

C:\Users\User> netsh wlan show profiles

Profiles on interface Wi-Fi:

Group policy profiles (read only)
---------------------------------
    <None>

User profiles
-------------
     All User Profile     : BSNL_FTTH
     All User Profile     : CISCO
     All User Profile     : Belkin


C:\Users\User>netsh wlan show profile name=BSNL_FTTH key=clear

Profile BSNL_FTTH on interface Wi-Fi:
=======================================================================

Subscribe to