Adding secure connectivity for remote administration of CentOS with NX Server

Having been part of IT, there had always been adventure around the next key stroke, call or email. This go around, I had wanted to take a few minutes to document some steps in getting remote connectivity to work on a flavor of Unix, CentOS. Now let me contrast this by saying, Unix’s strong suit had always been the level of customization. The question had been knowing which pieces to squeeze together for certain administrative task. On that note, here had been the steps for getting remote connectivity setup up for an install of NXServer on CentOS below.

centos

Before proceeding, a target system had required an install of  CentOS (6.x) with all the default settings. I had performed the following steps on server and Windows 7 desktop.

  1. Logged on to CentOS server locally.
  2. Elevated permissions in terminal by typing, su
  3. Entered password  (i.e. root password, etc..)
  4. Entered, yum install nx freenx
  5. Allowed the installation to complete.
  6. Switched directories with the following command, cd /etc/nxserver
  7. Modified configuration file with VI by entering in the following command, Vi node.conf
  8. Started data insert with vi by typing, I
  9. Located the following variable and set to 1, ENABLE_PASSDB_AUTHENTICATION=”1″
  10. Pressed the ESC key.
  11. Saved the file the follow key combination, :q 
  12. Added user enter to nx server with, nxserver –adduser packetfence
  13. Generated a client key type, cat /var/lib/nxserver/home/.ssh/client.id_dsa.key
  14. Copied the results into notepad for use on your desktop, Windows 7
  15. Launched Windows NX client on Windows.
  16. nx2
  17. Modified NX client from dialog box, clicking CONFIGURE.
  18. Clicked the GENERAL tab.
  19. Selected KEY.
  20. Pasted the key from #12 into the field.
  21. Selected KDE for session for desktop
  22. kde
  23. Saved changes and attempted to logon. It failed.
  24. Went to CentOS server, entered,  service sshd restart
  25. Then followed-up with the next command, chkconfig sshd on
  26. Important, chkconfig sshd on command ensuresd that the SSH service started on boot.
  27. Relaunched the NX client and attempt to connect.This time it connected successfully.
  28. Rebooted server and verified remote login again.

nx1

Read more:

http://danielgibbs.co.uk/2012/03/ssh-to-run-on-start-up-centos-6

http://codingrecipes.com/the-nx-service-is-not-available-or-the-nx-access-was-disabled-centos

http://wiki.centos.org/HowTos/FreeNX

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s