Tagged: ssh client
June 20, 2022 at 12:15 #38921schlomoParticipant
I’m connecting with NoMachine Enterprise Client from Mac to a Linux Terminal Server over SSH protocol.
My problem is that I need to use a
ProxyCommandto establish the SSH connection as the server is not accessible via a direct connection. To illustrate, my
~/.ssh/configlooks like this:
Host box Hostname box.some.domain ProxyCommand cloudflared access ssh --hostname %h
In this case, we are using cloudflared access to tunnel the SSH connection via the Cloudflare network.
My question is how to configure the NoMachine Enterprise Client to use the native SSH client to establish the connection and to trust the native SSH client to authenticate the connection?
In the attached screenshot you can see how a regular
sshconnection works. The stuff in the red rectangle is the effect of the ProxyCommand, which creates an authenticated tunnel to the SSH server.
Attachments:June 22, 2022 at 10:54 #38951kroyContributor
First of all close all nxplayer processes with button “Quit NoMachine player” which you can find by clicking on NoMachine icon on the system tray. This is needed to save changes in player.cfg. Configuration file you can find in
~/.nx/config/player.cfg. Key which you are looking for is “SSH client mode”. Change value from “library” to “native”. The line should look like this:
<option key="SSH client mode" value="native" />June 22, 2022 at 14:40 #38955schlomoParticipant
Thanks! That actually works. Can you please link to the documentation where this is explained? I couldn’t find that via a Google search.
Follow up question: How can I change the path that is used by the NX Client? Currently the PATH is only the bare system directories:
$ ps eww -o command 1675 | tr ' ' '\n'
And my ProxyCommand binary is of course in /opt/homebrew/bin/cloudflared.
The problem is that the SSH process spawned by the NX client can’t find that binary as the PATH is missing the Homebrew or even the /usr/local/bin directory.
Of course I could solve that with a custom SSH wrapper, I was wondering if I could solve that via NX Client configuration.
Another question: How should I configure the NX Client profile to not ask for username or password? Essentially to not ask for anything and just use the system SSH binary to deal with the connection? And also to not try to configure authentication methods?June 23, 2022 at 09:06 #38974kroyContributor
Everything you need to know is the following document in our knowledge base which gives multiple examples of what and how to configure specific items of the player.cfg and session file. Please see:
Additional information about storing the password is available here. https://kb.nomachine.com/AR01C00125
<option key="SSH Client" value="/usr/bin/ssh" />can be used to change the path to the native client. So if you want to change the env, you can create a script to do this and then spawn the ssh process by using the path of the script as the value.
You must be logged in to reply to this topic.