[jbosstools-issues] [JBoss JIRA] (JBDS-3671) sshd needs to be installed and started
Hardy Ferentschik (JIRA)
issues at jboss.org
Tue Mar 15 08:46:00 EDT 2016
[ https://issues.jboss.org/browse/JBDS-3671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177048#comment-13177048 ]
Hardy Ferentschik commented on JBDS-3671:
-----------------------------------------
Ok, here is an update. I started over and removed traces of the PowerShell and MSYS2 sshd installs. Instead I went for the Cygwin sshd approach as described here - http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm#EMBSC150.
Using this approach, I was able to configure a sshd Windows service and then use version 1.0.0 of vagrant-sshfs to mount the users home directory into the VM. I am not sure whether the PowerShell and MSYS2 really don't work or whether they did not work, due some conflicts. This would need more investigation in case we wanted to give it another try. Bottom line cygwin sshd works.
So far, I only tried the password mode. For a non-interactive approach one would need to setup key based configuration.
[~dgolovin], what's the state of the Cygwin usage in our installer? Is it currently used? If not, would it be hard to bring back? Also, what do you think about the steps described in the document above? The key is {{ssh-host-config}} which is per default interactive, but looking at the help output it seems to be able to run in an non interactive mode as well. WDYT?
> sshd needs to be installed and started
> --------------------------------------
>
> Key: JBDS-3671
> URL: https://issues.jboss.org/browse/JBDS-3671
> Project: Developer Studio (JBoss Developer Studio)
> Issue Type: Feature Request
> Components: installer
> Reporter: Hardy Ferentschik
> Labels: havoc
> Fix For: 9.1.0.CR1
>
>
> As parts of the Docker story we need to be able to mount the users home directory into the VM (as docker-machine does as well). Only this way the user can then use Docker mounts to mount for example project directories into a Docker container.
> docker-machine uses the vbguest additions for that, but we still need to determine whether this is possible for us due to potential licensing issues.
> An alternative approach is to use [sshfs|https://github.com/dustymabe/vagrant-sshfs/] and use ssh to mount the user's home directory into the VM. sshfs, however, requires a running sshd on the host. On Windows I am aware of two ways of doing that
> * Cygwin - http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm#EMBSC150
> * Win32-OpenSSH - https://github.com/PowerShell/Win32-OpenSSH
> I think the Windows ssh port would be the preferred solution, however, when testing it, the connection failed when using sshfs. I was able to simple ssh from the guest (CDK) to the host (Windows), but when using sshfs the connection would just abort. More investigation is required for using vagrant-sshfs with Win32-OpenSSH. It might just be that the Windows port is not fully functional which would leave use with the cygwin approach.
> Bottom line, if we want to use the sshfs approach as an alternative for vbguest additions, we need to get sshd installed one way or the other.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list