Posts

Showing posts from January, 2025

SSH (Secure Shell) and Virtual Private Network(VPN)

 As stated in my previous blog, SSH and VPN works almost similarly. They both provide the user with secure access to transfer data over an unsecured network. However, they serve different purposes. SSH is a protocol primarily designed for secure access to individual servers or devices. Users can execute commands, transfer files, and  forward specific ports, while encrypting the data. It is focused towards ensuring the completion of tasks, making it ideal for system admin and developers who need direct interaction over a remote server. VPN, on the other hand, is a wider solution that ensure the security of all internet traffic between devices and a remote server. It creates an encrypted tunnel to protect online activity and masks the IP address. It is used to provide remote access to an organization's private network, or perhaps enhance privacy on a public network like in Cafe, malls, etc... Both of them also possess drawbacks. SSH has limited network access and it requires exp...

Creating a new user and setting up their keys in SSH.

 SSH, shortly abbreviated for Secure Shell,  is a network protocol that provides secure access to a computer and manages devices over an unsecured network. It widely used by system admins, developers, and network engineers. SSH uses the port 22 and on a side note, HTTPS uses port 443 and port 80 is the default port for web servers. Some key features of SSH are: 1. It encrypts all data between the client and the server, making it reliable for crucial data. 2. It prompts the user with password authentication as well as key authentication ( public and private keys) which adds another layer of security. 3.  With port forwarding, SSH can forward network traffic, securing data. 4. With SCP (Secure Copy) and SFTP (SSH File Transfer Protocol) allow secure file transaction. 5. Users can interact on a remote session using commands via SSH session. Steps to set up the key for a new user: 1.  "useradd username" "useradd" command will allow the individual to add a new username t...