ssh.InsecureIgnoreHostKey is lazy and seems popular? I have seen many tutorials and some codes in github that ignore host key checking, this is not recommended as you need to ensure everytime you connect to the known ssh server is the actual server that serves your purpose, if host key checking is ignore then any server … Continue reading Golang – How to write ssh.HostKeyCallback
Tag: ssh
[python]Paramiko’s SSHClient
Paramiko SSH client I wrote a sub class from paramiko in order add on functionality to assist myself to work with Ansible AWX 9.2.0 (dockerless version). The subclass works with my CentOS which hosts the Ansible AWX, the purpose is to use the SSHClient class to download and upload playbooks, check the existence of project … Continue reading [python]Paramiko’s SSHClient
Debian: Checking your Linux for potential rootkit
You have been tasked to set up a Linux server, you have just installed the core packages of debian with debian small CD. After installation is completed, you download two rootkit checkers: apt-get update #To ensure you have the latest package database. apt-get upgrade #To ensure you have the latest package with security holes patched. … Continue reading Debian: Checking your Linux for potential rootkit
Security: Enabling SSH
Step 1: Create a domain-name. 2651-3(config)#ip domain-name cyruslab.com Step 2: Generate RSA key. 2651-3(config)#crypto key generate rsa general-keys modulus 1024 Step 3: Create local username database. 2651-3(config)#username cyrus secret 0 cyrus Step 4:Configure vty login. 2651-3(config)#line vty 0 15 2651-3(config-line)#login local Test from another router. 2651-4#ssh -l cyrus 10.0.0.1 2651-3>en Password: