Skip to content

Instantly share code, notes, and snippets.

@okineadev
Created February 23, 2025 16:18
Show Gist options
  • Save okineadev/e76e295bceae03dce6e58a0ea5e3e5b8 to your computer and use it in GitHub Desktop.
Save okineadev/e76e295bceae03dce6e58a0ea5e3e5b8 to your computer and use it in GitHub Desktop.
πŸ’» How to SSH into your Chromebook through Linux
# πŸ“° https://web.archive.org/web/20210513172249/hackershark.com/2021/05/13/how-to-ssh-into-your-chromebook-through-linux-beta/
# 1. πŸ”“ Unlock the SSH server
sudo rm /etc/ssh/sshd_not_to_be_run
# 2. Switch to the `root` user
sudo su
# 2.1. Set a password for the root user
passwd root
# 2.2. Set a password for the current user
passwd <user>
# 3. Exit from the root user session
exit
# 4. Use port `2323` for the SSH server
echo "Port 2323" | sudo tee -a /etc/ssh/sshd_config
# 5. Start the SSH daemon
sudo systemctl start ssh
# 6. Expose port 2323 in Chrome OS to allow SSH connections
# 6.1. Open Settings
# 6.2. In the Settings menu, open the 'About ChromeOS' section
# 6.3. Navigate to 'Linux Development Environment'
# 6.4. Click on 'Port forwarding'
# 6.5. Click 'Add' to create a new port forwarding rule
# 6.7. Enter `2323` as the port number, select `TCP` as the protocol, and add a label if desired
# 6.8. Ensure the toggle switch next to the new rule is turned on to activate it
# After completing these steps, you can SSH into your Chromebook's Linux environment using:
# ssh <user>@<Chromebook_IP_address> -p 2323
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment