blob: 2aadd6c4033f4c0835c73eb643532df09d5de725 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
### 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]]
|