Securing Linux with SSH key

Overview Using SSH keys instead of passwords enhances security, convenience, and management efficiency. They provide a more secure way to authenticate, especially in environments requiring robust security and automation. Accessing SSH with keys instead of passwords offers several advantages: Enhanced Security Strong Encryption: SSH keys use strong encryption algorithms, making them much harder to crack than passwords. RSA and Ed25519 keys provide high levels of security. Prevents Brute Force Attacks: SSH keys are immune to brute force attacks, as they are significantly more complex and longer than typical passwords....

March 23, 2023 · 4 min · by Chisqi

VMWare Command List - Cheatsheet

General - Get ESXi build and version numbers vmware -vl esxcli system version get - Get host hostname, domain, and FQDN esxcli system hostname get - Get date and time ESXi was installed esxcli system stats installtime get - List local users on ESXi host esxcli system account list - Create local ESXi user esxcli system account add -d="Description" -i="username" -p="password" -c="password" - List available commands with descriptions esxcli command getdetails - List all available namespaces with corresponding commands esxcli esxcli command list - Check maintenance mode esxcli system maintenanceMode get - Enable/Disable maintenance mode esxcli system maintenanceMode set –enable true - Reboot/Restart ESXi host esxcli system shutdown reboot -r "message" - Reboot/Restart ESXi maintenance mode host with countdown timer esxcli system shutdown reboot -d 10 -r "Patch Updates" - Get CPU information of host (family, model, and cache) esxcli hardware cpu list - Get memory information (available and non-uniform memory access) esxcli hardware memory get - Configuration of and information about syslog esxcli system syslog - Generate support and log information bundle from host vm-support Management - Restart Management, HA Services (change to /sbin/services directory) restart - List Virtual Machines (VMIDs) vim-cmd vmsvc/getallvms - List running VMs with world ID esxcli vm process list - Terminate running VM process (forcibly powers off VM) esxcli vm process kill - Power On vim-cmd vmsvc/power....

February 19, 2023 · 7 min · by Chisqi

Keyboard shorcuts on Windows 11

Overview Keyboard shortcuts are keys or combinations of keys that provide an alternative way to do something that you’d typically do with a mouse. Here is the list of shorcuts on Windows 11. Keyboard Shortcuts Windows 11 Press this key To do this Ctrl + X Cut the selected item. Ctrl + C (or Ctrl + Insert) Copy the selected item. Ctrl + V (or Shift + Insert) Paste the selected item....

February 13, 2023 · 4 min · by Chisqi

Vmware Power CLI

Introduction VMware PowerCLI is a command-line and scripting toolset for managing VMware environments via powershell. It allows administrators and IT professionals to interact with VMware infrastructure, including vSphere, vCenter Server, ESXi hosts, virtual machines, and more, through PowerShell commands and scripts. Using PowerCLI, you can perform a wide range of tasks, including: Creating and configuring virtual machines. Managing resource pools, clusters, and datastores. Monitoring and reporting on performance metrics. Managing vCenter Server settings and configurations....

February 3, 2023 · 6 min · by Chisqi

Docker Cheatsheet

Docker Docker is an open-source platform that automates the deployment, scaling, and management of software applications inside containers. Containers are lightweight, portable, and self-sufficient environments that encapsulate application code, runtime, system tools, libraries, and settings, enabling applications to run consistently across different computing environments, such as development laptops, on-premises servers, and cloud platforms. Docker Image A Docker image is a lightweight, standalone, isolated executable package that contains everything needed to run a piece of software or application, including the code, runtime, libraries, environment variables, and system tools....

December 23, 2022 · 2 min · by Chisqi

Active Directory - Cheatsheet

AD Functional level and DC list Functional Level Check Forest functional Level Get-ADForest | ft ForestMode Check Domain functional Level Get-ADDomain | ft DomainMode Upgrade / set Functional level Set-ADForestMode –ForestMode <desired forest level> Set-ADDomainMode –DomainMode <desired domain level> Specifies the forest mode for an Active Directory forest. The acceptable values for this parameter are: Windows2000Forest or 0 Windows2003InterimForest or 1 Windows2003Forest or 2 Windows2008Forest or 3 Windows2008R2Forest or 4 Windows2012Forest or 5 Windows2012R2Forest or 6 Windows2016Forest or 7 Windows2025Forest or 10 Specifies the domain functional level....

August 23, 2022 · 6 min · by Chisqi

Active Directory Service Principle Name (SPN)

Overview In Active Directory, a Service Principal Name (SPN) is a unique identifier for a service instance. SPNs are used by Kerberos authentication to associate a service instance with a service logon account. When a client wants to authenticate a service, it uses the SPN to identify the service and find the appropriate account to authenticate against. Common Tasks with SPNs Viewing SPNs Setting SPNs Removing SPNs Viewing SPNs To view the SPNs for a particular account, you can use the setspn command-line tool or query Active Directory using PowerShell....

August 23, 2022 · 3 min · by Chisqi

Linux Rsync

Overview Rsync is a Linux command-line utility for efficiently synchronizing files and directories between two locations, either locally or over a network. It’s particularly popular for backup and mirroring purposes due to its ability to copy only the differences between source and destination files. Installation This utility is pre-installed on most linux distribution and macOS. But if you don’t have rsync installed on your system, you use the following to install....

June 23, 2022 · 3 min · by Chisqi

M365 portal URL

User portal Login is requird to acess these portals. Office https://www.office.com/ This url takes you to the Microsoft 365 portal, where you can access various Microsoft 365 services, including Outlook for email, Microsoft Teams for collaboration, Word, Excel, PowerPoint, and more. Teams https://teams.microsoft.com/ This URL takes you directly to the Microsoft Teams web application, where you can access your Teams and join meetings, chat with colleagues, collaborate on documents, and more....

March 23, 2022 · 3 min · by Chisqi

M365 Powershell Connect

Here is to connect M365 through the powershell. Installing the module is required. Please always disconnect after you are done doing the task to clear the sesson. Azure AD Connect-azureAD # Connect Azure AD Disconnect-AzureAD # Disconnect Azure AD Az Connect-AzAccount # Connect AzAccount Get-AzSubscription # Check current AZ subscription Connect-AzAccount # Disconnect AzAccount Msol Connect-MsolService # Connect MsolService [Microsoft.Online.Administration.Automation.ConnectMsolService]::ClearUserSessionState() # Disonnect MsolService Exchange Online Connect-ExchangeOnline # Connect ExchangeOnline Disconnect-ExchangeOnline # Disconnect ExchangeOnline MS Teams Install-Module -Name PowerShellGet -Force -AllowClobber Install-Module -Name MicrosoftTeams -Force -AllowClobber Alternative:...

January 12, 2022 · 1 min · by Chisqi