Use ssh keys to login to remote servers

The ssh-keygen is used to generate ssh keys and is mostly used for authenticating to gitlab, github, bitbucket at work. However we can use ssh keys to remote into a server without using passwords. Generate a new pair of ssh keys ssh-keygen is used to generate a new pair of keys In the below command -b is the bit length. Most application we use 2048 or 4096 -f specifies the file to store the generated key in ssh-keygen -b 4096 -f ~/.ssh/remoteserver Entering a passphrase is optional and can be entered for additional security. ...

January 2, 2025 · 2 min

Managing multiple SSH keys

Need for multiple SSH keys Working on various projects often requires access to different systems and environments. For secure authentication, we need to maintain multiple SSH keys. This is crucial for: Enhanced security: Each key is associated with a specific user or device, limiting access only to authorized individuals. Flexibility: Different keys work with different protocols and services. Efficiency: Automated scripts can easily use different keys for authentication. Collaboration: Team members can have different SSH keys, enabling secure access to shared resources. Below is a 5 step guide in setting up and maintaining the SSH keys ...

December 27, 2024 · 3 min