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

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
主站蜘蛛池模板: 新干县| 巨野县| 射洪县| 京山县| 吕梁市| 孟津县| 濮阳市| 西平县| 民县| 古丈县| 榆林市| 都兰县| 伊通| 安岳县| 资阳市| 英山县| 晋江市| 莫力| 丰顺县| 二连浩特市| 简阳市| 原平市| 米林县| 湘潭市| 同江市| 南乐县| 萨迦县| 石台县| 石渠县| 德令哈市| 柘荣县| 夏邑县| 九龙城区| 濮阳县| 娄底市| 昭平县| 丰原市| 固阳县| 长丰县| 武陟县| 西青区|