- 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
- 云化虛擬現(xiàn)實技術與應用
- 中文版Premiere Pro CC實用教程
- 攝影照片修飾完全自學手冊
- 板繪教室:SAI零基礎日系動漫插畫入門教程
- Photoshop CC 2017從入門到精通
- SolidWorks快速入門教程(2022中文版)
- 說服力:工作型PPT該這樣做(第2版)
- Premiere Pro基礎與實戰(zhàn)教程
- 魔法詞典:AI繪畫關鍵詞圖鑒(Midjourney版)
- Photoshop & Illustrator平面設計火星課堂
- Hello HarmonyOS!:鴻蒙應用開發(fā)從入門到精通
- EJB 3.1 Cookbook
- Photoshop 圖形圖像處理
- AutoCAD 2016中文版從新手到高手
- Away3D 3.6 Cookbook