Now that the sandbox is running, you can connect using Secure Shell (SSH). The secure shell allows you to log in remotely to another machine. Open a new terminal and enter the following command:
ssh raj_ops@127.0.0.1 -p2222
The previous command uses ssh to connect as user raj_ops to the localhost (127.0.0.1) on port 2222. You will get a warning that the authenticity of the host cannot be established. We did not create any keys for ssh. Just type yes and you will be prompted for the password. The user raj_ops has the password raj_ops. Your terminal prompt should now look like the following line:
[raj_ops@sandbox-hdp ~]$
If your terminal is like it is in the previous code, you are now logged into the container.
You can now use most Linux commands to navigate the container. You can now download and move files around, run Hive, and all your other tools from the command line. This section has already been heavy enough on Linux, so you will not use the command line exclusively in this chapter. Instead, the next section will show you how to execute these tasks in Ambari, a web-based GUI for executing tasks.