Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command "open" does not initiate the connection: unusable with simpleSSHD on android #730

Open
noelk opened this issue Jul 27, 2024 · 0 comments

Comments

@noelk
Copy link

noelk commented Jul 27, 2024

Hello,
a forwarded bug from https://bugs.debian.org/940272

--8<--
The "open" command does not initiate the connection, and it appears
impossible to do that. This makes lftp unusable with SimpleSSHD under
Android when a key hasn't been defined yet, for instance. There is
no such issue with sftp.

The problem is the following: when SimpleSSHD has just been installed,
there isn't a key yet. Thus, when one connects by sftp, SimpleSSHD
outputs a random, temporary password for security. The password is
provided only once one has initiated the connection (since it will
change at each connection). The problem with lftp is that when it
asks the password, it hasn't initiated the connection, so that one
does not know the password.

Note: If one gives a dummy password, lftp tries to connect, and
SimpleSSHD outputs the password that should have been used. But
after the login failure, lftp closes the connection, so that at
the next connection the password will change. Thus this does not
solve the problem.

Note: This method with the random, temporary password must be used
in order to upload the key in authorized_keys.
--8<--

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant