You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Brad Turnbough <bt...@backlundinvestment.com> on 2023/06/05 15:59:49 UTC

SSH Connections --- VMWare Hosts

Hi All,

I'm attempting to connect to VMWare ESXi 7.0 hosts from guacamole.  I'm not running anything out of the ordinary.

SSH is running and accessible from the Guacamole host.  I can log into the VMWare host via ssh from the Guacamole host (command line).

When I attempt to connect to the VMWare host via the Guacamole interface, I'm immediately given the:

"The remote desktop server encountered an error and has closed the connection.  Please try again or contact your system administrator"

I'm assuming there is a setting or something needed, but I'm not sure what that setting is.  Can someone please help?

Thanks,
Brad

Thank you,

Brad Turnbough
Senior Technology Analyst

[cid:Backlund-Investment-logo_20ce9d6e-04b9-4d73-9d17-cfc69decf4cc.gif]

P: 309.272.2739 F: 309.272.2839

www.betterbanks.com<http://www.betterbanks.com/>
www.statestreetbank.com<http://www.statestreetbank.com>

NOTICE: The information contained in this email and any document attached hereto is intended only for the named recipient(s). If you are not the intended recipient, nor the employee or agent responsible for delivering this message in confidence to the intended recipient(s), you are hereby notified that you have received this transmittal in error, and any review, dissemination, distribution or copying of this transmittal or its attachments is strictly prohibited. If you have received this transmittal and/or attachments in error, please notify me immediately by reply e-mail and then delete this message, including any attachments.



RE: SSH Connections --- VMWare Hosts

Posted by Brad Turnbough <bt...@backlundinvestment.com>.
Thanks Nick.  Much appreciated for the RDP bug mention -- we have a lot of RDP conns in guac.  I will stand by on the sidelines until a determination/fix is made on the stability of 1.5.2 (rdp bug)


Thank you,

Brad Turnbough
Senior Technology Analyst

P: 309.272.2739 F: 309.272.2839

www.betterbanks.com
www.glasfordbank.com



NOTICE: The information contained in this email and any document attached hereto is intended only for the named recipient(s). If you are not the intended recipient, nor the employee or agent responsible for delivering this message in confidence to the intended recipient(s), you are hereby notified that you have received this transmittal in error, and any review, dissemination, distribution or copying of this transmittal or its attachments is strictly prohibited. If you have received this transmittal and/or attachments in error, please notify me immediately by reply e-mail and then delete this message, including any attachments.

www.statestreetbank.com-----Original Message-----
From: Nick Couchman <vn...@apache.org>
Sent: Wednesday, June 7, 2023 10:40 AM
To: user@guacamole.apache.org
Subject: Re: SSH Connections --- VMWare Hosts

External email. Please make sure you trust this source before clicking links or opening attachments.


On Wed, Jun 7, 2023 at 11:37 AM Brad Turnbough <bt...@backlundinvestment.com> wrote:
>
> Yeah, Ubuntu 22.04 (the next LTS) has libssh2 version 1.10.  I was holding off on upgrading to that OS version until absolutely necessary.  Might be a good idea now (now that I also have to upgrade to Guac 1.5.2 to address the security bug).
>

Yeah, makes sense - clearly I'm still running CentOS7 because I'm trying to avoid upgrading the O/S, as well, but might be time.

Also, 1.5.2 has a bug that impacts at least some folks using RDP connections. Might be related to certain versions of FreeRDP - it's unclear at the moment.

https://issues.apache.org/jira/browse/GUACAMOLE-1802
https://github.com/apache/guacamole-server/pull/445

-Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: SSH Connections --- VMWare Hosts

Posted by Nick Couchman <vn...@apache.org>.
On Wed, Jun 7, 2023 at 11:37 AM Brad Turnbough
<bt...@backlundinvestment.com> wrote:
>
> Yeah, Ubuntu 22.04 (the next LTS) has libssh2 version 1.10.  I was holding off on upgrading to that OS version until absolutely necessary.  Might be a good idea now (now that I also have to upgrade to Guac 1.5.2 to address the security bug).
>

Yeah, makes sense - clearly I'm still running CentOS7 because I'm
trying to avoid upgrading the O/S, as well, but might be time.

Also, 1.5.2 has a bug that impacts at least some folks using RDP
connections. Might be related to certain versions of FreeRDP - it's
unclear at the moment.

https://issues.apache.org/jira/browse/GUACAMOLE-1802
https://github.com/apache/guacamole-server/pull/445

-Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


RE: SSH Connections --- VMWare Hosts

Posted by Brad Turnbough <bt...@backlundinvestment.com>.
Yeah, Ubuntu 22.04 (the next LTS) has libssh2 version 1.10.  I was holding off on upgrading to that OS version until absolutely necessary.  Might be a good idea now (now that I also have to upgrade to Guac 1.5.2 to address the security bug).

Brad


Thank you,

Brad Turnbough
Senior Technology Analyst

P: 309.272.2739 F: 309.272.2839

