6

I've just bought a machine with Chrome OS installed. I need to connect via ssh to a remote server, which needs to have my generated keygen to grant me any access to it. I am following the instructions Esc + Refresh (F3) + Power button in order to go to the Developer mode, but it just closes my login session and does nothing but spending my time. Command ssh-keygen does not exist in chrosh.

Would you help me to find out a solution?

4

First taking look at https://sites.google.com/site/chromeoswikisite/home/tips-and-tricks: Private keys have to be generated on a different computer and copied to the File Shelf of the Chromebook via SD Card.

Now after you have generated your key and copied it to SD card, take a look at this page :

Download your key to the Downloads directory. I keep an encrypted copy of my key in Google Drive.
Press Ctrl-Alt-T to open a terminal tab.
At the crosh> prompt, type the following:
    ssh
    user <your-user-name>
    host <your-host-name>
    key <your-key-filename> (not the full path)
    connect
| improve this answer | |
  • 1
    No. I must create a key for my ChromeOS, since I want to connect to my server, which requires a known client via key generated in the client computer. – user2979409 Jan 20 '15 at 10:53
  • 2
    I don't think so, IMHO you can as well generate the key elsewhere. Anyway, the the crosh shell doesn't have any command for creating a key – duDE Jan 20 '15 at 10:56
  • 1
    indeed, generating it elsewhere and using it with this worked perfectly for me! chromium.googlesource.com/apps/libapps/+/master/nassh/doc/… no need for root/devmode – cregox Mar 3 '18 at 18:12
3

Aware this post hasn't been posted on for over a year however I think this may work:

  1. Install Chromebrew
  2. Now install libssh2 (think this package is for generating) by typing in crew install libssh2

NOTE: You need to have dev mode enabled. NOTE 2: I'm posting this for others who may want to do this.

| improve this answer | |
1

If you don't have access to a machine with ssh-keygen or want to generate the key completely locally, you can use this stand-alone page [1] which is a modified version of https://js-keygen.surge.sh/ but with the config options not broken and the site downloadable as a single file. It does not send the keys anywhere or save them in the cloud.

To generate an SSH keypair, you can click "Generate" with the default options and then click "Save" for each key of the pair.

[1] Just in case, I have mirrored this page here: https://scito.surge.sh/js-keygen.html

| improve this answer | |
0

If you don't want to run in developer mode you can use this extension.

There is some risk in this process as keys are synced in chrome, but it's useful for development in a pinch.

| improve this answer | |
  • That extension doesn't have an option to generate a new key. You have to paste in a PEM-formatted key to add one to the agent. – matvore Nov 24 '18 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.