Let us take a closer look at the Bitnami google cloud ssh and the configurations to set it up with the support of our server management support services at Bobcares.
Connect to the server using SSH: Bitnami google cloud SSH
We have to Obtain the SSH credentials as the initial step of the setup process:
Obtain the SSH credentials from the Bitnami Launchpad
The Bitnami Launchpad for Google Cloud Platform injects an auto-generated public SSH key and allows the user to obtain the private SSH key. To do so, take the following steps:
- Navigate to the Bitnami Launchpad for Google Cloud Platform and, if necessary, login in using the Bitnami account.
- Select “Virtual Machines” from the menu.
- From the list that displays, select the cloud server.
- Get the SSH key for the server (.pem for Linux and Mac OS X,.ppk for Windows). Take note of the server IP address on the same page.
Obtain the SSH credentials from the GCP Marketplace for Bitnami google cloud ssh
The GCP Marketplace requires the user to manually add a public SSH key via the server administration page. The user@hostname comment at the end of the public SSH key is then used to identify which server user account should be associated with the key.
To add the public SSH key, follow the instructions below:
- Make an SSH key pair ready for usage. We can use PuTTYgen (Windows) or the ssh-keygen command to generate a new SSH key pair (Linux and Mac OS X). Instructions for using PuTTYgen and ssh-keygen may be found here.
- Enter the Google Cloud Console and choose the project.
- Select the server to connect to from the “Compute Engine -> VM Instances” tab.
In the top control bar, click the “Edit” link.
- Copy and paste the public SSH key into the “SSH Keys” section on the following page.
- To Bitnami, update the user@hostname comment at the end of the SSH key text. This will pair the SSH key with the existing Bitnami user account on the server. The “Username” column adjacent to the form field will be updated as a result.
- Click the “Add Item” button to add extra keys as needed. Once finished, click the “Preserve” button to save the changes.
Connect through a browser
Connect to the Bitnami Launchpad using a browser.
If we’re utilizing the Bitnami Launchpad, proceed as follows:
- Navigate to the Bitnami Launchpad for Google Cloud Platform and, if necessary, login in using your Bitnami account.
- Select “Virtual Machines” from the menu.
- Select the cloud server from the resulting list.
- Click the “Launch SSH Console” button. This will immediately transfer the relevant keys and open a new browser window with the machine console.
Connect through a browser from the GCP Marketplace
The Google Cloud Platform interface may also be used to connect to the server. Take the following steps:
- Navigate to the Google Cloud Platform interface and, if necessary, login in using the Google account.
- In the project list, locate and select the project.
On the left side of the top navigation bar, click the “Hamburger” button.
- Choose “Compute -> Compute Engine” from the menu.
- Select the SSH button after locating the server instance.
This will immediately transfer the relevant keys and open a new browser window with the machine console.
Most Bitnami documentation assumes that server console commands are run as the Bitnami user account. When connecting using a browser SSH console, as stated above, we may be logged in as a separate user account. Use the command sudo su – Bitnami to switch to the Bitnami user account.
Connect with an SSH client for Bitnami google cloud ssh
Connect with an SSH client on Windows using an SSH key as the next step in Bitnami google cloud ssh:
An SSH client is required to connect to the server through an SSH tunnel. PuTTY, a free SSH client for Windows and UNIX systems, was used in the steps below. To access the server through SSH tunnel using PuTTY on a certain port, we must first configure it to enable connections to the server.
1: Get PuTTY.
- PuTTY’s ZIP archive may be downloaded from its website.
- Extract the items to a desktop folder.
- To open the PuTTY setup window, double-click the putty.exe file.
2: Convert the private key from PEM to PPK format (optional)
- If the private key is in.pem format, it must be converted to PuTTY’s own.ppk format before it can be used with PuTTY. We may skip this step if the private key is already in.ppk format.
- To convert the.pem private key to.ppk format, follow the procedures below:
1:Double-click the puttygen.exe file in the PuTTY installation directory to run the PuTTY Key Generator.
2: Select the private key file in.pem format and click the “Load” button.
3: After importing the private key, click the “Store private key” button to convert and save the key in PuTTY’s.ppk key file format.
3: Configure PuTTY
- Double-click the putty.exe file to bring up the PuTTY configuration window.
- In the PuTTY setup box, enter the server’s host name or public IP address in the “Host Name (or IP address)” and “Saved Sessions” fields. Then, click “Save” to save the new session for later use.
- Obtain the SSH credentials in order to authorize server authentication.
- Browse to the private key file (.ppk) we received in the previous step under the “Connection -> SSH -> Auth” section.
- In the “Connection -> Data” section, under the “Login information,” put the username bitnami in the “Auto-login username” area.
- To save the current settings, click the “Save” button in the “Session” section.
- To open an SSH session to the server, choose the session we wish to start and click the “Open” button. PuTTY will initially request that we validate the server’s host key and save it in the cache. Go ahead and accept this request by clicking “Yes.”
Finally, after that, we should now be able to connect to the server.
Connect with an SSH client on Linux and Mac OS X using an SSH key
The next step in Bitnami google cloud ssh is to connect SSH. SSH clients are included by default in Linux and Mac OS X. Follow the steps below to get into the server:
- On the local system, launch a new terminal window (for instance, on Mac OS X, use “Finder -> Applications -> Utilities -> Terminal” or the Dash in Ubuntu).
- Using a command like the one below, set the private key file’s (.pem) permissions to 600. chmod KEYFILE 600.
- Use the following command to establish a connection to the server: ssh -i bitnami@SERVER-IP KEYFILE Remember to change SERVER-IP to the server’s public IP address or hostname and KEYFILE to the path of the private key file (.pem) in the aforementioned instructions.
- Before connecting, the SSH client may prompt to validate the server’s host key and add it to the cache. Accept this request by entering or clicking the “Yes” button.
We should now be able to connect to the server.
Forward the key using SSH Agent
We may connect to a host using an SSH key and then make the key available for further SSH connections from that host via key forwarding. We can use key forwarding to connect to one host (host A) using the SSH key and then connect to another host (host B) from host A using the same key.
Forward the key using SSH Agent on Windows
To use PuTTY to forward the SSH key, we must first have SSH access to the server.
Enable SSH Agent forwarding once the SSH client has been properly setup. To do so, take the following steps:
- Check the “Allow agent forwarding” checkbox in the “Connection -> SSH -> Auth” section.
- Save the modifications in the “Session” section by clicking the “Save” button.
- To connect to the server through SSH, click the “Open” button. The key will now be sent to subsequent SSH connections starting from the same host. We may test this by performing the following commands:
ssh-addition -L
Forward the key using SSH Agent on Linux and Mac OS X
This is the final step in Bitnami google cloud ssh. Follow the steps below.
- Open a new terminal window on the local system (for example, in Mac OS X, “Finder -> Applications -> Utilities -> Terminal” or in Ubuntu, the Dash).
- Make certain we have the following information:
1: The IP address of the host to which the key will be sent.
2: Private SSH key (.pem key file) for the host to which the key will be sent.
- To add the SSH key to the agent, run the following command on the local machine. Remember to substitute KEYFILE with the path to the private key:
ssh-add KEYFILE
- Use the -A option to connect to the host. Remember to replace SERVER-IP with the host’s public IP address or hostname.
ssh -A bitnami@SERVER-IP
- The key will now be sent to subsequent SSH connections starting from the linked host. We may verify this by doing the following command:
ssh-add -L
[Need assistance with similar queries? We are here to help]
Conclusion
To conclude we have now gone through the Bitnami google cloud ssh and the configurations necessary to set it up with the support of our Server management support services at Bobcares.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
var google_conversion_label = "owonCMyG5nEQ0aD71QM";
0 Comments