Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Chrome OS SSH Tool: How to Use It

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The handy SSH management tool in Chrome OS is the built-in Secure Shell app, which lets you connect to remote servers or devices directly from your Chromebook. You can use it to manage a Linux server, a Raspberry Pi, or any machine that supports SSH. You need to have the server's hostname or IP address, a username, and either a password or an SSH key. Here's how to use it step by step.

What You'll Need

  • A Chromebook running Chrome OS (the Secure Shell app is preinstalled on most recent models).
  • The IP address or hostname of the server you want to connect to.
  • A username and password for that server, or an SSH key pair already set up.
  • If you're using an SSH key, have the private key file ready (usually in .pem or .ppk format).

Step-by-Step

  1. Open the Secure Shell app. Click the Launcher (the circle icon in the bottom-left corner), then search for "Secure Shell" and click the app icon. If you don't see it, you can install it from the Chrome Web Store (search for "Secure Shell").
  2. Start a new connection. When the app opens, you'll see a text field that says "ssh [username@hostname]". Click in that field.
  3. Enter your connection details. Type your username, then an @ symbol, then the server's hostname or IP address. For example: admin@192.168.1.10 or pi@raspberrypi.local.
  4. Press Enter to connect. The app will try to connect to that address. If it's your first time connecting to this server, you'll see a prompt asking if you trust the host key. Type yes and press Enter.
  5. Authenticate. You'll be asked for your password. Type it and press Enter. If you're using an SSH key, you'll need to have the key loaded (see Tips below).
  6. You're in. Once authenticated, you'll see the server's command prompt. You can now run commands like you would in any terminal.
  7. To disconnect, type exit and press Enter, or close the tab.

If you need to connect to multiple servers, you can open multiple Secure Shell tabs or windows. The app also remembers your connection history, so you can click the down arrow next to the connection field to see past connections.

Common Mistakes

  • Typing the wrong address: Double-check the IP address or hostname. A single typo will prevent the connection.
  • Forgetting the username: You must include the username before the @ symbol. If you omit it, the app will use your Chrome OS username, which is often not the same as the server's username.
  • Ignoring the host key prompt: When you see "The authenticity of host ... can't be established," you must type yes (not just press Enter). If you press Enter without typing, it may default to "no" and abort the connection.
  • Using the wrong port: By default, SSH uses port 22. If your server uses a different port, you need to specify it. In the Secure Shell app, you can add -p [port] after the hostname, like ssh admin@192.168.1.10 -p 2222.
  • Not having the SSH key loaded: If you rely on key-based authentication, you must first import your private key into the Secure Shell app. See Tips.

Tips

  • Use SSH keys for easier logins: Instead of typing a password every time, you can set up key-based authentication. First, generate a key pair on your Chromebook using the Secure Shell app: click the menu (three horizontal lines) in the top-left, then select "Options". Under "SSH Key Management", click "Generate New Key". Choose a passphrase (or leave blank for no passphrase), then click "Generate". You'll see a public key that you can copy to your server's ~/.ssh/authorized_keys file. Once that's done, you can import the private key into Secure Shell: in the same Options menu, under "SSH Key Management", click "Import" and select your private key file.
  • Use the connection history: The down arrow next to the connection field shows a list of previous connections. Click one to quickly reconnect.
  • Copy and paste: In Secure Shell, you can copy text by selecting it with your mouse, and paste by right-clicking or using Ctrl+Shift+V. This is handy for long commands.
  • Resize the window: The terminal window can be resized by dragging the edges. This is useful for seeing more output.
  • Use full screen: Press Ctrl+Shift+M to toggle full-screen mode for the terminal, which gives you more space to work.
  • If you're using a Chromebook for development, you can also use the Linux terminal (Crostini) to run SSH commands, but the Secure Shell app is lighter and works even without Linux enabled.

Troubleshooting

If your connection fails, here are steps to try, from simplest to more involved:

  1. Check your network: Make sure your Chromebook is connected to the internet or to the same local network as the server. Try pinging the server from the Secure Shell app by typing ping [hostname] (if the server is on your LAN). If ping fails, the address is wrong or the server is unreachable.
  2. Verify the server's SSH service is running: On the server, ensure the SSH daemon is active. For example, on a Linux server, you can check with sudo systemctl status ssh (if you have access).
  3. Check the port: If you're not using port 22, make sure you specified the correct port with -p. Also, check that the server's firewall allows that port.
  4. Try a different authentication method: If password authentication fails, try using an SSH key. If key authentication fails, try password. This helps isolate the issue.
  5. Clear the known hosts file: If you get a "Host key verification failed" error, it may be because the server's key changed. In the Secure Shell app, go to Options > SSH Key Management, and you'll see a "Clear known hosts" button. Click it, then try connecting again. This removes the old host key entry.
  6. Restart the Secure Shell app: Close the tab and reopen the app. Sometimes a fresh start clears temporary glitches.
  7. Reinstall the app: If nothing else works, uninstall the Secure Shell app from the Chrome Web Store and reinstall it. You won't lose your saved connections, but you may need to re-import any SSH keys.

If you still cannot connect, the problem is likely on the server side. Check the server's SSH configuration and logs (e.g., /var/log/auth.log on Linux) for errors.

Frequently Asked Questions

Can I use the Secure Shell app to connect to a Windows machine?

Yes, if the Windows machine has an SSH server installed (like OpenSSH for Windows). The connection process is the same.

How do I transfer files over SSH?

The Secure Shell app is for terminal access only. For file transfers, you can use the scp command within the terminal, or use a separate SFTP app like "SFTP for Chrome" (available in the Chrome Web Store).

Can I save multiple connections for easy access?

Yes, the app keeps a history of past connections. You can also create a bookmark in Chrome for the Secure Shell app with the connection string in the URL, like ssh://admin@192.168.1.10, and open it directly.

Is the Secure Shell app secure?

Yes, it uses standard SSH encryption. However, be careful with your passwords and private keys. Never share them, and use strong passphrases for your keys.

Can I use SSH keys generated on another computer?

Yes, you can import private keys in PEM format. In the Options menu, under SSH Key Management, click "Import" and select your key file. Make sure the file permissions are correct (readable only by you).

Does the Secure Shell app work offline?

Yes, you can use it to connect to servers on your local network even without internet access, as long as your Chromebook and the server are on the same network.