- pfSense 2 Cookbook
- Matt Williamson
- 306字
- 2021-04-09 21:16:40
Accessing the Secure Shell (SSH)
This recipe describes how to access the pfSense console from any Linux, Mac, or Windows client computer.
Getting ready
SSH must be enabled and configured on our pfSense box. Linux and Mac users will have the SSH client installed by default. Windows users will have to download and install PuTTY.
How to do it...
Connect via SSH from a Linux/Mac client as follows:
- Open a terminal window and run:
ssh admin@192.168.1.1
- If you are using the default configuration, you'll then be prompted for a password.
- If you are using RSA key authentication, you'll connect directly or be asked to enter the pass-phrase associated with your key. If you need to specify the location of your private key file, you can use the
-i
option as follows:ssh -i /home/matt/key/id_rsa admin@192.168.1.1
- If you've configured pfSense to use a different port, you can specify that using the
-p
option, as in the following example:ssh -p 12345 admin@192.168.1.1
Connect via SSH from a Windows client with PuTTY as follows:
- Open PuTTY and specify your hostname or IP address.
- Specify an alternative port if necessary (default is port 22).
- If you are using RSA key authentication, browse to your private key file from Connection | SSH | Auth | Private key file for authentication.
- You'll connect and be prompted for a username.
- You'll then be prompted for a password, or if RSA authentication is used, you'll connect directly or be prompted for your pass-phrase.
How it works...
SSH allows access to the pfSense console menu from any computer that has an SSH client. You can even access the console from your phone if you install an SSH client on your mobile device.
See also
- The Enabling the Secure Shell (SSH) recipe
- The Generating authorized RSA keys recipe
- The Configuring SSH RSA key authentication recipe
推薦閱讀
- CorelDRAW X6圖形設計立體化教程
- Word-Excel-PowerPoint 2010三合一從新手到高手(超值版)
- Photoshop圖形圖像設計案例教程(高等院校計算機任務驅動教改教材)
- 穿越Photoshop CC
- 邊做邊學:Photoshop圖像制作案例教程(第2版·Photoshop 2020)
- 中文版Premiere Pro CC入門教程
- Microsoft SharePoint 2010 Power User Cookbook: SharePoint Applied
- 中文版CorelDRAW X6基礎培訓教程
- ASP.NET 3.5 Application Architecture and Design
- SolidWorks快速入門教程(2022中文版)
- PS App UI設計從零開始學
- PowerPoint 2016實戰從入門到精通(超值版)
- Getting Started with Oracle BPM Suite 11gR1 – A Hands/On Tutorial
- Photoshop數字圖像處理
- Scribus 1.3.5: Beginner's Guide