smallperson / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

support for key import on Nexus S or other device without sdcard #414

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On a Nexus S, install connectbot
2. On another machine, create an ssh key pair
3. Attempt to upload to the Nexus S.

What is the expected output? What do you see instead?

Under "Manage Pubkeys" and the "Import" menu item, I get simply "Pick from 
/sdcard" and a Cancel button.

What version of the product are you using (you can see this by using Menu
-> About in the Host List)?

1.7.1

Please provide any additional information below.

I attempted adding a directory to the "USB Storage," but was not able to use 
connectbot's import to browse that directory.

Original issue reported on code.google.com by cristoba...@gmail.com on 9 Jan 2011 at 7:16

GoogleCodeExporter commented 9 years ago
I too am seeing this on the Samsung Galaxy S II.

I have an SD card installed that mounts at /sdcard/external_sd but I cannot 
browse to any dirs when importing keys.

Workaround is to move the keys from /sdcard/external_sd/ssh to /sdcard

Original comment by abnormal...@gmail.com on 1 Jul 2011 at 4:01

GoogleCodeExporter commented 9 years ago
I also do not know how to import a key on the Galaxy Nexus (ICS, no sd card).

Original comment by josepedr...@gmail.com on 25 Dec 2011 at 1:06

GoogleCodeExporter commented 9 years ago
I also can't import a key to a galaxy nexus. Also, how do I export a key that I 
generated on the galaxy nexus to get the key to my server?

Original comment by eric.haw...@gmail.com on 4 Feb 2012 at 5:34

GoogleCodeExporter commented 9 years ago
I managed to import a key to ConnectBot on Galaxy Nexus. Here's the procedure:
1. On Mac in a terminal window, cp ~/.ssh/id_rsa ..           # put the private 
key file in home directory 
2. Having download Android File Transfer, connect phone to Mac with USB cable. 
AFT "finder" window
pops up.
3. Drag ~/id_rsa from actual finder window to AFT "finder" into Downloads 
directory on the phone.
4. On phone, start ConnectBot and open a local terminal session. If you ls, you 
see that there is a /sdcard directory (even though no actual sd card). If you 
ls sdcard, you'll see that that is the directory whose contents are being 
listed in the AFT "finder". So ..
5. On Mac, quit Android File Transfer app (or physically disconnect the phone).
6. In ConnectBot local terminal, mv /sdcard/Downloads/id_rsa /sdcard
7. Now select ssh in ConnectBot and in menu, Manage Pub Keys, Import
8. Now you should see id_rsa under Copy from /sdcard. Select it. DONE.

Original comment by eric.haw...@gmail.com on 5 Feb 2012 at 7:14

GoogleCodeExporter commented 9 years ago
I have a Nexus 7 and I got it to work. Just copy key file to storage root. Then 
the "Pick from /sdcard" will list your key files to choose from.

Original comment by davidmo...@gmail.com on 10 Aug 2012 at 12:26

GoogleCodeExporter commented 9 years ago
Encountering the same issue running Ice Cream Sandwich (CM9) on a Fascinate 
(basically a Galaxy S).

Original comment by ascrane@gmail.com on 14 Sep 2012 at 12:41

GoogleCodeExporter commented 9 years ago
I think I found the problem. I too had problems importing keys. My phone (a 
AT-AS43D2, sold by ALDI). has internal storage mounted on /sdcard. The 'real' 
sdcard is mounted on /mnt/sdcard2. If I put the key in that dir, it is found. 
So the text on screen 'Pick from /sdcard' is wrong and misleading. Maybe it 
should state 'Pick from external sd' or something. Or use environment var 
EXTERNAL_STORAGE to build that title.

Original comment by Jos.Nou...@gmail.com on 20 Sep 2012 at 1:37