I can sftp to my android device using password. However i can not set up this using public key auth.
$ ssh -vvv [email protected]
SSHD Server
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/jsaak/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
Set the key file, and permissions too:
root@android:/data/data/web.oss.sshsftpDaemon # ls -ald .ssh
drwx------ root root 2016-04-04 12:08 .ssh
root@android:/data/data/web.oss.sshsftpDaemon # ls -al .ssh
-rw------- root root 394 2016-04-04 11:45 authorized_keys
Any ideas?
/data/data/web.oss.sshsftpDaemon/.ssh/authorized_keys
is the file checked when logging in asroot
?/data/data/web.oss.sshsftpDaemon
home directory of aroot
user? Do you have specific configuration insshd_config
?