قالب وردپرس درنا توس
Home / Tips and Tricks / How to use Chrome Browser Secure Shell App for SSH in remote control units «Zero Byte :: WonderHowTo

How to use Chrome Browser Secure Shell App for SSH in remote control units «Zero Byte :: WonderHowTo



Many Null Byte guides require you to use Secure Shell (SSH) to connect to a remote server. Unfortunately, for beginners, learning to use SSH can become a confusing mix of third-party applications and built-in OS support. For Chrome OS users, it is even harder to use SSH. We'll fix this by using Chrome Secure Shell to create an SSH connection from any device that can run a Chrome browser.

The Secure Shell Chrome extension and app provides PuTTy-like functionality for those familiar with the third-party Windows software. The extension and app are xterm-compatible terminal emulators and standalone SSH clients for Chrome. They work by combining the SSH command sent to the Google Native Client with the hterm terminal emulator, allowing the app to provide a Secure Shell client in the browser without relying on external proxies.

In just a few minutes, you will be able to establish an SSH connection from your Chrome browser. For obvious reasons, you need to install the Chrome browser, so be sure to download Chrome if you don't already have it installed.

Step 1: Install Chrome Secure Shell

To begin with, download the Secure Shell extension or app from the Chrome Web Store, depending on which device you use. If you are using a Chrome OS device, you want the app. All other devices will use the extension. When you open one of the links below in your Chrome browser, click the "Add to Chrome" button in the upper right corner of the pop-up window.

After that, a dialog box appears asking you to confirm that you want to add the extension or app. Click "Add Add-ons" or "Add App" to install. If you chose the extension, it can be used directly. For the app version, it should not take more than a few seconds to complete the installation.

Step 2: Open Chrome Secure Shell

You can access Secure Shell Extension in Chrome by clicking on the extension's icon in the toolbar, then " Connection Dialog "or by typing ssh into the address bar and pressing the or key key followed by key . The icon will open in a new window while the address bar shortcut will be in the tab you are in.

For the Secure Shell App, you can click "Launch App" from its webshop. In addition, you can use chrome: // apps in the address bar or click "Apps" at the far left of Chrome in the bookmarks bar, then select "Secure Shell". It is also possible to open it in a Chrome tab using the ssh key in the address bar as with the extension.

Step 3: Save a new connection

Now that we have the Secure Shell extension or app running, it's easy to set up an SSH connection. On the SSH screen there will be a box with several settings available. Look at the first setting and make sure "New Connection" is selected by clicking on it so that it looks like the picture below. If you have never used Secure Shell before, it will be selected automatically.

Then type a name for your new connection in the top text box that says "username @ hostname or free form text". The name may be something, so try to choose the most exact name that will help you remember which connection goes to which device. For example, you can use "retroPie" or "Basement media server" because even a specific name like "Raspberry Pi" can become confusing when you have more than one Pi.

Alternatively, you can easily start writing the connection into the title bar as I did, and it automatically fills in the correct boxes below. Otherwise, you have to fill in each box manually.

Once all the required information has been entered, click the "Connect" button at the bottom of the box or press Enter . Proceed to step 6 below to see what to do next or check out step 5 to see how to access your new saved connection later.

Step 4: Starting Your Saved Connection

Once connected, you just need to select the name of the connection in the reconnect box, not the "New Connection", because the app remembers all login details.

Perhaps the most exciting feature to use with Secure Shell is to create an SSH connection in seconds by simply typing the search field at the top of the browser. To do this, you can use the following formats, which is the same as you can use in a MacOS or Linux terminal window. Do not drop Press or Space before connecting the connection information.

  ssh username @ host: port 

Even faster, if you have the add-in installed, click the extension's icon in the toolbar and then select your connection name. A new window appears when the connection is made.

Step 5: Log in to your remote server

Once you have successfully connected, see the always known terminal window displayed in the window or tab. The first time you connect to a server, you get a key fingerprint that you must accept. This fingerprint is used to easily identify and verify that the server you are connecting to is legitimate.

  Connect to root@192.168.0.13 ...
The authenticity of the host "[192.168.0.13]: 2222 ([192.168.0.13]: 2222)" cannot be established.
RSA key fingerprint is SHA256: fvQg9YFJSoQ5PyyaKDx4tAUOHPkSTxs0TRWiJnIEIMM.
Are you sure you want to continue connecting (yes / no)? 

The fingerprint should be the same every time you log on to the same system. If you ever get a message that the fingerprint has changed, it is a warning sign that someone is interfering with the communication. After accepting the fingerprint, you are prompted to enter your details, just like any other SSH connection.

  Connect to root@192.168.0.13 ...
The authenticity of the host "[192.168.0.13]: 2222 ([192.168.0.13]: 2222)" cannot be established.
RSA key fingerprint is SHA256: fvQg9YFJSoQ5PyyaKDx4tAUOHPkSTxs0TRWiJnIEIMM.
Are you sure you want to continue connecting (yes / no)? yes
Warning: Added permanently & # 39; [192.168.113.113]: 2222 & # 39; (RSA) to the list of famous hosts.
SSHDroid
Use & # 39; root & # 39; as a username
Default password is "admin"
root@192.168.113.113 password:
: /data/data/berserker.android.apps.sshdroid/home $ c 

That's it! You have successfully used your Chrome browser to create an SSH connection to your remote device.

Step 6: Enable Key-Based Authentication

Password is not the only way to verify an SSH connection. The most common method is called public key authentication. This method uses an encryption key pair, a public and a private, instead of a password. The public key is configured on the server to allow the server access to these users with a copy of the private key.

With key-based authentication, an extra layer of convenience is added when a person connects by eliminating the requirement to enter a password. The key exchange is considered the password instead. Important authentication is also the actual way of establishing an automatic SSH connection, such as automatic file transfers.

Secure Shell includes the ability to use key-based authentication, as it calls "identity files". To import identity files from the connection screen, click "Import" under the connection information and select your public and private keys.

The private key should not have a file extension, while the public key should have the PUB extension. For example, you may have "id_rsa" as your private key and "id_rsa.pub" as your public key.

If the key pair is stored in a PEM file, you must divide it into two files before importing. This can be by opening the PEM file in a text editor and copying and pasting each key into a new document. Without doing so, the app will not accept it. The PEM file will look like this:

  ----- BEGIN RSA PRIVATE KEY -----
[[KEY HERE]]
----- END RSA PRIVATE KEY -----

----- BEGIN PUBLIC KEY -----
[[KEY HERE]]
----- PUBLIC KEY ----- 

Save the new documents under the original file name. For example, "id_rsa.pub" would be the public key file name.

If you ever want to delete any of these keys because they are no longer valid, navigate to the connection screen and select the identity associated with this button from the menu. Now press the Delete key. This will remove both private and public key files from the HTML5 file system, as well as the saved connection.

SSH anywhere that Chrome can run

The Safe Shell Chrome app is a wonderful little tool for the developers' lives to become, programmers and hackers easier when connecting to remote devices. The ability to use SSH directly from your Chrome browser is not a groundbreaking achievement, but it adds practice to the platform to use SSH that cannot be underestimated. For Chrome OS users, the Security App app is the best way to create an SSH connection.

Thank you for reading! If you have any questions please ask me here in the comments or on Twitter @The_Hoid .

Don't Miss: Punchabunch Just Made SSH Local Forwarding Stupid Easy

Cover photo and screenshots of Hoid / Zero Byte




Source link