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

Anonymous sftp connection from browser that fails can't be converted to authenticated connection #6565

Closed
cyberduck opened this issue Feb 29, 2012 · 2 comments
Assignees
Labels
bug fixed sftp SFTP Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

c0178f8 created the issue

First off, I have no problem connecting to the server in question with Cyberduck when done in the normal way, e.g. clicking on "Open Connection" or a bookmark.

Here's the problem, though. When I click in my browser on an SFTP link that doesn't include username, e.g. sftp://some.server.com/test/dir3/junk.dat, first Cyberduck tries an anonymous connection and fails, which is fine. However, next I uncheck the "Anonymous Login" checkbox, enter my credentials, and click Login. Even though they are correct, Cyberduck reopens the dialog, reporting "Login failed". As mentioned, I have no problems directly connecting to this server using the same credentials with Cyberduck, e.g. I have a bookmark established for this server/user combination, which always works.

The end result is that if a web page references a long, complicated anonymous sftp url, there is no easy way to get Cyberduck to download the file if I have to authenticate first. I can't even copy the path information out of the url and punch that into a textbox in Cyberduck. The "Go to folder" command is helpful, but what if, as in my case, there may be hundreds of files with long file names in the directory?

It is also kind of annoying but perhaps understandable that even if I have an authenticated connection to the server "open" in Cyberduck, and the web browser hands off an anonymous url request to Cyberduck, Cyberduck doesn't upgrade the request from anonymous to authenticated automatically, or at least ask me.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

If I test this here with an OpenSSH server, the server denies changing the username in the same session and will give Peer sent DISCONNECT message (reason code 2): Change of username or service not allowed: (anonymous,ssh-connection) -> (dkocher,ssh-connection).. You can choose to Retry the connection attempt which will then succeed.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Related to #6763.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed sftp SFTP Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants