- 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.
推薦閱讀
- Moodle 1.9 for Teaching 7/14 Year Olds: Beginner's Guide
- SolidWorks 2008機械設計一冊通
- 品悟:Alias 2014+Showcase產品可視化造型與渲染
- 視覺封王:Photoshop CC 2019立體化教程(素材+視頻+教案)
- PowerPoint 2019從入門到精通(移動學習版)
- Plone 3 Multimedia
- iPhone Applications Tune/Up
- Building Websites with ExpressionEngine 1.6
- 攝影師的后期必修課(調色篇)
- Photoshop CS6淘寶美工完全實例教程(培訓教材版)
- Oracle Application Express Forms Converter
- 中文版3ds Max 2014基礎培訓教程
- 3ds Max三維動畫制作項目式教程
- Android APP開發實戰:從規劃到上線全程詳解
- Creo 6.0產品設計實例精解