- pfSense 2 Cookbook
- Matt Williamson
- 233字
- 2021-04-09 21:16:40
Configuring SSH RSA key authentication
This recipe describes how to configure pfSense to use an RSA key rather than a password for SSH authentication.
Getting ready
Make sure that SSH is already enabled and you have generated a public key for your client.
How to do it...
- Browse to System | Advanced | Secure Shell.
- Check Disable password login for Secure Shell (RSA key only).
- Edit the user we will associate with the client's public key from System | User Manager | Edit admin.
- Select Click to paste an authorized key and paste our client's public RSA key here. When pasted, the key should appear as a single line. Be sure your text editor didn't insert any line feed characters or authentication may fail.
- Save the changes.
How it works...
When we connect using an SSH client, we won't be asked for a password. Instead, the SSH server will use its copy of the public RSA key to send a challenge that can only be read if you posses the matching private key.
There's more...
RSA private keys can also be stored encrypted on the client machine. The SSH client will prompt for a decryption passphrase for the private key before being able to use it for authentication with the server.
推薦閱讀
- Sencha Touch Cookbook, Second Edition
- Alice 3 Cookbook
- Mastering phpMyAdmin 3.3.x for Effective MySQL Management
- SolidWorks2014基礎實例教程
- 3ds Max/MaxScript印象 腳本動畫制作基礎與應用
- IT Inventory and Resource Management with OCS Inventory NG 1.02
- Puppet權威指南
- 中望3D從入門到精通
- PPT設計與制作實戰教程
- 從零開始:Indesign CC 2019設計基礎+商業設計實戰
- ChatGPT+AI文案寫作實戰108招
- 3ds Max-Photoshop游戲模型制作全攻略
- 中文版CorelDRAW X7完全自學教程(實例培訓教材版)
- Flash CS6 動畫制作實戰從入門到精通
- AutoCAD 2019中文版完全自學手冊(標準版)