Run commands on remote server using plink

As an engineer, you might come across some task that need to run commands on remote machine. This post will show you how to use plink to run command on remote machine. PuTTY Link (Plink), a command-line utility for secure remote access. You can find the software here. If you have installed full version of… Continue reading Run commands on remote server using plink

Paloalto firewall ssh authentication with public key

It’s common that administrator login to ssh server with key to avoid typing password all day. This post demonstrates how to config Paloalto firewall to use ssh key authentication. 01. Go to Device>Administrators, select the user name you want to add ssh key authentication. 02. Check “Use Public Key Authentication(SSH)” 03. Import your ssh public… Continue reading Paloalto firewall ssh authentication with public key

Factory Reset Palo Alto Firewall without admin password

This post demonstrate how to perform factory reset if you don’t have admin password. For this to work, you need a console connection to firewall. 01. Reboot firewall by unplug the power cable and then plug it back in. 02. From console output, select “PANOS (main-sysroot1)”. Please noted, this selection only show up around 5… Continue reading Factory Reset Palo Alto Firewall without admin password

Enable console(UART) on raspberry pi 4b running ubuntu22.04

I recently had some issue on how to enable UART(console) port on a raspberry pi device. This post will help you configure raspberry pi to be accessible by UART(console) on the board. 01. Edit the config.txt under /boot/firmware. Add “enable_uart=1” in the file or edit if the line already exist. 02. Edit cmdline.txt under /boot/firmware.… Continue reading Enable console(UART) on raspberry pi 4b running ubuntu22.04

Let your python script take command line argument with Argparse

Sometime in your life you might want your script to be able to accept command line argument as input. This post will teach you the most basic usage of Argparse library. I only touch surface of this library if you would like to know more detail usage read docs.python.org for further instructions. Installation is quite… Continue reading Let your python script take command line argument with Argparse