Thursday, May 30, 2019

Python paramiko.SSHClient() Examples

Python paramiko Example


### RUN INSTRUCTION###PYTHON PROGRAMNAME.PY <HOST_IP> <HOST_PASSWORD> <LINUX_COMMAND>


######################################################################3
import sys, paramiko

if len(sys.argv) < 4:
    print ("args missing")
    sys.exit(1)
hostname = sys.argv[1]
password = sys.argv[2]
command = sys.argv[3]

username = "root"
port = 22

try:
    client = paramiko.SSHClient()
    client.load_system_host_keys()

    client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  #  client.set_missing_host_key_policy(paramiko.WarningPolicy())
    client.connect(hostname, port=port, username=username, password=password)
    stdin, stdout, stderr = client.exec_command(command)
    print (stdout.read())
finally:
    client.close()
##########################################################

paramiko does not automatically add unknown hosts #11 (Solved)


paramiko SSH connects Error. (Resolved)



usr/lib/python2.7/site-packages/paramiko/client.py:580: UserWarning: Unknown ssh-rsa host key for 10.20.240.13: 98deaed43de39a61905a6ff514d0d2f8
  (key.get_name(), hostname, hexlify(key.get_fingerprint())))

Thursday, May 23, 2019

Terraform Tutorial Video Library

Terraform Tutorial

Terraform is an open-source infrastructure as code software tool created by HashiCorp. It enables users to define and provision a data center infrastructure

Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions. Configuration files describe to Terraform the components needed to run a single application or your entire datacenter.





Get Video Library, click below

Tuesday, May 14, 2019

AWS Solution Architect Examination Preparation Video Library

AWS Solution Architect Examination
Preparation Video Library

The AWS Certified Solutions Architect - Associate examination is intended for individuals who perform a solutions architect role. This exam validates an examinee's ability to effectively demonstrate knowledge of how to architect and deploy secure and robust applications on AWS technologies.

Click Here for Detail video Library

Wireless Security Configuration: Protect Your Network Now!

Introduction: In today’s connected world, wireless networks are as common as smartphones, and they’re often the gateway to our personal, pr...