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

Support to expand tokens in OpenSSH configuration #9821

Open
cyberduck opened this issue Jan 21, 2017 · 6 comments
Open

Support to expand tokens in OpenSSH configuration #9821

cyberduck opened this issue Jan 21, 2017 · 6 comments
Assignees
Labels
enhancement sftp SFTP Protocol Implementation

Comments

@cyberduck
Copy link
Collaborator

d75cdb3 created the issue

On a brand new installation, I got the following error in a window when I try to create a new connection (note: I tried with several hostnames and even IPs):

Connection failed

DNS lookup for %h failed. DNS is the network service that translates a server name to its Internet address. This error is most often caused by having no connection to the Internet or a misconfigured network. It can also be caused by an unresponsive DNS server or a firewall preventing access to the network.


This makes SFTP unusable for me. The "%h" thing seems to be a problem of string formatting. The other protocols don't seem to be affected as far as I know.

Note: I cannot choose 5.3.3 in the Version popup on trac.


Attachments

@cyberduck
Copy link
Collaborator Author

d75cdb3 commented

FYI I also got a similar error with Mountain Duck that I just wanted to give a try... but the %h is replaced by 0.000000000

@cyberduck
Copy link
Collaborator Author

@dkocher commented

I cannot reproduce the error nor the formatting failure in the DNS lookup failure message. Can you please open Console.app, filter for “Cyberduck” in the upper right search field with “system.log” selected in the left pane. Then choose File → Save Copy As…” to save the log file and attach it to your email reply. 

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Can you also move aside your ~/.ssh/config file as a possible source of the failure.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In 96d9371 and 96d9371. Please update to the latest snapshot build available.

@cyberduck
Copy link
Collaborator Author

e25c90d commented

The issue is still present in the latest build. You can reproduce it by adding the following entry to ~/.ssh/config:

Host 192.168.1.1 192.168.1.2
    User root
    HostName %h
    IdentityFile ~/.ssh/keyfile

And adding SFTP server 192.168.1.1 or 192.168.1.2. %h means substitute with hostname.

@vit9696
Copy link

vit9696 commented Jan 30, 2022

This issue is a duplicate of #10323.

@dkocher any chance this gets addressed in foreseeable future? Thanks!

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

No branches or pull requests

3 participants