www.betterbanks.com
www.glasfordbank.com



NOTICE: The information contained in this email and any document attached hereto is intended only for the named recipient(s). If you are not the intended recipient, nor the employee or agent responsible for delivering this message in confidence to the intended recipient(s), you are hereby notified that you have received this transmittal in error, and any review, dissemination, distribution or copying of this transmittal or its attachments is strictly prohibited. If you have received this transmittal and/or attachments in error, please notify me immediately by reply e-mail and then delete this message, including any attachments.

www.statestreetbank.com-----Original Message-----
From: Nick Couchman <vn...@apache.org>
Sent: Wednesday, June 7, 2023 10:16 AM
To: user@guacamole.apache.org
Subject: Re: SSH Connections --- VMWare Hosts

On Wed, Jun 7, 2023 at 10:52 AM Brad Turnbough
<bt...@backlundinvestment.com> wrote:
>
> All,
>
> It appears I've been able to make it work (albeit a bit less secure...)
>
> Doing a bit of digging on the ESXi side....
> 2023-06-07T14:43:03.793Z sshd[2124552]: FIPS mode initialized
> 2023-06-07T14:43:03.793Z sshd[2124552]: Connection from X.Y.Z.A port 52678
> 2023-06-07T14:43:03.796Z sshd[2124552]: Unable to negotiate with X.Y.Z.A port 52678: no matching host key type found. Their offer: ssh-rsa,ssh-dss [preauth]
>
>
> On ESXi 7 hosts, you may need to edit /etc/ssh/sshd_config
>
> In my case, I needed to add ssh-rsa to HostKeyAlgorithms.
>
> I then restarted the SSH service:
> /etc/init.d/SSH restart
>
>
> Notes:  By default (to my knowledge).... the settings of ESXi7 hosts are:
>
> HostKeyAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512
>
>
> Are there any plans to support more secure HostKeyAlgorithms?
>

This is dependent on the libssh2 version, which is why I was asking
about that. Guacamole doesn't control the host key algorithms, it
depends on the underlying libssh2 library to support it, so you'll
need to upgrade that library.

My CentOS 7 system had 1.8.0 installed, similar to your Ubuntu 20
system, and I ended up just downloading the latest libssh2 (1.11.0)
and compiling it, then recompiling guacd and pointing it at the
install path of the new libssh2 version. It seems to work fine with
that change.

Alternatively you can run a different Linux distro for guacd that has
the later libssh2 version already available - I would imagine later
versions of Ubuntu have a later version, and I know RHEL/CentOS/Rocky
8 do, as well.

-Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: SSH Connections --- VMWare Hosts

Posted by Nick Couchman <vn...@apache.org>.
On Wed, Jun 7, 2023 at 10:52 AM Brad Turnbough
<bt...@backlundinvestment.com> wrote:
>
> All,
>
> It appears I've been able to make it work (albeit a bit less secure...)
>
> Doing a bit of digging on the ESXi side....
> 2023-06-07T14:43:03.793Z sshd[2124552]: FIPS mode initialized
> 2023-06-07T14:43:03.793Z sshd[2124552]: Connection from X.Y.Z.A port 52678
> 2023-06-07T14:43:03.796Z sshd[2124552]: Unable to negotiate with X.Y.Z.A port 52678: no matching host key type found. Their offer: ssh-rsa,ssh-dss [preauth]
>
>
> On ESXi 7 hosts, you may need to edit /etc/ssh/sshd_config
>
> In my case, I needed to add ssh-rsa to HostKeyAlgorithms.
>
> I then restarted the SSH service:
> /etc/init.d/SSH restart
>
>
> Notes:  By default (to my knowledge).... the settings of ESXi7 hosts are:
>
> HostKeyAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512
>
>
> Are there any plans to support more secure HostKeyAlgorithms?
>

This is dependent on the libssh2 version, which is why I was asking
about that. Guacamole doesn't control the host key algorithms, it
depends on the underlying libssh2 library to support it, so you'll
need to upgrade that library.

My CentOS 7 system had 1.8.0 installed, similar to your Ubuntu 20
system, and I ended up just downloading the latest libssh2 (1.11.0)
and compiling it, then recompiling guacd and pointing it at the
install path of the new libssh2 version. It seems to work fine with
that change.

Alternatively you can run a different Linux distro for guacd that has
the later libssh2 version already available - I would imagine later
versions of Ubuntu have a later version, and I know RHEL/CentOS/Rocky
8 do, as well.

-Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


RE: SSH Connections --- VMWare Hosts

Posted by Brad Turnbough <bt...@backlundinvestment.com>.
All,

It appears I've been able to make it work (albeit a bit less secure...)

Doing a bit of digging on the ESXi side....
2023-06-07T14:43:03.793Z sshd[2124552]: FIPS mode initialized
2023-06-07T14:43:03.793Z sshd[2124552]: Connection from X.Y.Z.A port 52678
2023-06-07T14:43:03.796Z sshd[2124552]: Unable to negotiate with X.Y.Z.A port 52678: no matching host key type found. Their offer: ssh-rsa,ssh-dss [preauth]


