Connecting to a UNIX
Server
To connect to a UNIX server, you
configure connections to UNIX servers, and then refer to the
connection from the objects in this Integration Pack. It is highly
recommended to connect to the Opalis Unix Agent through an SSH
tunnel.
To connect to a UNIX
server:
1.
|
In the Client, click the
Options menu and select
UNIX. The Connection Settings dialog
appears.
|
2.
|
Click Add. The UNIX Server Connection Settings dialog
appears.
|
3.
|
In the Connection name field, type a name for
the connection you are creating.
|
4.
|
From the Platform drop-down list, select the
UNIX platform that is running on the server that you want to
connect to.
|
5.
|
In the Computer (IP) field, type the name of the UNIX computer that you
want to connect to.
|
6.
|
Type the SSH port number that
these objects will use in the SSH
port field.
|
7.
|
You can supply the UNIX
credentials using one of the following authentication
methods:
|
•
|
User name and password – Type the user
name that the objects and tunnel will use to connect to the UNIX
computer in the User name
field. Then, select the Password option and type the password
in the Password
field.
|
•
|
Key file and passphrase – Select the
Key file option and type
the path and name of the OpenSSH
SSH-2 private key, or click the ellipsis button
( ...) and browse for it.
Type the path and name of the PuTTY key file, or click the ellipsis
button ( ...) and browse for
it. Then, type the passphrase in the Passphrase field. For instructions on
creating and using keys and passphrases, see the Creating and Using Key Files and
Passphrases section below. The OpenSSH key file will be
used by the SSH objects and the PuTTy key file will be used by the
SSH tunnel
|
To enable double
authentication, select one of the following options in the
Double Authentication section of the
dialog:
•
|
None – do not apply double
authentication.
|
•
|
Sudo – apply the Sudo method of double
authentication. To use this method, you must install and configure
Sudo before you create a connection that uses it. Use this option
to launch a single command as a super-user.
|
•
|
Su – apply the Su method of double
authentication. To use this method, you must install and configure
the Expect tool. Use this option to launch all commands as a
super-user.
|
8.
|
If you are using objects that
connect to the UNIX computer using the Opalis UNIX Agent, type the
port number that the the objects will use to communicate with the
Opalis UNIX Agent in the Agent
port field. For a list of objects that use the Opalis UNIX
Agent to connect to the UNIX computer, see Interacting with
UNIX computers.
|
9.
|
Select Use SSH Tunneling and type the
Min and Max of the Local Port Range that will be used to
connect to the tunnel. This will determine the local outbound port
range that the SSH tunnel will use to connect to the Unix
computer.
|
10.
|
Click OK. The Connection Settings dialog
appears.
|
11.
|
To test the connection, select
the connection in the list and click Test connection.
|
Creating and Using Key Files and
Passphrases
Follow the instructions below to
create a key file and passphrase for logging into UNIX
computers.
To create a key file and
passphrase:
1.
|
Generate a key pair by typing
ssh-keygen –f
resulting_keyfile –t
rsa. If you need to specify a passphrase, provide it when
prompted. This generates two items:
|
•
|
resulting_keyfile – the private
key
|
•
|
resulting_keyfile.pub – the public
key
|
2.
|
Run the following command:
cat resulting_keyfile.pub >> ~/.ssh/authorized_keys
Where the home directory (~) is the home directory of the user that
was specified on the Connection Settings dialog of the
object.
|
3.
|
On the UNIX Server Connection
Settings dialog for the connection that you create, specify the
path to the generated key file, and provide the passphrase, if you
created one.
|