git-annex/doc/bugs/id__95__rsa_on_android.mdwn
2014-03-10 17:01:08 -04:00

32 lines
1.4 KiB
Markdown

### Please describe the problem.
I generated id_rsa and id_rsa.pub from the android shell.
After copying the id_rsa.pub file on my server, ssh on android complains because id_rsa permissions on the phone are too open (660).
Chmod 600 id_rsa on /sdcard/git-annex.home/.ssh/id_rsa has no effect, i.e. permissions remain 660.
### What steps will reproduce the problem?
use ssh-keygen to generate keys, default location is /sdcard/git-annex.home/.ssh/
copy id_rsa.pub on ssh server, try to connect from android to ssh server.
### What version of git-annex are you using? On what operating system?
latest git-annex.apk (2014-03-06) on android 4.4.2
### Please provide any additional information below.
root@android:/ # /data/data/ga.androidterm/runshell
Falling back to hardcoded app location; cannot find expected files in /data/app-lib
root@android:/sdcard/git-annex.home # ssh MYSERVERIP -p PORT -l USERNAME
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0660 for '/sdcard/git-annex.home/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /sdcard/git-annex.home/.ssh/id_rsa
> [[fixed|done]]; daily build is updated. --[[Joey]]