On ESXi 7 hosts, you may need to edit /etc/ssh/sshd_config

In my case, I needed to add ssh-rsa to HostKeyAlgorithms.

I then restarted the SSH service:
/etc/init.d/SSH restart


Notes:  By default (to my knowledge).... the settings of ESXi7 hosts are:

HostKeyAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512


Are there any plans to support more secure HostKeyAlgorithms?




Thank you,

Brad Turnbough
Senior Technology Analyst

P: 309.272.2739 F: 309.272.2839

www.betterbanks.com
www.glasfordbank.com



NOTICE: The information contained in this email and any document attached hereto is intended only for the named recipient(s). If you are not the intended recipient, nor the employee or agent responsible for delivering this message in confidence to the intended recipient(s), you are hereby notified that you have received this transmittal in error, and any review, dissemination, distribution or copying of this transmittal or its attachments is strictly prohibited. If you have received this transmittal and/or attachments in error, please notify me immediately by reply e-mail and then delete this message, including any attachments.

www.statestreetbank.com-----Original Message-----
From: Brad Turnbough <bt...@backlundinvestment.com>
Sent: Wednesday, June 7, 2023 8:22 AM
To: user@guacamole.apache.org
Subject: RE: SSH Connections --- VMWare Hosts

Here is my versioning information.  (Ubuntu 20.04 fully patched):

dpkg -l | grep libssh2
ii  libssh2-1:amd64                       1.8.0-2.1build1                   amd64        SSH2 client-side library
ii  libssh2-1-dev:amd64                   1.8.0-2.1build1                   amd64        SSH2 client-side library (development headers)

Looks like they don’t have an updated package for it.  UGH.  I either have to roll my own or I have to upgrade OS versions.

The next version of libssh2 they have is 1.10.  Do you think that'll suffice?




Thank you,

Brad Turnbough
Senior Technology Analyst

P: 309.272.2739 F: 309.272.2839

www.betterbanks.com
www.glasfordbank.com



NOTICE: The information contained in this email and any document attached hereto is intended only for the named recipient(s). If you are not the intended recipient, nor the employee or agent responsible for delivering this message in confidence to the intended recipient(s), you are hereby notified that you have received this transmittal in error, and any review, dissemination, distribution or copying of this transmittal or its attachments is strictly prohibited. If you have received this transmittal and/or attachments in error, please notify me immediately by reply e-mail and then delete this message, including any attachments.

www.statestreetbank.com-----Original Message-----
From: Nick Couchman <vn...@apache.org>
Sent: Tuesday, June 6, 2023 8:44 PM
To: user@guacamole.apache.org
Subject: Re: SSH Connections --- VMWare Hosts

On Tue, Jun 6, 2023 at 9:34 PM Nick Couchman <vn...@apache.org> wrote:
>
> On Tue, Jun 6, 2023 at 1:56 PM Brad Turnbough
> <bt...@backlundinvestment.com> wrote:
> >
> > Hi Nick,
> >
> >
> >
> > Thanks for looking into this.  Is there any more information you need from me in order to look into this?
> >
>
> Can you confirm what platform you're running guacd on, and,
> specifically what your libssh2 version is? I can reproduce the issue
> consistently on my CentOS 7-based system, but I'm not seeing it on my
> CentOS 8 Stream system. I suspect it has to do with the capabilities
> of the libssh2 library and how the VMware SSH server is configured.
>

I updated the libssh2 library on my CentOS7 system from 1.8.0 (the package included with the system) to 1.11.0 (the latest release on the website), and then recompiled guacd against that new version of libssh2, and it seems to be working okay for me, now.

-NIck

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org

