You are not logged in.
For some reason, I get PAM authentication failures when using my pubkey when trying to connect via sftp. But enabling password authentication and just directly using my password, there are no problems connecting. At this point i feel like it could be the app connecting improperly or doing something to my keyfile. (the app is Documents by readdle)
Log for auth failure: https://pastebin.com/rACjMyGe
Offline
Can you connect the server w/ "sftp" (the client doesn't seem to send a public key at all)
If that fails as well, did you read https://wiki.archlinux.org/index.php/SS … ote_server ?
Online
That's part of the problem. It is hard for me to tell what is happening on the client-side because it is an ios application. As far as I know, the key should work as it works when I use it on my laptop.
Offline
Have you tried disabling password auth in the ssh server config so key based auth is the only supported method? Maybe the app is not intelligent enough to choose the correct method if multiple are available.
Last edited by progandy (2020-12-07 09:51:09)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
I have before, but for the sake of documenting the problem I just recently tried it again.
log: https://pastebin.com/L0bhWkRZ
Based on this line, it looks like the app is still going forward with using password auth instead of using the key, despite it saying that password auth is disabled in favor of using the key.
Dec 07 09:18:55 servPc sshd[1301144]: debug1: userauth-request for user papu service ssh-connection method password
Last edited by kormpu (2020-12-07 15:23:56)
Offline
This here?
https://apphelp.readdle.com/pdfexpert6/ … ge&id=1139
Have you tried to empty the login/password fields?
Did you select the proper *private* key file?
Online
I have emptied the password field every time. The only thing i can figure is that the key is being mangled in transit to my phone. What would be the best way to transfer it to my phone? (it's an ios device)
Offline
You're probably better off asking on an iOS forum (or the app support directly) but the server log doesn't indicate an unknown key to have been tried.
Maybe iOS allows to calculate hashes (md5, sha*sum) of files that you could run on the key and compare it w/ the original to see whether iTunes screwed the transfer?
Online
Checking its hash is a good idea, I'll definitely check that later.
Offline