Ansible Solution for Bulk Upgrading OpenSSH and OpenSSL

Ansible Solution for Bulk Upgrading OpenSSH and OpenSSL

Complete Ansible Playbook (<span>upgrade_openssh_openssl.yml</span>) yaml —- name: Upgrade OpenSSH and OpenSSL to fix vulnerabilities hosts: all become: yes serial: 1 # Operate on one host at a time to reduce risk vars: # Target versions (modify according to actual needs) target_openssh_version: "8.9p1" target_openssl_version: "3.0.11" # Fallback versions (for emergency recovery) fallback_openssh_version: "8.4p1" fallback_openssl_version: "1.1.1w" tasks: … Read more

Automatically Transfer Files from Linux to Windows Server 2012 via SCP

Automatically Transfer Files from Linux to Windows Server 2012 via SCP

1. The download link is as follows:https://github.com/PowerShell/Win32-OpenSSH/releases 2. Unzip the downloaded OpenSSH-Win64.zip to C:\Program Files\OpenSSH 3. Open PowerShell as an administrator and navigate to the unzipped directory:4. Run the installation script: powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1 5. Modify the default port 6. Start the service, set it to start automatically, and check the listening port … Read more

Ansible Automation Tool Installation and Configuration Guide

Ansible Automation Tool Installation and Configuration Guide

Ansible is an agentless automation tool based on SSH and HTTPS, which allows for batch server configuration management and application deployment through simple YAML scripts. It is widely used in enterprise IT environments for batch operations and DevOps process optimization. This article provides a detailed introduction to the installation, configuration, and compatibility handling of Ansible … Read more

25 Linux Server Security Tips You Can Always Use!

25 Linux Server Security Tips You Can Always Use!

链接:https://blog.csdn.net/2401_84578953/article/details/144244011? ☞The course by Liang Xu has completely exploded!☜ Everyone thinks that Linux is secure by default, and I generally agree (this is a controversial topic). Linux does indeed have a built-in security model. You need to enable it and customize it to achieve a more secure system. Linux is harder to manage, but correspondingly … Read more

Linux Emergency Response – Common Service Logs

Linux Emergency Response - Common Service Logs

System Logs btmp /var/log/btmp records all login attempts that failed, displaying the last ten entries. root@mon0dy-ubuntu:~# lastb –time-format iso -10 root ssh:notty 58.56.52.226 2023-03-11T14:30:23+0800 – 2023-03-11T14:30:23+0800 (00:00) root ssh:notty 58.56.52.226 2023-03-11T14:30:20+0800 – 2023-03-11T14:30:20+0800 (00:00) root ssh:notty 58.56.52.226 2023-03-11T14:30:16+0800 – 2023-03-11T14:30:16+0800 (00:00) root ssh:notty 58.56.52.226 2023-03-11T14:30:05+0800 – 2023-03-11T14:30:05+0800 (00:00) root ssh:notty 58.56.52.226 2023-03-11T14:30:02+0800 – 2023-03-11T14:30:02+0800 (00:00) … Read more

Linux System Administration: Installing Kali Linux on a Virtual Machine

Linux System Administration: Installing Kali Linux on a Virtual Machine

Table of Contents I. Theory 1. Kali Linux II. Experiment 1. Preparation for Installing Kali Linux on a Virtual Machine 2. Installing Kali Linux 3. Changing to Domestic Sources for Kali Linux 4. Setting a Static IP for Kali Linux 5. Enabling SSH Remote Access for Kali Linux 6. Remote Access to Kali Linux via … Read more

Automated Operations with Python: Chapter 6 Notes

Automated Operations with Python: Chapter 6 Notes

Chapter 6: Detailed Explanation of the System Batch Operation Manager Paramiko Paramiko is an SSH2 remote secure connection implemented in Python, supporting both authentication and key-based methods. It can perform remote command execution, file transfer, and intermediate SSH proxy functions. Compared to Pexpect, it has a higher level of encapsulation and is closer to the … Read more