B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[
�\�\�][��X��ܚX�P�XX�[[�K�\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[
�\�\�Z[�XX�[[�K�\X�K�ܙ�B

RE: SSH Connections --- VMWare Hosts

Posted by Brad Turnbough <bt...@backlundinvestment.com>.
Here is my versioning information.  (Ubuntu 20.04 fully patched):

dpkg -l | grep libssh2
ii  libssh2-1:amd64                       1.8.0-2.1build1                   amd64        SSH2 client-side library
ii  libssh2-1-dev:amd64                   1.8.0-2.1build1                   amd64        SSH2 client-side library (development headers)

Looks like they don’t have an updated package for it.  UGH.  I either have to roll my own or I have to upgrade OS versions.

The next version of libssh2 they have is 1.10.  Do you think that'll suffice?




Thank you,

Brad Turnbough
Senior Technology Analyst

P: 309.272.2739 F: 309.272.2839

www.betterbanks.com
www.glasfordbank.com



NOTICE: The information contained in this email and any document attached hereto is intended only for the named recipient(s). If you are not the intended recipient, nor the employee or agent responsible for delivering this message in confidence to the intended recipient(s), you are hereby notified that you have received this transmittal in error, and any review, dissemination, distribution or copying of this transmittal or its attachments is strictly prohibited. If you have received this transmittal and/or attachments in error, please notify me immediately by reply e-mail and then delete this message, including any attachments.

www.statestreetbank.com-----Original Message-----
From: Nick Couchman <vn...@apache.org>
Sent: Tuesday, June 6, 2023 8:44 PM
To: user@guacamole.apache.org
Subject: Re: SSH Connections --- VMWare Hosts

On Tue, Jun 6, 2023 at 9:34 PM Nick Couchman <vn...@apache.org> wrote:
>
> On Tue, Jun 6, 2023 at 1:56 PM Brad Turnbough
> <bt...@backlundinvestment.com> wrote:
> >
> > Hi Nick,
> >
> >
> >
> > Thanks for looking into this.  Is there any more information you need from me in order to look into this?
> >
>
> Can you confirm what platform you're running guacd on, and,
> specifically what your libssh2 version is? I can reproduce the issue
> consistently on my CentOS 7-based system, but I'm not seeing it on my
> CentOS 8 Stream system. I suspect it has to do with the capabilities
> of the libssh2 library and how the VMware SSH server is configured.
>

I updated the libssh2 library on my CentOS7 system from 1.8.0 (the package included with the system) to 1.11.0 (the latest release on the website), and then recompiled guacd against that new version of libssh2, and it seems to be working okay for me, now.

-NIck

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: SSH Connections --- VMWare Hosts

Posted by Nick Couchman <vn...@apache.org>.
On Tue, Jun 6, 2023 at 9:34 PM Nick Couchman <vn...@apache.org> wrote:
>
> On Tue, Jun 6, 2023 at 1:56 PM Brad Turnbough
> <bt...@backlundinvestment.com> wrote:
> >
> > Hi Nick,
> >
> >
> >
> > Thanks for looking into this.  Is there any more information you need from me in order to look into this?
> >
>
> Can you confirm what platform you're running guacd on, and,
> specifically what your libssh2 version is? I can reproduce the issue
> consistently on my CentOS 7-based system, but I'm not seeing it on my
> CentOS 8 Stream system. I suspect it has to do with the capabilities
> of the libssh2 library and how the VMware SSH server is configured.
>

I updated the libssh2 library on my CentOS7 system from 1.8.0 (the
package included with the system) to 1.11.0 (the latest release on the
website), and then recompiled guacd against that new version of
libssh2, and it seems to be working okay for me, now.

-NIck

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: SSH Connections --- VMWare Hosts

Posted by Nick Couchman <vn...@apache.org>.
On Tue, Jun 6, 2023 at 1:56 PM Brad Turnbough
<bt...@backlundinvestment.com> wrote:
>
> Hi Nick,
>
>
>
> Thanks for looking into this.  Is there any more information you need from me in order to look into this?
>

Can you confirm what platform you're running guacd on, and,
specifically what your libssh2 version is? I can reproduce the issue
consistently on my CentOS 7-based system, but I'm not seeing it on my
CentOS 8 Stream system. I suspect it has to do with the capabilities
of the libssh2 library and how the VMware SSH server is configured.

-Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


RE: SSH Connections --- VMWare Hosts

Posted by Brad Turnbough <bt...@backlundinvestment.com>.
Hi Nick,

Thanks for looking into this.  Is there any more information you need from me in order to look into this?

Thank you!!!
Brad


Thank you,

Brad Turnbough
Senior Technology Analyst

[cid:Backlund-Investment-logo_20ce9d6e-04b9-4d73-9d17-cfc69decf4cc.gif]

P: 309.272.2739 F: 309.272.2839

www.betterbanks.com<http://www.betterbanks.com/>
www.statestreetbank.com<http://www.statestreetbank.com>

NOTICE: The information contained in this email and any document attached hereto is intended only for the named recipient(s). If you are not the intended recipient, nor the employee or agent responsible for delivering this message in confidence to the intended recipient(s), you are hereby notified that you have received this transmittal in error, and any review, dissemination, distribution or copying of this transmittal or its attachments is strictly prohibited. If you have received this transmittal and/or attachments in error, please notify me immediately by reply e-mail and then delete this message, including any attachments.


From: Nick Couchman <vn...@apache.org>
Sent: Monday, June 5, 2023 11:05 AM
To: user@guacamole.apache.org
Subject: Re: SSH Connections --- VMWare Hosts

On Mon, Jun 5, 2023 at 12:00 PM Brad Turnbough <bt...@backlundinvestment.com>> wrote:
Hi All,

I’m attempting to connect to VMWare ESXi 7.0 hosts from guacamole.  I’m not running anything out of the ordinary.

SSH is running and accessible from the Guacamole host.  I can log into the VMWare host via ssh from the Guacamole host (command line).

When I attempt to connect to the VMWare host via the Guacamole interface, I’m immediately given the:

“The remote desktop server encountered an error and has closed the connection.  Please try again or contact your system administrator”

I’m assuming there is a setting or something needed, but I’m not sure what that setting is.  Can someone please help?


I just tried it out in my environment, and I'm getting similar results. I'll have to do a little digging and see if I can figure out what's going on. The message from guacd is:

Jun 05 12:03:25 guacserver guacd[92228]: Creating new client for protocol "ssh"
Jun 05 12:03:25 guacserver guacd[92228]: guacd[92228]: INFO:        Creating new client for protocol "ssh"
Jun 05 12:03:25 guacserver guacd[92228]: Connection ID is "$b22f074f-033b-4492-bf53-038a5814f3a4"
Jun 05 12:03:25 guacserver guacd[92228]: guacd[92228]: INFO:        Connection ID is "$b22f074f-033b-4492-bf53-038a5814f3a4"
Jun 05 12:03:25 guacserver guacd[66229]: User "@d5a6c8e0-5769-4171-b7da-1bc01361fc1e" joined connection "$b22f074f-033b-4492-bf53-038a5814f3a4" (1 users now present)
Jun 05 12:03:25 guacserver guacd[92228]: guacd[66229]: INFO:        User "@d5a6c8e0-5769-4171-b7da-1bc01361fc1e" joined connection "$b22f074f-033b-4492-bf53-038a5814f3a4" (1 users now present)
Jun 05 12:03:27 guacserver guacd[66229]: SSH handshake failed.
Jun 05 12:03:27 guacserver guacd[92228]: guacd[66229]: ERROR:        SSH handshake failed.

-Nick

Re: SSH Connections --- VMWare Hosts

Posted by Aaron Newsome <aa...@gmail.com>.
ssh to ESXi 8.0.1 seems to work fine. results from guacd:

guacd[1]: INFO: Creating new client for protocol "ssh"
guacd[1]: INFO: Connection ID is "$866254f7-701e-4044-9956-0accf4a64f36"
guacd[11929]: INFO: User "@da892a24-604e-434b-9bf9-9cd4d900592e" joined
connection "$866254f7-701e-4044-9956-0accf4a64f36" (1 users now present)
guacd[11929]: WARNING: No known host keys provided, host identity will not
be verified.
guacd[11929]: WARNING: Unsupported number of keyboard-interactive prompts: 0
guacd[11929]: WARNING: Unable to set the timezone: SSH server refused to
set "TZ" variable.
guacd[11929]: INFO: SSH connection successful.

On Mon, Jun 5, 2023 at 11:05 AM Nick Couchman <vn...@apache.org> wrote:

> On Mon, Jun 5, 2023 at 12:00 PM Brad Turnbough <
> bturnbough@backlundinvestment.com> wrote:
>
>> Hi All,
>>
>>
>>
>> I’m attempting to connect to VMWare ESXi 7.0 hosts from guacamole.  I’m
>> not running anything out of the ordinary.
>>
>>
>>
>> SSH is running and accessible from the Guacamole host.  I can log into
>> the VMWare host via ssh from the Guacamole host (command line).
>>
>>
>>
>> When I attempt to connect to the VMWare host via the Guacamole interface,
>> I’m immediately given the:
>>
>>
>>
>> “The remote desktop server encountered an error and has closed the
>> connection.  Please try again or contact your system administrator”
>>
>>
>>
>> I’m assuming there is a setting or something needed, but I’m not sure
>> what that setting is.  Can someone please help?
>>
>>
>>
>
> I just tried it out in my environment, and I'm getting similar results.
> I'll have to do a little digging and see if I can figure out what's going
> on. The message from guacd is:
>
> Jun 05 12:03:25 guacserver guacd[92228]: Creating new client for protocol
> "ssh"
> Jun 05 12:03:25 guacserver guacd[92228]: guacd[92228]: INFO:
>  Creating new client for protocol "ssh"
> Jun 05 12:03:25 guacserver guacd[92228]: Connection ID is
> "$b22f074f-033b-4492-bf53-038a5814f3a4"
> Jun 05 12:03:25 guacserver guacd[92228]: guacd[92228]: INFO:
>  Connection ID is "$b22f074f-033b-4492-bf53-038a5814f3a4"
> Jun 05 12:03:25 guacserver guacd[66229]: User
> "@d5a6c8e0-5769-4171-b7da-1bc01361fc1e" joined connection
> "$b22f074f-033b-4492-bf53-038a5814f3a4" (1 users now present)
> Jun 05 12:03:25 guacserver guacd[92228]: guacd[66229]: INFO:        User
> "@d5a6c8e0-5769-4171-b7da-1bc01361fc1e" joined connection
> "$b22f074f-033b-4492-bf53-038a5814f3a4" (1 users now present)
> Jun 05 12:03:27 guacserver guacd[66229]: SSH handshake failed.
> Jun 05 12:03:27 guacserver guacd[92228]: guacd[66229]: ERROR:        SSH
> handshake failed.
>
> -Nick
>
>>

Re: SSH Connections --- VMWare Hosts

Posted by Nick Couchman <vn...@apache.org>.
On Mon, Jun 5, 2023 at 12:00 PM Brad Turnbough <
bturnbough@backlundinvestment.com> wrote:

> Hi All,
>
>
>
> I’m attempting to connect to VMWare ESXi 7.0 hosts from guacamole.  I’m
> not running anything out of the ordinary.
>
>
>
> SSH is running and accessible from the Guacamole host.  I can log into the
> VMWare host via ssh from the Guacamole host (command line).
>
>
>
> When I attempt to connect to the VMWare host via the Guacamole interface,
> I’m immediately given the:
>
>
>
> “The remote desktop server encountered an error and has closed the
> connection.  Please try again or contact your system administrator”
>
>
>
> I’m assuming there is a setting or something needed, but I’m not sure what
> that setting is.  Can someone please help?
>
>
>

I just tried it out in my environment, and I'm getting similar results.
I'll have to do a little digging and see if I can figure out what's going
on. The message from guacd is:

Jun 05 12:03:25 guacserver guacd[92228]: Creating new client for protocol
"ssh"
Jun 05 12:03:25 guacserver guacd[92228]: guacd[92228]: INFO:
 Creating new client for protocol "ssh"
Jun 05 12:03:25 guacserver guacd[92228]: Connection ID is
"$b22f074f-033b-4492-bf53-038a5814f3a4"
Jun 05 12:03:25 guacserver guacd[92228]: guacd[92228]: INFO:
 Connection ID is "$b22f074f-033b-4492-bf53-038a5814f3a4"
Jun 05 12:03:25 guacserver guacd[66229]: User
"@d5a6c8e0-5769-4171-b7da-1bc01361fc1e" joined connection
"$b22f074f-033b-4492-bf53-038a5814f3a4" (1 users now present)
Jun 05 12:03:25 guacserver guacd[92228]: guacd[66229]: INFO:        User
"@d5a6c8e0-5769-4171-b7da-1bc01361fc1e" joined connection
"$b22f074f-033b-4492-bf53-038a5814f3a4" (1 users now present)
Jun 05 12:03:27 guacserver guacd[66229]: SSH handshake failed.
Jun 05 12:03:27 guacserver guacd[92228]: guacd[66229]: ERROR:        SSH
handshake failed.

-Nick

>

RE: SSH Connections --- VMWare Hosts

Posted by Justin VanAbrahams <jv...@abico.com>.
I don’t mean to take us too far off course, but can you explain how “private VLAN” and “air gap” can coexist real quick?



From: Sean Hulbert <sh...@securitycentric.net.INVALID>
Sent: Monday, June 5, 2023 10:07 AM
To: user@guacamole.apache.org
Subject: RE: SSH Connections --- VMWare Hosts

Hello Nick
thank you, I think I will agree to disagree.

Well I did leave out all the security implemented, however we did pass the FedRAMP MIL4 and HIPAA audits with our implementation.
Lets hope you are running a layer 7 firewall on your Edge and micro firewalls in front of the ingress end points or it will be a another tragic story on the news.

You want a Jump VM as a degree of separation in an isolated network which is can have internal MFA enabled on it; not just TOTP with Guac, By going from guac to VMware you have no separation/segmentation.   There is nothing wrong having a standalone Windows server as a utility VM or even Linux system, using private vlans to help air gap the connections.


Thank You
Sean Hulbert

Founder / CEO
Work Ph: 925.663.5565

Security Centric Inc.
A Cybersecurity Virtualization Enablement Company
StormCloud Gov, Protected CUI Environment!

 [SCILOGOMSP450]
FedRAMP MIL4 in process
System Award Management
CAGE: 8AUV4

AFCEA San Francisco Chapter President

If you have heard of a hacker by name, he/she has failed, fear the hacker you haven’t heard of!

CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally privileged information. It is solely for the use of the intended recipient(s). Unauthorized interception, review, use or disclosure is prohibited and may violate applicable laws including the Electronic Communications Privacy Act. If you are not the intended recipient, please contact the sender and destroy all copies of the communication. Content within this email communication is not legally binding as a contract and no promises are guaranteed unless in a formal contract outside this email communication.

igitur qui desiderat pacem, praeparet bellum!!!

Epitoma Rei Militaris

From: Nick Couchman [mailto:vnick@apache.org]
Sent: Monday, June 5, 2023 9:34 AM
To: user@guacamole.apache.org<ma...@guacamole.apache.org>
Subject: Re: SSH Connections --- VMWare Hosts



On Mon, Jun 5, 2023 at 12:32 PM Sean Hulbert <sh...@securitycentric.net.invalid>> wrote:
It is fundamentally a bad idea to go directly to your HOST VMware server, you should use a jumper (utility) VM with connection to the Host on the backend, like windows server 2019 or 2022.


1) Guacamole _is_ the jump/utility VM.
2) In my estimation, it is a fundamentally bad idea to set up a Windows-based server just to log in to UNIX/Linux/ESX servers.

-Nick

RE: SSH Connections --- VMWare Hosts

Posted by Sean Hulbert <sh...@securitycentric.net.INVALID>.
Hello Nick 

thank you, I think I will agree to disagree. 

 

Well I did leave out all the security implemented, however we did pass the FedRAMP MIL4 and HIPAA audits with our implementation. 

Lets hope you are running a layer 7 firewall on your Edge and micro firewalls in front of the ingress end points or it will be a another tragic story on the news. 

 

You want a Jump VM as a degree of separation in an isolated network which is can have internal MFA enabled on it; not just TOTP with Guac, By going from guac to VMware you have no separation/segmentation.   There is nothing wrong having a standalone Windows server as a utility VM or even Linux system, using private vlans to help air gap the connections.   

 

 

Thank You

Sean Hulbert

 

Founder / CEO

Work Ph: 925.663.5565

 

Security Centric Inc.

A Cybersecurity Virtualization Enablement Company

StormCloud Gov, Protected CUI Environment!

 

 

FedRAMP MIL4 in process

System Award Management

CAGE: 8AUV4

 

AFCEA San Francisco Chapter President

 

If you have heard of a hacker by name, he/she has failed, fear the hacker you haven’t heard of!

 

CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally privileged information. It is solely for the use of the intended recipient(s). Unauthorized interception, review, use or disclosure is prohibited and may violate applicable laws including the Electronic Communications Privacy Act. If you are not the intended recipient, please contact the sender and destroy all copies of the communication. Content within this email communication is not legally binding as a contract and no promises are guaranteed unless in a formal contract outside this email communication.

 

igitur qui desiderat pacem, praeparet bellum!!!

Epitoma Rei Militaris

 

From: Nick Couchman [mailto:vnick@apache.org] 
Sent: Monday, June 5, 2023 9:34 AM
To: user@guacamole.apache.org
Subject: Re: SSH Connections --- VMWare Hosts

 

 

 

On Mon, Jun 5, 2023 at 12:32 PM Sean Hulbert <shulbert@securitycentric.net.invalid <ma...@securitycentric.net.invalid> > wrote:

It is fundamentally a bad idea to go directly to your HOST VMware server, you should use a jumper (utility) VM with connection to the Host on the backend, like windows server 2019 or 2022.

 

 

1) Guacamole _is_ the jump/utility VM.

2) In my estimation, it is a fundamentally bad idea to set up a Windows-based server just to log in to UNIX/Linux/ESX servers.

 

-Nick


Re: SSH Connections --- VMWare Hosts

Posted by Nick Couchman <vn...@apache.org>.
On Mon, Jun 5, 2023 at 12:32 PM Sean Hulbert
<sh...@securitycentric.net.invalid> wrote:

> It is fundamentally a bad idea to go directly to your HOST VMware server,
> you should use a jumper (utility) VM with connection to the Host on the
> backend, like windows server 2019 or 2022.
>
>
>

1) Guacamole _is_ the jump/utility VM.
2) In my estimation, it is a fundamentally bad idea to set up a
Windows-based server just to log in to UNIX/Linux/ESX servers.

-Nick

RE: SSH Connections --- VMWare Hosts

Posted by Brad Turnbough <bt...@backlundinvestment.com>.
I hear what you're saying, however in this case ..... Guacamole IS the jumper host.

Guacamole is on a network segment completely firewalled with full IDS/IPS rulesets.




Thank you,

Brad Turnbough
Senior Technology Analyst

[cid:Backlund-Investment-logo_20ce9d6e-04b9-4d73-9d17-cfc69decf4cc.gif]

P: 309.272.2739 F: 309.272.2839

www.betterbanks.com<http://www.betterbanks.com/>
www.statestreetbank.com<http://www.statestreetbank.com>

NOTICE: The information contained in this email and any document attached hereto is intended only for the named recipient(s). If you are not the intended recipient, nor the employee or agent responsible for delivering this message in confidence to the intended recipient(s), you are hereby notified that you have received this transmittal in error, and any review, dissemination, distribution or copying of this transmittal or its attachments is strictly prohibited. If you have received this transmittal and/or attachments in error, please notify me immediately by reply e-mail and then delete this message, including any attachments.


From: Sean Hulbert <sh...@securitycentric.net.INVALID>
Sent: Monday, June 5, 2023 11:30 AM
To: user@guacamole.apache.org
Subject: RE: SSH Connections --- VMWare Hosts

It is fundamentally a bad idea to go directly to your HOST VMware server, you should use a jumper (utility) VM with connection to the Host on the backend, like windows server 2019 or 2022.



Thank You
Sean Hulbert


From: Brad Turnbough [mailto:bturnbough@backlundinvestment.com]
Sent: Monday, June 5, 2023 9:00 AM
To:user@guacamole.apache.org<ma...@guacamole.apache.org>
Subject: SSH Connections --- VMWare Hosts

Hi All,

I'm attempting to connect to VMWare ESXi 7.0 hosts from guacamole.  I'm not running anything out of the ordinary.

SSH is running and accessible from the Guacamole host.  I can log into the VMWare host via ssh from the Guacamole host (command line).

When I attempt to connect to the VMWare host via the Guacamole interface, I'm immediately given the:

"The remote desktop server encountered an error and has closed the connection.  Please try again or contact your system administrator"

I'm assuming there is a setting or something needed, but I'm not sure what that setting is.  Can someone please help?

Thanks,
Brad

RE: SSH Connections --- VMWare Hosts

Posted by Aaron Meyer <am...@meyertech.net>.
Sean, I think I would agree with Brad using Guac as an access method to the
ESXi SSH consoles as a better security stance.

 

1.	ESXi host firewalls can be configured to only allow SSH from those
guac sources.
2.	Guac as of 1.5.1 can be configured to record user interaction
sessions.
3.	Guac history can show what users are accessing ESXi as root.
4.	If you're using a secrets store users won't need to know root
passwords.

 

All that said however I don't know why Brad's having the connection issues.

 

From: Sean Hulbert <sh...@securitycentric.net.INVALID> 
Sent: Monday, June 5, 2023 11:30 AM
To: user@guacamole.apache.org
Subject: RE: SSH Connections --- VMWare Hosts

 

It is fundamentally a bad idea to go directly to your HOST VMware server,
you should use a jumper (utility) VM with connection to the Host on the
backend, like windows server 2019 or 2022.

 

 

 

Thank You

Sean Hulbert

 

 

From: Brad Turnbough [mailto:bturnbough@backlundinvestment.com] 
Sent: Monday, June 5, 2023 9:00 AM
To: user@guacamole.apache.org <ma...@guacamole.apache.org> 
Subject: SSH Connections --- VMWare Hosts

 

Hi All,

 

I'm attempting to connect to VMWare ESXi 7.0 hosts from guacamole.  I'm not
running anything out of the ordinary.

 

SSH is running and accessible from the Guacamole host.  I can log into the
VMWare host via ssh from the Guacamole host (command line).

 

When I attempt to connect to the VMWare host via the Guacamole interface,
I'm immediately given the:

 

"The remote desktop server encountered an error and has closed the
connection.  Please try again or contact your system administrator"

 

I'm assuming there is a setting or something needed, but I'm not sure what
that setting is.  Can someone please help?

 

Thanks,

Brad

Thank you,

Brad Turnbough
Senior Technology Analyst 



P: 309.272.2739 F: 309.272.2839 

www.betterbanks.com <http://www.betterbanks.com/> 
www.statestreetbank.com <http://www.statestreetbank.com>  

NOTICE: The information contained in this email and any document attached
hereto is intended only for the named recipient(s). If you are not the
intended recipient, nor the employee or agent responsible for delivering
this message in confidence to the intended recipient(s), you are hereby
notified that you have received this transmittal in error, and any review,
dissemination, distribution or copying of this transmittal or its
attachments is strictly prohibited. If you have received this transmittal
and/or attachments in error, please notify me immediately by reply e-mail
and then delete this message, including any attachments. 

 


RE: SSH Connections --- VMWare Hosts

Posted by Sean Hulbert <sh...@securitycentric.net.INVALID>.
It is fundamentally a bad idea to go directly to your HOST VMware server,
you should use a jumper (utility) VM with connection to the Host on the
backend, like windows server 2019 or 2022.

 

 

 

Thank You

Sean Hulbert

 

 

From: Brad Turnbough [mailto:bturnbough@backlundinvestment.com] 
Sent: Monday, June 5, 2023 9:00 AM
To: user@guacamole.apache.org
Subject: SSH Connections --- VMWare Hosts

 

Hi All,

 

I'm attempting to connect to VMWare ESXi 7.0 hosts from guacamole.  I'm not
running anything out of the ordinary.

 

SSH is running and accessible from the Guacamole host.  I can log into the
VMWare host via ssh from the Guacamole host (command line).

 

When I attempt to connect to the VMWare host via the Guacamole interface,
I'm immediately given the:

 

"The remote desktop server encountered an error and has closed the
connection.  Please try again or contact your system administrator"

 

I'm assuming there is a setting or something needed, but I'm not sure what
that setting is.  Can someone please help?

 

Thanks,

Brad

Thank you,

Brad Turnbough
Senior Technology Analyst 



P: 309.272.2739 F: 309.272.2839 

www.betterbanks.com <http://www.betterbanks.com/> 
www.statestreetbank.com <http://www.statestreetbank.com>  

NOTICE: The information contained in this email and any document attached
hereto is intended only for the named recipient(s). If you are not the
intended recipient, nor the employee or agent responsible for delivering
this message in confidence to the intended recipient(s), you are hereby
notified that you have received this transmittal in error, and any review,
dissemination, distribution or copying of this transmittal or its
attachments is strictly prohibited. If you have received this transmittal
and/or attachments in error, please notify me immediately by reply e-mail
and then delete this message, including any attachments.