Access to the dbX appliance is through public/private key authentication. Mail your public key to XtremeData. Once received, XtremeData will setup the key for authentication and provide access to a dbX appliance. If you have an existing public/private key with SSH2-RSA authentication, you can use that and skip to step c). If you do not have a public/private key, you can generate one using the free “PuTTYgen” program.
a) Download the PuTTY software
b) Generate public/private Keys
[your_email_address]
[key password]
[key password]
[your_name
]
_private_key.pubc) Send public key to XtremeData
Mail the public key to XtremeData. The private key should remain under your control and should only be released to trusted partners. The private key and the key password ensure security. Note that every time you login to the dbX appliance, you will need to authenticate using your private key and passphrase (key password).
XtremeData will install your public key on the dbX appliance and will provide you with the following connectivity information for the appliance. Once you receive this information, you are ready to login. Examples are provided for clarity.
b) Generate public/private Keys
[your_email_address]
[key password]
[key password]
[your_name
]
_private_key.pubNOTE: This process needs to be repeated every time the PC is rebooted.
f) Start Your Session
If you have not loaded your private key in the PuTTY ageant then you will be prompted for the key password.
https://localhost:2400/xdadm
login: poc567hr
password: [appliance_password]
Connecting a Mac is accomplished via an SSH terminal.
a) Create a Public/private key pair
[choose key_password]
[key_password]
Your identification has been saved in /Users/macuser/.ssh/acme_id_rsa.
Your public key has been saved in /Users/macuser/.ssh/acme_id_rsa.pub.
The key fingerprint is:
SHA256:ptej1ti+RHJj3FGR4N8kfnQx2i/Mrcf0Q macuser@maccomputer>
The key's randomart image is:
+---[RSA 2048]----+
| |
| |
| E...|
| ,.*o*|
| So= .+ B=|
| o.-++o o.=|
| . .*=+.ooo.|
| .+o=o+* ..|
| ...+_o.=. |
+----[SHA256]-----+
[key_password]
b) Send the public key to XtremeData
[appliance_password]
[dbx_password]
you can gain access using the following command:
macuser$ ssh -A -p [dbX server port]
-L 2400:localhost:2400 [ssh Appliance User]
@[ssh host]
Example :
macuser$ ssh -A -p 7555 -L 2400:localhost:2400 This email address is being protected from spambots. You need JavaScript enabled to view it.
poc567@xdiserver $
Access has been granted when the linux prompt appears as shown above. You can now run the xdudb sql command line tool from this terminal.
Once the connection is established through the firewall, you can access the database in one of four ways. You will need the following information which should have been provided by XtremeData. Examples are shown in blue.
[dbx_password]
XdQry is dbX’s browser based query tool.
[dbx server name]
[dbx database name]
[dbx User]
[dbx_password]
dbX can connect to any third party SQL query tool that supports ODBC or JDBC. You will need to install the ODBC drivers or JDBC drivers, and then configure the connection.
ODBC drivers can be found at — http://ftp.postgresql.org/pub/odbc/versions/msi/psqlodbc_08_04_0200.zip.
JDBC drivers can be found at: http://jdbc.postgresql.org/download/postgresql-8.2-512.jdbc3.jar
Class name is: org.postgresql.Driver
To connect using JDBC, use the following syntax:
jdbc:postgresql://localhost:[dbX server port]
/[dbX database name]
dbX uses the same client utilities as Postgres. You can use the pgAdmin utility to connect to dbX. See pgAdmin documentation for configuring the utility.
pgAdmin can be downloaded from http://www.pgadmin.org/.
d) xdudb sql
“xdudb sql” is the command line utility on dbX which can be accessed via a terminal login as shown in the procedures above. This option is for advanced users only and requires knowledge of Linux.
poc567hr $ xdudb sql [dbX server name] [dbX database name]
Example:
poc567hr $ xdudb sql poc567 testdb
Welcome to sqldbx, the interactive SQL terminal, for dbX 4.0.100.
Type: copyright for distribution terms
h for help with SQL commands
? for help with psql commands
g or terminate with semicolon to execute query
q to quit
testdb=# [type query here]