官术网_书友最值得收藏!

  • 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:

  1. Open a terminal window and run:
    ssh admin@192.168.1.1
    
  2. If you are using the default configuration, you'll then be prompted for a password.
  3. 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
    
  4. 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:

  5. Open PuTTY and specify your hostname or IP address.
  6. Specify an alternative port if necessary (default is port 22).
  7. If you are using RSA key authentication, browse to your private key file from Connection | SSH | Auth | Private key file for authentication.
  8. You'll connect and be prompted for a username.
  9. 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
主站蜘蛛池模板: 大厂| 长岭县| 屏山县| 麻栗坡县| 廉江市| 砀山县| 文安县| 琼海市| 左云县| 上林县| 涞源县| 綦江县| 芮城县| 丹东市| 汤阴县| 渭源县| 辰溪县| 咸阳市| 西乡县| 定边县| 独山县| 汕尾市| 临高县| 武陟县| 青浦区| 修水县| 三明市| 邢台县| 武安市| 贺兰县| 雷山县| 田东县| 华阴市| 将乐县| 花莲县| 信宜市| 无锡市| 噶尔县| 方城县| 隆德县| 泰宁县|