New issue
Advanced search Search tips

Issue 668754 link

Starred by 5 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature



Sign in to add a comment

nassh: should allow private keys other than id_rsa

Reported by foolus...@gmail.com, Nov 25 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

Steps to reproduce the problem:
1. open hterm
2. set private key other than id_rsa
3. try to authenticate
4. fails to authenticate

What is the expected behavior?
private key should be used for authentication

What went wrong?
private keys not named id_rsa don't work.

Did this work before? No 

Chrome version: 54.0.2840.99  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0
 

Comment 1 Deleted

Comment 2 by vapier@chromium.org, Nov 28 2016

Labels: -OS-Windows OS-All
Summary: SecureShell should allow private keys other than id_rsa (was: hterm should allow private keys other than id_rsa)
please describe in detail the exact steps you performed

Comment 3 by foolus...@gmail.com, Nov 29 2016

I was attempting to load the private key for a virtualbox vm created by vagrant. Vagrant names the private key "private_key".

1. First I clicked the "Import..." link
2. I navigated to the private key file vagrant created "D:\andrew\ubuntu\.vagrant\machines\default\virtualbox\private_key".
3. Click open.
4. Click "[Enter] Connect" button to connect.
5. Authentication fails

Since that failed i did the following to fix it.
1. Copied "D:\andrew\ubuntu\.vagrant\machines\default\virtualbox\private_key" to "D:\andrew\ubuntu\.vagrant\machines\default\virtualbox\id_rsa".
2. Click "Import..." link.
3. select "D:\andrew\ubuntu\.vagrant\machines\default\virtualbox\id_rsa".
4. click open.
5. click "[Enter] connect" with successful authentication.

Let me know if there is anymore info you need. I'd be happy to contribute if you can point me in the right direction.

Comment 4 by vapier@chromium.org, Nov 29 2016

did you try adding an -i flag to use the private_key name ?  or try naming it id_rsa.private_key and see if it loads automatically ?

the behavior you describe sounds like standard openssh behavior.

Comment 5 Deleted

Comment 6 Deleted

Comment 7 by foolus...@gmail.com, Nov 29 2016

I tried adding the following to the SSH Arguments without any luck

-i private_key
-i D:\andrew\ubuntu\.vagrant\machines\default\virtualbox\private_key
-i D:/andrew/ubuntu/.vagrant/machines/default/virtualbox/private_key
-i "D:\andrew\ubuntu\.vagrant\machines\default\virtualbox\private_key"
-i "D:/andrew/ubuntu/.vagrant/machines/default/virtualbox/private_key"
-i "/D/andrew/ubuntu/.vagrant/machines/default/virtualbox/private_key"

Comment 8 by vapier@chromium.org, Nov 29 2016

host paths (outside of Chrome) like D:\xxx make no sense to NaCl processes (like openssh) because the security sandbox provides no visibility at all to the host filesystem.  inside the sandbox, the .ssh dir lives inside /.  so try a path like:
  -i /.ssh/private_key

Comment 9 by foolus...@gmail.com, Nov 29 2016

That worked! feel free to close this. Thanks for clearing that up for me.
could you try installing the file named something like "id_rsa.private_key" and see if it'll work w/out the -i option ?

i'm wondering if we can (or should) make the default behavior a bit smarter.  at the very least, we could add info to the "load key" UI so people are aware of the openssh behavior.
yes, it seems to work as long as i prefix with "id_rsa." so changing the key to "id_rsa.private_key" and "id_rsa.foo" both worked.

Comment 12 Deleted

Comment 13 Deleted

Comment 14 Deleted

Comment 15 Deleted

Comment 16 Deleted

Comment 17 Deleted

 Issue 750000  has been merged into this issue.
 Issue 844271  has been merged into this issue.

Sign in to add a comment