IT Nota

  • Home
  • How To
  • .NET
  • WordPress
  • Contact

How to Create SSH Keys

The recommendation now is to use ED25519 whenever you can.

Commands

Using ED25519

ssh-keygen -t ed25519 -C "[email protected]"

Using RSA

ssh-keygen -t rsa -b 4096 -C "[email protected]"

-C is optional, if not used then the login and machine name is going to be used instead.

Use -b to specify key size.

Ways to create SSH keys on macOS

On Mac OSX and Linux

You just get to Terminal and start typing:

ssh-keygen -t ed25519 -C "[email protected]"

You can use either your email address as label or anything that can be used to remind you what you use the SSH key for.

On PC

You need to download an external client such as puttygen (from putty) or if you have GIT, you can use the bash shell interface as well and the command is the same.

ssh-keygen -t ed25519 -C "[email protected]"

Adding the Key

eval $(ssh-agent -s)

ssh-add ~/.ssh/id_keys

To see the Keys

ssh-add -l

To copy key to clipboard:

$ pbcopy < ~/.ssh/id_keys.pub

Further Reading

PuTTY: a free SSH and Telnet client
Git
SSH key-type, rsa, dsa, ecdsa, are there easy answers for which to choose when?
Use SSH keys to communicate with GitLab

February 7, 2023 Filed Under: How To Tagged With: Git, Linux, macOS, Windows

Buy me a coffee?

Buy me a coffee If you find any of the articles or demos helpful, please consider supporting my work here, you'll have my big thanks!

Buy me a coffee Support this site
Buy Me a Coffee?

Categories

  • .NET
  • Coding
  • Cybersecurity
  • Database
  • How To
  • Internet
  • Multimedia
  • Photography
  • Programming
  • Resources
  • Review
  • Tips and Tricks
  • Uncategorized
  • Use Case
  • WordPress
  • Writing

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Tags

.NET .NET Core AdSense ASP.NET Cdonts Dll Classic ASP Code Editor ETL FSharp Genesis Framework Git Google HP Asset Manager HTML5 Hugo IIS Information Security Internet Internet Information Services iOS JAMStack Linux macOS Microsoft Microsoft SQL Server MVC PHP PowerShell Python Simple Mail Transfer Protocol Smtp Server SQL SQL Server SSIS SSMS SSRS Sublime Text Visual Studio Visual Studio Code VPN Windows Windows 8 Windows 10 Windows 2012 Windows Server

Copyright © 2011-2025 IT Nota. All rights reserved. Terms of Use | Privacy Policy | Disclosure