Test SFTP Connection - Connection to '127.0.0.1 failed'
Hi,
I'm getting this error on the latest EAP (138.1505) when configuring a new interpreter from vagrant.
It detects everything fine but if I click in the link below ( ssh://127.0.0.1:2222) shows that message. This message is also shown when configuring phpunit on a remote interpreter and then try to browse the files in the remote machine (in this case vagrant)
If I do ssh vagrant@127.0.0.1 -p 2222 from the command line I have no problem connecting to my VM.
I enabled the deployment debug and this is the relevant part of the log:
2014-08-21 10:17:35,555 [6666471] DEBUG - ins.plugins.webDeployment.sftp - Connecting to 127.0.0.1 port 2222
2014-08-21 10:17:35,557 [6666473] DEBUG - ins.plugins.webDeployment.sftp - Connection established
2014-08-21 10:17:35,563 [6666479] DEBUG - ins.plugins.webDeployment.sftp - Remote version string: SSH-2.0-OpenSSH_5.3
2014-08-21 10:17:35,563 [6666479] DEBUG - ins.plugins.webDeployment.sftp - Local version string: SSH-2.0-JSCH-0.1.50
2014-08-21 10:17:35,564 [6666480] DEBUG - ins.plugins.webDeployment.sftp - CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
2014-08-21 10:17:35,564 [6666480] DEBUG - ins.plugins.webDeployment.sftp - CheckKexes: diffie-hellman-group14-sha1
2014-08-21 10:17:35,564 [6666480] DEBUG - ins.plugins.webDeployment.sftp - diffie-hellman-group14-sha1 is not available.
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEXINIT sent
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEXINIT received
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: server: ssh-rsa,ssh-dss
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: server: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: server: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: server: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: server: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: server: none,zlib@openssh.com
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: server: none,zlib@openssh.com
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: server:
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: server:
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: client: diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: client: ssh-rsa,ssh-dss
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: client: hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: client: zlib,none
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: client: zlib,none
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: client:
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: client:
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: server->client aes128-ctr hmac-md5 none
2014-08-21 10:17:35,565 [6666481] DEBUG - ins.plugins.webDeployment.sftp - kex: client->server aes128-ctr hmac-md5 none
2014-08-21 10:17:35,567 [6666483] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_KEXDH_INIT sent
2014-08-21 10:17:35,567 [6666483] DEBUG - ins.plugins.webDeployment.sftp - expecting SSH_MSG_KEXDH_REPLY
2014-08-21 10:17:35,572 [6666488] DEBUG - ins.plugins.webDeployment.sftp - ssh_rsa_verify: signature true
2014-08-21 10:17:35,572 [6666488] DEBUG - ins.plugins.webDeployment.sftp - Host '127.0.0.1' is known and mathces the RSA host key
2014-08-21 10:17:35,573 [6666489] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_NEWKEYS sent
2014-08-21 10:17:35,573 [6666489] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_NEWKEYS received
2014-08-21 10:17:35,573 [6666489] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_SERVICE_REQUEST sent
2014-08-21 10:17:35,574 [6666490] DEBUG - ins.plugins.webDeployment.sftp - SSH_MSG_SERVICE_ACCEPT received
2014-08-21 10:17:35,575 [6666491] DEBUG - ins.plugins.webDeployment.sftp - Authentications that can continue: gssapi-with-mic,publickey,keyboard-interactive,password
2014-08-21 10:17:35,575 [6666491] DEBUG - ins.plugins.webDeployment.sftp - Next authentication method: gssapi-with-mic
2014-08-21 10:17:36,552 [6667468] WARN - lugins.remotesdk.RemoteSdkUtil -
java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:228)
at java.util.concurrent.FutureTask.get(FutureTask.java:91)
at com.jetbrains.plugins.remotesdk.RemoteSdkUtil.testConnection(RemoteSdkUtil.java:250)
at com.jetbrains.plugins.remotesdk.RemoteSdkUtil.testConnection(RemoteSdkUtil.java:673)
at com.jetbrains.plugins.remotesdk.ui.CreateRemoteSdkForm$10.onClick(CreateRemoteSdkForm.java:591)
at com.intellij.ui.ClickListener$1.mouseReleased(ClickListener.java:73)
at java.awt.Component.processMouseEvent(Component.java:6414)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6179)
at java.awt.Container.processEvent(Container.java:2084)
at java.awt.Component.dispatchEventImpl(Component.java:4776)
at java.awt.Container.dispatchEventImpl(Container.java:2142)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4209)
at java.awt.Container.dispatchEventImpl(Container.java:2128)
at java.awt.Window.dispatchEventImpl(Window.java:2492)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:690)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:724)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:547)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:362)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
at java.awt.Dialog$1.run(Dialog.java:1049)
at java.awt.Dialog$3.run(Dialog.java:1101)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1099)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:798)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:464)
at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1570)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1537)
at com.jetbrains.php.remote.PhpRemoteInterpreterManagerImpl.addRemoteSdk(PhpRemoteInterpreterManagerImpl.java:51)
at com.jetbrains.php.config.interpreters.PhpInterpretersConfigurable$7$1.createRemote(PhpInterpretersConfigurable.java:188)
at com.jetbrains.php.config.interpreters.PhpInterpretersConfigurable$PhpInterpreterChooser$1.run(PhpInterpretersConfigurable.java:294)
at com.intellij.ui.popup.AbstractPopup$18.run(AbstractPopup.java:1334)
at com.intellij.openapi.wm.impl.FocusManagerImpl.a(FocusManagerImpl.java:654)
at com.intellij.openapi.wm.impl.FocusManagerImpl.g(FocusManagerImpl.java:635)
at com.intellij.openapi.wm.impl.FocusManagerImpl.e(FocusManagerImpl.java:605)
at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:60)
at com.intellij.openapi.wm.impl.FocusManagerImpl$IdleRunnable.runEdt(FocusManagerImpl.java:108)
at com.intellij.openapi.util.EdtRunnable$1.run(EdtRunnable.java:28)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:724)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:551)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:362)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
at java.awt.Dialog$1.run(Dialog.java:1049)
at java.awt.Dialog$3.run(Dialog.java:1101)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1099)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:798)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:464)
at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1570)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1537)
at com.jetbrains.php.ui.PhpUiUtil.editConfigurable(PhpUiUtil.java:83)
at com.jetbrains.php.config.PhpProjectConfigurableForm$1.actionPerformed(PhpProjectConfigurableForm.java:65)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6414)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6179)
at java.awt.Container.processEvent(Container.java:2084)
at java.awt.Component.dispatchEventImpl(Component.java:4776)
at java.awt.Container.dispatchEventImpl(Container.java:2142)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4209)
at java.awt.Container.dispatchEventImpl(Container.java:2128)
at java.awt.Window.dispatchEventImpl(Window.java:2492)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:690)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:724)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:547)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:362)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
at java.awt.Dialog$1.run(Dialog.java:1049)
at java.awt.Dialog$3.run(Dialog.java:1101)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1099)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:798)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:464)
at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1570)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1537)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:107)
at com.intellij.ide.MacOSApplicationProvider$Worker$1.handlePreferences(MacOSApplicationProvider.java:99)
at com.apple.eawt._AppEventLegacyHandler$2.dispatchEvent(_AppEventLegacyHandler.java:90)
at com.apple.eawt._AppEventLegacyHandler.sendEventToEachListenerUntilHandled(_AppEventLegacyHandler.java:168)
at com.apple.eawt._AppEventLegacyHandler.handlePreferences(_AppEventLegacyHandler.java:88)
at com.apple.eawt._AppEventHandler$_PreferencesDispatcher.performUsing(_AppEventHandler.java:253)
at com.apple.eawt._AppEventHandler$_PreferencesDispatcher.performUsing(_AppEventHandler.java:244)
at com.apple.eawt._AppEventHandler$_AppEventDispatcher$1.run(_AppEventHandler.java:489)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:724)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:551)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:362)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2014-08-21 10:17:40,607 [6671523] DEBUG - ins.plugins.webDeployment.sftp - Authentications that can continue: publickey,keyboard-interactive,password
2014-08-21 10:17:40,607 [6671523] DEBUG - ins.plugins.webDeployment.sftp - Next authentication method: publickey
2014-08-21 10:17:40,633 [6671549] DEBUG - ins.plugins.webDeployment.sftp - Authentication succeeded (publickey).
2014-08-21 10:17:40,633 [6671549] INFO - sdk.transport.SshRemoteSession - New ssh session created: vagrant@127.0.0.1:2222
2014-08-21 10:17:40,633 [6671549] DEBUG - ins.plugins.webDeployment.sftp - Disconnecting from 127.0.0.1 port 2222
2014-08-21 10:17:40,634 [6671550] DEBUG - ins.plugins.webDeployment.sftp - Caught an exception, leaving main loop due to Socket closed
I attached a screen shot fo the error too.
Thanks!
Attachment(s):
Screen Shot 2014-08-21 at 10.28.35.png
Please sign in to leave a comment.
Sorry for the delay in answer. DO you still get this error with latest 8.0 version? http://www.jetbrains.com/phpstorm/download/
I'm getting the same issue, selecting the "vagrant" option fails, but manaully configuring with "ssh credentials" to access the vm (see screenshot) works
Attachment(s):
screenshot.png
vagrant-remote-interpreter.log.zip
I have the same problem. I used to work on Vagrant machine with Ubuntu OS and everthing works fine, now we migrate to CentOS, and test connecton failed. Also connection failed via manaully configuring with "ssh credentials". If I do ssh vagrant@127.0.0.1 -p 2222 from the command line I have no problem connecting to my VM. Can you please help me with this?
Yes, I'm still having the same issue even after a clean OSX installation. I'm now using Phpstorm 8.0.1 (build 138.2001)
Hi!
The reason of issue is that gssapi-with-mic authentication type is not supported, and should not be allowed by our application to be used. As workaround please ensure that you are using at least java 1.7. Or as a workaround you may run it from console and input authentication data there. More discussion you may find here.
It looks like quite a nasty bug, please reply, which version of java do you use?
I'm running PHPStorm 8.0.1 on Window with Java 1.7, and am also having this issue with one Vagrant box.
I have two copies of the same Git repo both added as a project in PHPStorm, but they are currently on different branches.
The more recent branch has an update to Vagranfile because I now host the base box via Vagrant Cloud. So both boxes have the same IP address and hostname, which obviously means I can't access them both at the same time, so I always make sure only one is running. They are both Gentoo and the newer one probably have new versions of its packages installed.
So, PHPStorm will connect no problems to the original box won't connect to the newer box.
I have also tried configuring using the SSH Crendentials and can't get that to work either. I tried using both regular user/pass and PK auth. I also tried both IP and hostname. I can connect fine from Putty with any combination.
Hello,
please enable debug logging as described here, try to connect once again and create new issue on tracker with log attached. Unfortunately it's really needed to find the reason of the issue.
Sorry for my delayed reply.
I have raised https://youtrack.jetbrains.com/issue/WI-25992 with details and the log.