- 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
推薦閱讀
- Photoshop CC 網店視覺設計
- Enhancing Microsoft Content Management Server with ASP.NET 2.0
- Microsoft Visual C++ Windows Applications by Example
- Joomla! 1.5 SEO
- GlassFish Administration
- Jetpack Compose:Android全新UI編程
- BackTrack 5 Wireless Penetration Testing Beginner's Guide
- Photoshop電商設計與產品精修實戰(微視頻版)
- Designing and Implementing Linux Firewalls and QoS using netfilter, iproute2, NAT and l7/filter
- Apache CXF Web Service Development
- Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications
- PHPList 2 E/mail Campaign Manager
- 平面設計綜合教程(Photoshop+Illustrator+CorelDRAW+InDesign)(第2版)
- Maya 2022從新手到高手
- Excel 2019辦公應用入門與提高