- pfSense 2 Cookbook
- Matt Williamson
- 289字
- 2021-04-09 21:16:40
Enabling the Secure Shell (SSH)
This recipe describes how to enable the Secure Shell (SSH) service in pfSense.
Getting ready
SSH is a networking protocol that allows encrypted communication between two devices. Enabling SSH allows secure access to the pfSense console remotely, just as if you were sitting in front of the physical console.
How to do it...
- Browse to System | Advanced | Secure Shell.
- Check Enable Secure Shell.
- You will be prompted for credentials when you connect (use the same username and password as the webGUI), but checking Disable password login for Secure Shell will allow you to use RSA keys instead. See the next recipe for details.
- Leave the SSH port blank to use the default port:
- Save the changes and the SSH service will be started.
How it works...
Enabling the Secure Shell turns on pfSense's built-in SSH server to listen to requests on the port you've specified (port 22 by default).
Note
Like all pfSense services (unless otherwise noted), the SSH service will listen on every available interface. Like other services, firewall's rules are used to grant or deny access to these services. See Chapter 3, General Configuration for more information on configuring firewall rules.
There's more...
Changing the SSH authentication method to use RSA keys is a great way to secure access to your system. See the following recipe for details.
Additionally, you can change the port that SSH listens on. Doing so may increase security slightly by reducing the number of unauthorized login attempts, but you will need to remember what you have changed it to, or you will be unable to connect.
See also
- The Generating authorized RSA keys recipe
- The Creating a firewall rule recipe in Chapter 3, General Configuration
- 現代企業應用設計指南
- 斯科特·凱爾比的零基礎攝影后期課 Lightroom數碼照片調修技法
- Windows Phone 7 Silverlight Cookbook
- 零基礎學數碼攝影后期
- AI繪畫實戰:Midjourney從新手到高手
- 3ds Max 2015中文版從入門到精通
- Implementing SugarCRM 5.x
- 新印象Premiere短視頻拍攝+剪輯+特效關鍵技術
- 跨境電商:速賣通搜索排名規則解析與SEO技術
- 新編 中文版Photoshop平面設計入門與提高
- MATLAB R2024a完全自學一本通
- 3ds Max影視動畫角色設計技法教程
- Photoshop人像精修秘笈
- 攝影師的后期課:人像調色篇
- MSC Fatigue疲勞分析標準教程