Forum / NoMachine Cloud Server Products / Enabling SSH on server
- This topic has 12 replies, 3 voices, and was last updated 9 years, 8 months ago by hawk.
-
AuthorPosts
-
January 26, 2015 at 09:48 #6039venkatsParticipant
When I try to connect to an NX server using ssh (which is a workstation edition) the client says “Running NoMachine over a ssh connection is disabled on this server…..”. How I enable NX to use ssh on the server?
January 27, 2015 at 11:50 #6053hawkParticipantHello,
did you install the Workstation from scratch or was it an update?
Please tell me also operating system and version of the machine
where the Workstation is installed (e.g. Ubuntu 14.04).Additionally, provide the nxinstall.log file.
It’s in the /usr/NX/var/log/ directory.February 9, 2015 at 10:45 #6214venkatsParticipantIt was an install from scratch, but after uninstalling a prior trial version. Attached are the install logs.
February 9, 2015 at 11:01 #6223BritgirlKeymasterPlease send the logs to forum[at]nomachine[dot]com
March 3, 2015 at 09:54 #6469venkatsParticipantI have sent the logs to forum[at]nomachine[dot]com
March 4, 2015 at 10:13 #6503hawkParticipantAfter NoMachine uninstall, configuration files are backed up and left in /usr/NX/ directory. When you installed NoMachine Workstation, configuration files from NoMachine free were restored. NoMachine free does not support SSH, so the two keys controlling the use of SSH now need to be set by hand. You have do add SSH value to the ClientConnectionMethods key in server.cfg and to ClientConnectionMethods in node.cfg.
March 5, 2015 at 11:50 #6521venkatsParticipantIs there evidence of that in the logs? I had a trail edition of the NoMachine Workstation (not NoMachine free) before this and ssh was working. Then I uninstalled NoMachine and also renamed /usr/NX to /usr/NX_old to avoid the issue you refer to.
March 5, 2015 at 11:50 #6522venkatsParticipantLooks like ssh is already there int the Client Connecttion Methods.
XPS8700: ~ : sudo grep -i ssh /usr/NX/etc/server.cfg
# SSH: Redirect port of the SSH server.
# none: Do not redirect port. Connections via NX, SSH or HTTP
# Specify the port where the SSHD service will be redirected using
#SSHDUPnPPort “”
# Specify the TCP port where the SSHD daemon is listening on the NX
#SSHDPort 22
# from local DB or through SSHD authentication, can connect to the NX
# system. This is likely to be the default when SSHD authentication
# 0: Disabled. Use SSHD + PAM authentication.
# word will be verified against the current PAM settings by the SSHD
# user being authenticated by SSHD account will be enabled to connect
# Specify hostname of the server used for NX SSH authentication.
#SSHDAuthServer 127.0.0.1
# Specify the TCP port where the SSHD daemon is running on the NX SSH
#SSHDAuthPort 22
# the SSH server will be started automatically at every reboot.
# 1: Automatic. Enable automatic starting of the SSH server.
# 0: Manual. Disable automatic starting of the SSH server.
#StartSSHDaemon Automatic
# comma-separated list. Supported methods are: NX, SSH and HTTP.
ClientConnectionMethods NX, SSH
# Specify the location and name of the SSH authorized keys file.
SSHAuthorizedKeys authorized_keys
# Accept or refuse the client connection if SSHD does not export
# the ‘SSH_CONNECTION’ and ‘SSH_CLIENT’ variables in the environment
#SSHDCheckIP 0
# Specify path to the SSH client.
#SSHClient /usr/bin/ssh
XPS8700: ~ : sudo grep -i ssh /usr/NX/etc/node.cfg
# comma-separated list. Supported methods are: NX and SSH.
ClientConnectionMethods NX,SSH
# Specify the location and name of the SSH authorized keys file.
#SSHAuthorizedKeys $(HOME)/.ssh/authorized_keys2
March 12, 2015 at 08:49 #6587hawkParticipantThe reason why SSH sessions are disabled is still unclear and we would need some additional information to continue this investigation.
Can you please send us whole compressed /usr/NX/var/log/ directory and your server.cfg file from /usr/NX/etc/ ?
Send them to forum[at]nomachine[dot]com, thank you in advance.
March 25, 2015 at 12:47 #6720venkatsParticipantI have emailed the logs. Could me send me instructions to uninstall and try this again. Note that I have the paid version so please send instructions on how to activate the key too.
March 25, 2015 at 12:59 #6726BritgirlKeymasterThe logs will be looked at. If you have a Workstation, you should have received instructions in the email that is issued with your licenses attached. There is also an article linked from within the email. Please consult:
How to activate licenses for NoMachine 4
https://www.nomachine.com/AR09K00687April 2, 2015 at 18:25 #6789venkatsParticipantHello Hawk,
You have any updates for this?
Thanks,
Venkat
April 10, 2015 at 15:34 #6884hawkParticipantHello venkats,
I’ve noticed that there is a space between ‘,’ and ‘SSH’ in your ClientConnectionMethods key:
ClientConnectionMethods NX, SSH
Please remove this space and restart nxserver by terminal command ‘sudo /etc/NX/nxserver –restart’.
It should look like this:
ClientConnectionMethods NX,SSH
-
AuthorPosts
This topic was marked as solved, you can't post.