Posts

Showing posts with the label Raspberry Pi

Managing Multiple SSH Keys for Different Machines

Managing Multiple SSH Keys for Different Machines In today's interconnected world, it's common to access multiple remote machines via SSH. However, managing different SSH keys for various machines can be a bit challenging. This blog post will guide you through the process of generating and adding multiple SSH keys on a single computer, making your workflow seamless and efficient. Step 1: Generate SSH Keys To start, we'll generate a unique SSH key for each machine. Open your terminal and use the ssh-keygen command: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" -f ~/.ssh/id_rsa_machine1 ssh-keygen -t rsa -b 4096 -C "your_email@example.com" -f ~/.ssh/id_rsa_machine2 Replace machine1 and machine2 with appropriate identifiers for your machines. Step 2: Add SSH Keys to the SSH Agent Next, we need to add these keys to the SSH agent, which manages your SSH keys ...

Adding Multiple SSH Keys to Your Raspberry Pi

Adding Multiple SSH Keys to Your Raspberry Pi If you're a Raspberry Pi enthusiast, you know the importance of secure access to your device. Using SSH keys is a secure and convenient way to manage remote access. In this guide, I'll show you how to add multiple SSH keys to your Raspberry Pi, allowing different users or machines to connect securely. Step 1: Generate SSH Keys First, you need to generate SSH keys on each client machine that will access your Raspberry Pi. Open a terminal on your client machine and run the following command: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" Follow the prompts to save the key in the default location ( ~/.ssh/id_rsa ) and optionally add a passphrase for extra security. Step 2: Copy SSH Keys to Raspberry Pi Next, you need to copy the SSH key to your Raspberry Pi. The easiest way to do this is by using the ssh-copy-id command. Replace pi@raspberrypi with your...

How to install Ubuntu Server and set up static IP (WiFi) on Raspberry Pi 3

Image
Setting up a headless OS is always painful and imagine the situation to do it without a monitor or keyboard. Here in this post, I will demonstrate how to setup Ubuntu Server in a Raspberry Pi and connect to WiFi with a static IP. The process includes the following steps, Installation of Raspberry Pi Imager Flash Ubuntu Server to SD Card Initial setup of Ubuntu Server on Raspberry Pi Configuring Static IP in Ubuntu Server's netplan network manager. Raspberry Pi Imager Raspberry Pi Imager is an SDcard burner program from the Raspberry Pi foundation aimed to make installation of different OSes in the Pi easier. You can navigate to the below link to download and install Pi Imager for your operating system. Source: https://www.raspberrypi.org/downloads/ Flash the SD card with Ubuntu Server Connect an SD card (preferably with storage 16GB or more) to your laptop/PC and launch Pi Imager application. From the listed Operating Systems, choose Ubuntu Server 64 bit version. I choose the 6...

How to configure Static IP for Raspberry Pi 3

Image
A raspberry pi is often accessed via SSH or VNC viewer. Attaching the set of Monitor, Keyboard and Mouse to Raspberry Pi is not always recommended. For accessing Raspberry Pi from a remote device we need to provide the following, 1. Username - Pi (by default) 2. Hostname or IP 3. Password configured for the user 'Pi' 4. Enabling SSH,VNC ports in Pi configuration If multiple devices are plugged into your network, there is a high probability for IP shifts. To avoid this it is often suggested getting a static IP for Raspberry Pi. Please follow following steps for enabling a static IP to your Raspberry Pi. 1. Login to the Raspberry Pi via SSH, From router's admin page(192.168.1.1) you will get the IPs of connected devices. Connect to the Raspberry Pi via SSH. For Example, My Pi's IP was 192.168.1.3 2. Modify /etc/dhcpcd.conf and add your desired IP, In my case, static IP I was preferring is 192.168.1.9. Add the following lines to the dhcpcd.conf fi...

Popular posts from this blog

Flux vs Argo CD in GitOps

Understanding Swagger and OpenAPI Specifications

Install Docker on Debian 12 (Bookworm)

Adding Multiple SSH Keys to Your Raspberry Pi

Managing Multiple SSH Keys for Different Machines