SSH (Linux) Server Access
You can access a remote application over SSH through a supported client.
Supported Clients
Operating System | Recommended Clients |
---|---|
Windows |
|
macOS |
|
|
Note - If you use any other client, the connection is terminated if it is idle for 5 minutes or you might experience connection issues. |
Connection Modes
You can connect to the application over SSH with one of these modes:
-
One-time password (OTP)
-
SSH private key authentication
One-Time Password
For a one-time access to an application, you can use the One-Time Password (OTP) to connect to the resource either through a terminal (for example, CMD window) or a client (for example, puTTY).
-
In the Harmony Connect User App Portal, click the SSH application you want to connect to.
The Connect to <application name> window appears.
-
In the Harmony Connect User App Portal, click the SSH application you want to connect to.
The Connect to AdminConsole window appears.
-
Do one of these:
-
To connect to the application through a terminal:
-
Open the terminal window.
-
Enter the Command from the Connect to AdminConsole window and run the command.
-
At the Temporary access token prompt, enter the Password for the terminal from the Connect to AdminConsole window.
The system connects to the application over SSH successfully.
-
Proceed with authentication to the SSH application's host.
-
-
To connect to the resource through a client:
-
Open the client (for example, puTTY) and connect to the Host specified in the Connect to AdminConsole window.
-
At the login as prompt on the client windiw, enter the Username from the Connect to AdminConsole window.
The pre-authentication banner message from server appears.
-
At the Temporary access token prompt, enter the Password for the client from the Connect to AdminConsole window.
The system connects to the application over SSH successfully.
-
Proceed with authentication to the SSH application's host.
-
-
Note - The one-time password is for one time connection only and it expires after five minutes. |
SSH Private Key Authentication
You can use a personal key to seamlessly connect to your servers using a personal key. You can connect to your device without the need to visit Harmony Connect portal.
-
Key Download
-
Download your Check Point Key from the user settings. Select the format (.PPK or .PEM) based on your operating system.
-
If you use macOS/Linux OS, locate the key path that runs the command to open the key permissions:
chmod 400 KEY
Run this command to add the key to your directory:
ssh-add KEY
Note - The key expires after 90 days, and you must then download a new key.
-
-
Connect With the Key
To connect to the server using the private key through your terminal or client:
-
To connect to the server through your terminal, in Connect to AdminConsole, enter your private key and click copy.
-
To connect to server through your client, in Connect to AdminConsole, enter your Username, Host and Private key.
For easier access, Check Point suggests you enter this command to your
.bashrc
file:zerotrustaccess() { ssh -i KEY HOST -l $USER#@$1::$2;}
-
zerotrustaccess is the command you can use to access any server. You can change this to your convenience.
-
KEY is the full path of the key downloaded from the portal.
-
HOST is the SSH host provided in the window, when you click each server in the portal.
Add the above items and run one of these commands to connect to any server.
zerotrustaccess SERVER-NAME
zerotrustaccess SERVER-ADDR
Note -
If the SERVER-ADDR exists in multiple data centers, you must enter the site name:
zerotrustaccess SERVER-ADDR::SITE-NAME
If your Harmony Connect Application-Level access Clientless access to specific corporate applications, such as web, SSH, RDP, tunnel, and database applications. user can access multiple Linux users, you must identity the device user name in SERVER-ADDR:
zerotrustaccess USERNAME@SERVER-ADDR
-
SSH Server Errors
Scenarios for SSH access failure: