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

"Unknown host key" warning every time for SFTP, even though "Always" is chosen #1671

Closed
cyberduck opened this issue Jan 21, 2008 · 2 comments
Assignees
Labels
bug sftp SFTP Protocol Implementation worksforme
Milestone

Comments

@cyberduck
Copy link
Collaborator

anonymous created the issue

Whenever I connect to a site via SFTP, the "Unknown host key for host" warning pops up, although I choose "Always" every single time. The site is always the same. No subsequent warning or error message appears.

  • I'm on a non-admin account
  • On every attempt, there's an error in the console: (edited for privacy)
[0x0-0x1da1da].ch.sudo.cyberduck[11613] 0 [main] ERROR ch.cyberduck.ui.cocoa.CDHostKeyController  - Cannot read /Users/XXX/.ssh/known_hosts
  • known_hosts is rw-r--r--, .ssh is rwx------
  • Command-line sftp doesn't complain about unknown host keys, neither does ssh itself, so known_hosts must be readable
@cyberduck
Copy link
Collaborator Author

@dkocher commented

There must be an error reading one of the host keys in your known_hosts file. As a workaround, move away the current known_hosts file and let Cyberduck create a new one. Then you might want to add the keys from the backed up known_hosts file again to find out which one is the cause.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Duplicate for #8867.

@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 sftp SFTP Protocol Implementation worksforme
Projects
None yet
Development

No branches or pull requests

2 participants