- pfSense 2 Cookbook
- Matt Williamson
- 344字
- 2021-04-09 21:16:40
Generating authorized RSA keys
This recipe describes how to create an authorized RSA key so a user can connect to pfSense without being prompted for a password.
Getting ready
Linux and Mac users will need to ensure ssh-keygen is installed on their system (almost all distributions have this installed by default). Windows users will need to download and install the PuTTYGen tool.
How to do it...
Generate an SSH key from a Linux/Mac Client as follows:
- Open a terminal and run:
ssh-keygen
- Save the key to the default location of
/home/user/.ssh/
and specify a pass code (optional, but recommended). - Your public key is now located at
/home/user/.ssh/id_rsa.pub
.Generate an SSH key from a Windows client using PuTTY as follows:
- Open PuTTYGen and generate a public/private key pair by clicking the Generate button.
- Enter a passphrase (optional, but recommended).
- Click the Save Private Key button and choose a location, such as
C:\MyPrivateKey.ppk
. - Highlight the public key that was generated in the textbox and copy and paste it into a new file, let's say
C:\MyPublicKey.txt
. (Do not use the Save Public Key button, as that adds comments and other fields that are sometimes incompatible.)
How it works...
RSA keys have become a standard for securing client/server connections for any service which chooses to take advantage of it. A client generates a key pair—a private key file and a public key file (an optional pass-phrase can be specified for enhanced security). Now, any server administrator can request that client's public key and add it to their system. The client can then securely authenticate without typing in a password.
There's more...
RSA key authentication is most often associated with SSH access, and is often referred to as SSH keys but that is misleading. RSA keys are generic and not specific to SSH. Although SSH often uses them, RSA keys can be used by any type of service that chooses to support them, such as VPN, VoIP, FTP, and so on.
See also
- The Enabling the Secure Shell (SSH) recipe
- The Configuring SSH RSA key authentication recipe
- 斯科特·凱爾比的零基礎攝影后期課 Lightroom數碼照片調修技法
- 24小時全速學會Photoshop 2021
- AutoCAD 2019中文版計算機輔助繪圖全攻略
- 老郵差·Photoshop數碼照片處理技法:人像篇(修訂版)
- Photoshop CC入門與提高(超值版)
- Cacti 0.8 Network Monitoring
- Refactoring with Microsoft Visual Studio 2010
- Microsoft SharePoint 2010 and Windows PowerShell 2.0: Expert Cookbook
- CAD/CAE技術應用
- 零基礎學Photoshop CS6(全視頻教學版)
- 數碼攝影修圖師完全手冊(第2卷)
- 中文版Flash CC實例教程
- 夢幻森林Procreate童話風插畫繪制專業技法
- Photoshop CC 平面設計
- Photoshop+PxCook+Cutterman網頁UI設計教程