I'm trying to use https://www.libssh2.org/libssh2_userauth_publickey_fromfile_ex.html with "~/.ssh/id_ed25519"
but I feel like it's not expanding the path? It doesn't say in the docs what kind of paths are supported. Does anyone know if this should work?
Asked
Active
Viewed 48 times
0
-
Do you want to use relative paths like `some/dir/file` or do you ask on how to convert `~` to the full path of the home directory? – Progman Sep 16 '22 at 16:26
-
I was interested in the tilde ~ but if someone knows an answer for both that's also useful – ditoslav Sep 19 '22 at 18:46
-
Does this answer your question? [How do I achieve tilde expansion in C?](https://stackoverflow.com/questions/15991241/how-do-i-achieve-tilde-expansion-in-c) – Progman Sep 19 '22 at 18:49
-
I was interested in how libssh2 handles relative paths when passed as parameter since I'm consuming it from a Rust codebase so I was wondering if I can skip doing tilde expansion myself – ditoslav Sep 19 '22 at 18:50