Contents
There are several ways to access the Charon-SSP AWS Instance.
SSH Command-Line Access
During the configuration of your instance you should have created a security group allowing at the minimum SSH access to the instance. If this has been done correctly, you can use SSH from the command-line or from a tool such as PuTTY to access the command-line of the sshuser user on the Charon-SSP instance. If you select your instance in the instance list and then click on Connect, you will see the instructions for connecting via SSH.
In particular, you will see
- the name of the private key that must be used to connect to the instance, and
- the public DNS name of the instance.
The following image shows an example:
Note that the file permissions of the private key file must be set such that the file is only readable by the user. In the example above, the permissions are set to 400. This means that the only access is read-access by the user.
To connect to the instance as the user sshuser, use the following command:
$ ssh -o ServerAliveInterval=30 -i <path-to-your-private key> sshuser@ <AWS-public-IP-address> |
The parameter ServerAliveInterval
will protect the connection from timing out.
Below, you see sample output of a login:
$ ssh -o ServerAliveInterval=30 -i ./we-test-key2.pem sshuser@3.81.64.139 Last login: Tue May 21 05:34:33 2019 from myhost.example.com [sshuser@ip-172-31-38-252 ~]$ pwd /home/charon
Note that this account only allows a very limited subset of commands. In particular, commands that are required to set up an SSH tunnel (e.g., ip, iptables, sysctl) are allowed.
File transfer using SFTP
The SSH security group definition is also used to allow SFTP access to the Charon-SSP AWS instance. This allows file transfers to and from the Charon-SSP AWS instance. The user for file transfers is the charon user.
To connect to the instance as the user charon, use the following command:
$ sftp -i <path-to-your-private-key> charon@ <AWS-public-IP-address> |
Below you see sample output of a connection:
$ sftp -i ./we-test-key2.pem charon@3.81.64.139 Connected to storage@3.81.64.139. sftp> ls media ssp-snapshot
To manage Charon-SSP and the emulated SPARC systems, you must connect to the Charon-SSP AWS instance with the Charon-SSP Manager. The Charon-SSP Manager is the main interface to all important functions of the Charon-SSP software. Prerequisites: Start the Charon-SSP Manager using the following command: This will open the login window of the Charon-SSP Manager. On this tab perform the following steps: If using the Manager's integrated SSH tunnel: On this tab perform the following steps: The public key of the AWS keypair can copied from the Connecting with the Charon-SSP Manager
Start the Charon-SSP Manager
$ /opt/charon-manager/ssp-manager/ssp-manager
Login tab of the login window: SSH tab of the login window: .ssh/authorized_keys
file of the sshuser of the instanceAfter entering all the required information, click on Connect to connect to the Charon-SSP AWS instance.
If the information is correct, the Charon-SSP Manager welcome screen will be displayed: