Posts

AWS Flow Logs

Image
  VPC Flow logs Flow Logs feature can be used as a security tool to monitor the traffic that is reaching your EC2 instances. Once enabled, the feature will start  collecting IP traffic data to and from your vpc subnets, data that can be useful to detect and troubleshoot security issues such as restricted security group rule. Analyzing VPC Flow logs Data-

How to generate sshkey for EC2 Linux Instance

  If you are managing hundreds of EC2 Linux servers where you need to take ssh frequently so this is very difficult to enter machines login ssh password every time. So below solution will help you to resolve this issue. Commands- login to your main server and follow the step below. 1.ssh-keygen 2. ls -a 3. id_rsa.pub (this is key which need to copy to your destination server) 4. ssh-copy-id <destination host- admin@192.168.*.*>

SSH Error- Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

  Problem-   The authenticity of host 'IP X.X.X.X' can't be established. ECDSA key fingerprint is SHA256:U8lQ0PvPeWJgvTWC+MHS2Idjt4ZxcDzoW5/7kwJ60X0. ECDSA key fingerprint is MD5:2f:73:20:11:42:5e:02:8a:65:5a:f3:e1:2c:f8:ad:57. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'host IP' (ECDSA) to the list of known hosts. Permission denied (publickey,gssapi-keyex,gssapi-with-mic). Solution- Sometimes it happens we face above issue while making SSH connection between 2 servers or hosts. Step 1- Make sure ssh server is running  Step 2- Make some configuration changes in SSHD_Config file accordingly. Goto- vi /etc/ssh/sshd_config here we need to make 3 changes 1.Uncommet line- PasswordAuthentication yes 2. Commet Line - #PasswordAuthentication no (This will be line number three) 3. Uncommet- PermitRootLogin yes Step 3- Restart service to apply these changes service sshd restart

Your organization has disabled this device. Error code 135011

Image
  Error- Something went wrong (Error while login into MS Team account) Solutions- Login into Azure admin portal-Select users-select affected user and go to devices-Selected disabled device and click on top to enable it.

How to set firewall rule in Ubuntu

 First you need to check current status of the firewall. - sudo ufw status if it is showing inactive or not loaded then it's turned off, OR If it is showing running /active then need to hit below commands. - sudo ufw stop If you don't want to disable and you want to keep it ON then you can add firewall rule with required port number. Example- sudo ufw enable -sudo ufw allow 22 (Here 22 is port for SSH) in same way you can deny this port - sudo ufw deny 22

How to disable Screen Rotation in Ubuntu 18.04 LTS

  With Root access just run below two commands: 1) gsettings set org.gnome.settings-daemon.peripherals.touchscreen orientation-lock true 2) gsettings set org.gnome.settings-daemon.plugins.orientation active false

How to install Kubernetes in Windows 10

Image
  Step 1 - Install and setup Hyper-V Goto- Control Panel\All Control Panel Items\Programs and Features Click Turn Windows features on or off then select all the components came  under Hyper-V It may require a reboot machine. After installing this feature open PowerShell then run as administrator and hit below command. Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V Output will look like the screenshot below. Step2 - Now install docker for Windows. You can download it from the link below. https://hub.docker.com/editions/community/docker-ce-desktop-windows Step3 - After installing docker right click on docker tray and goto settings from the left side click on Kubernetes and start it .Here it will take a few minutes to complete installation process along with dependencies. If everything goes well then you will see below screen. Step4 - Now install Kubernetes dashboard so that you can manage k8 resources through GUI. For doing this follow the below steps. Download confi