Fading Coder

One Final Commit for the Last Sprint

Ubuntu 22.04 Workstation Setup: SSH, Remote Desktop, Miniconda, and PyTorch

Disk Layout Mount Size Purpose /boot 512 MiB Kernel & GRUB swap 16 GiB Virtual memory / rest OS, packages, user data A separate /home partition is optional; keeping everything under / simplifies future resizing. GPU Driver Ubuntu 22.04 usually ships with a compatible NVIDIA driver. If not: sudo...

Configuring and Deploying Windows Subsystem for Linux on Windows 10

The Windows Subsystem for Linux (WSL) provides a compatibility layer for running native Linux ELF64 binaries directly on Windows 10. This integration allows developers to utilize Linux command-line tools and applications without the overhead of a traditional virtual machine. Activating Developer Mod...

SSH Key Fingerprints: Generation and Verification

When connecting to a remote host via SSH, you might encounter a warning like this: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHI...

Enhancing Linux System Security Through Practical Optimization Techniques

Command History Auditing Enabling command history with timestamps and increasing the history size provides visibility into system operations. This helps track user activiites and troubleshoot issues: # /etc/profile.d/history_config.sh export HISTSIZE=10000 export HISTTIMEFORMAT="%Y-%m-%d %H:%M:...

Secure Shell Key Management and Configuration on Linux

Generating Authentication Keys Execute the following command to create a new key pair within the user's home directory. The ~ symbol represents the home path, typically /home/username for standard users or /root for the superuser. ssh-keygen -t ed25519 -C "admin@example.org" -f ~/.ssh/work...

Configuring Network Services and SSH Key Authentication on Linux

1. Gateway Server and Host Configuration Set up gateway server with dual NICs: ens36: 12.0.0.254/24, ens33: 192.168.241.254/24. Server1 uses 192.168.241.0/24. PC1 and Server2 obtain IP via DHCP. Enable remote SSH access (e.g., Xshell) to Server1 and the gateway. Adjusting Network Interfaces On the g...

Methods to Skip SSH Initial Host Key Confirmation and Automate Password Input

When establishing an SSH connection to a remote server with the ssh <remote_user>@<host_ip> command, two interactive prompts typically appear for first-time access: a host key verification prompt requiring manual entry of "yes", followed by a password input prompt for the remot...

Configuring External SSH Access to WSL on Windows

Installing OpenSSH in WSL Begin by reinstalling OpenSSH server in your WSL instance: sudo apt-get remove openssh-server sudo apt-get install openssh-server Modify the SSH server configuration: sudo vi /etc/ssh/sshd_config Update these crtiical parameters: Port 22 PermitRootLogin Yes PasswordAuthenti...

Enabling Debug Logging for SSH Connections

The standard basic SSH connection command follows the format ssh <remote_username>@<remote_host>, for example: ssh root@demo.example.com To enable dteailed debug output for troubleshooting SSH connecitons, add the -v verbose flag to the command: ssh -v root@demo.example.com A sample debu...

Implementing Remote MySQL Database Backups with mysqldump

Core Process Overview The fundamental procedure involves three sequential steps: Export the target database using the mysqldump utility. Compress the resulting SQL dump file. Secure transfer the compressed archive to a designated remote backup server. Security and Connectivity Considerations In typi...