Skip to content

Instantly share code, notes, and snippets.

@damondouglas
Last active August 29, 2015 13:56
Show Gist options
  • Save damondouglas/8816780 to your computer and use it in GitHub Desktop.
Save damondouglas/8816780 to your computer and use it in GitHub Desktop.
Secure passwordless crosh ssh login from chromebook to mac

Secure passwordless crosh ssh login from chromebook to mac

Generate Keys

ssh-keygen -f <filename>

Add public key to server

cat <filename>.pub >> ~/.ssh/authorized_keys

Copy and .pub to Chromebook /Downloads folder

SSH into Mac from Crosh (Ctrl-Alt-T)

crosh> ssh
ssh> host example.com
ssh> user <username>l
ssh> key <filename>
ssh> connect
Enter passphrase for key '/home/chronos/user/.ssh/key-123...abc':

Shut Off Password Authentication

Edit /etc/sshd_config on mac: Set # ChallengeResponseAuthentication yes to ChallengeResponseAuthentication no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment