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

Invalid host hash algorithm: undefined #321

Closed
eulogy14 opened this Issue Mar 18, 2016 · 7 comments

Comments

Projects
None yet
8 participants
@eulogy14

eulogy14 commented Mar 18, 2016

Invalid host hash algorithm: undefined

Just reinstalled Atom and then started firing up my usual plugins and then configuring remote-ftp.
At first I thought a reinstallation of the plugin will fix it but nothing changed.

Atom Version: 1.6.0
System: Microsoft Windows 10 Pro
Thrown From: Remote-FTP package, v0.7.20

Stack Trace

Uncaught Error: Invalid host hash algorithm: undefined

At C:\Users\isoogy\.atom\packages\Remote-FTP\node_modules\ssh2\lib\client.js:342

Error: Invalid host hash algorithm: undefined
    at Client.connect (C:\Users\isoogy\.atom\packages\Remote-FTP\node_modules\ssh2\lib\client.js:342:13)
    at ConnectorSFTP.module.exports.ConnectorSFTP.connect (C:\Users\isoogy\.atom\packages\Remote-FTP\lib\connectors\sftp.js:79:13)
    at Client.module.exports.Client.doConnect (C:\Users\isoogy\.atom\packages\Remote-FTP\lib\client.js:241:18)
    at space-pen-div.<anonymous> (C:\Users\isoogy\.atom\packages\Remote-FTP\lib\client.js:659:9)
    at space-pen-div.jQuery.event.dispatch (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\jquery\dist\jquery.js:4435:9)
    at space-pen-div.elemData.handle (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\jquery\dist\jquery.js:4121:28)
    at Object.jQuery.event.trigger (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\jquery\dist\jquery.js:4350:12)
    at space-pen-div.<anonymous> (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\jquery\dist\jquery.js:4901:17)
    at Function.jQuery.extend.each (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\jquery\dist\jquery.js:374:23)
    at PromptPassDialog.jQuery.fn.jQuery.each (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\jquery\dist\jquery.js:139:17)
    at PromptPassDialog.jQuery.fn.extend.trigger [as originalTrigger] (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\jquery\dist\jquery.js:4900:15)
    at PromptPassDialog.$.fn.trigger (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\atom-space-pen-views\node_modules\space-pen\lib\space-pen.js:606:19)
    at PromptPassDialog.module.exports.PromptPassDialog.onConfirm (C:\Users\isoogy\.atom\packages\Remote-FTP\lib\dialogs\prompt-pass-dialog.js:50:8)
    at space-pen-div.PromptPassDialog.atom.commands.add.core:confirm (C:\Users\isoogy\.atom\packages\Remote-FTP\lib\dialogs\prompt-pass-dialog.js:44:10)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\src\command-registry.js:260:29)
    at C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\src\command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:570:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:378:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\src\window-event-handler.js:97:36)
    at HTMLDocument.<anonymous> (C:\Users\isoogy\AppData\Local\atom\app-1.6.0\resources\app.asar\src\window-event-handler.js:3:61)

Commands

  4x -1:36.5.0 core:save (atom-text-editor.editor.is-focused)
  2x -1:30.5.0 core:backspace (atom-text-editor.editor.is-focused)
     -1:07.4.0 core:select-all (atom-text-editor.editor.is-focused)
     -1:07.3.0 core:paste (atom-text-editor.editor.is-focused)
  3x -1:01.6.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:59.6.0 core:move-down (atom-text-editor.editor.is-focused)
  4x -0:49.1.0 core:save (atom-text-editor.editor.is-focused)
     -0:34.2.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:32.1.0 core:save (atom-text-editor.editor.is-focused)
  2x -0:28.7.0 core:backspace (atom-text-editor.editor.is-focused)
  3x -0:22 core:save (atom-text-editor.editor.is-focused)
     -0:09.3.0 core:backspace (atom-text-editor.editor.is-focused)
  3x -0:08.5.0 core:save (atom-text-editor.editor.is-focused)
  9x -0:05.3.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:03.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {},
  "Remote-FTP": {}
}

Installed Packages

# User
atom-beautify, v0.28.26
autoclose-html, v0.23.0
css-snippets, v0.9.0
emmet, v2.4.2
file-icons, v1.6.18
highlight-selected, v0.11.2
javascript-snippets, v1.2.1
node-debugger, v1.4.6
open-recent, v5.0.0
pigments, v0.24.5
Remote-FTP, v0.7.20
remote-sync, v3.5.0

# Dev
No dev packages
@xorinzor

This comment has been minimized.

Show comment
Hide comment
@xorinzor

xorinzor Mar 18, 2016

had the same issue, I just entered "sha1" and it worked

xorinzor commented Mar 18, 2016

had the same issue, I just entered "sha1" and it worked

@cameronwlewis

This comment has been minimized.

Show comment
Hide comment
@cameronwlewis

cameronwlewis Mar 20, 2016

Also have this problem. Entering "sha1" or "md5" after hosthash doesn't do anything for me.

cameronwlewis commented Mar 20, 2016

Also have this problem. Entering "sha1" or "md5" after hosthash doesn't do anything for me.

@radarsu

This comment has been minimized.

Show comment
Hide comment
@radarsu

radarsu Mar 20, 2016

Same here. I had to add: cfg.hostHash = 'sha1'; and then it worked.

radarsu commented Mar 20, 2016

Same here. I had to add: cfg.hostHash = 'sha1'; and then it worked.

@mattomalley

This comment has been minimized.

Show comment
Hide comment
@mattomalley

mattomalley Mar 30, 2016

I had the same issue. Updating the hosthash value from null to either 'md5' or 'sha1' on the .ftpconfig file worked for me.

mattomalley commented Mar 30, 2016

I had the same issue. Updating the hosthash value from null to either 'md5' or 'sha1' on the .ftpconfig file worked for me.

@GeneralCan

This comment has been minimized.

Show comment
Hide comment
@GeneralCan

GeneralCan Apr 6, 2016

adding 'md5' or 'sha1' in lowercase to hosthash value also worked here.

GeneralCan commented Apr 6, 2016

adding 'md5' or 'sha1' in lowercase to hosthash value also worked here.

@jadedcore

This comment has been minimized.

Show comment
Hide comment
@jadedcore

jadedcore Apr 12, 2016

I copied the ssh2 folder from a known working instance of the package and replaced the broken versions ssh2 folder with it and everything worked as before.

jadedcore commented Apr 12, 2016

I copied the ssh2 folder from a known working instance of the package and replaced the broken versions ssh2 folder with it and everything worked as before.

@jpxd

This comment has been minimized.

Show comment
Hide comment
@jpxd

jpxd Apr 28, 2016

Collaborator

After merging #325 it should work in the latest release

Collaborator

jpxd commented Apr 28, 2016

After merging #325 it should work in the latest release

@jpxd jpxd closed this Apr 28, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment