Page 2 of 10 FirstFirst 1234 ... LastLast
Results 11 to 20 of 99

Thread: HOWTO: Use NXclient to remotely control Ubuntu

  1. #11
    Join Date
    Oct 2005
    Location
    Dominica
    Beans
    439
    Distro
    Kubuntu 22.04 Jammy Jellyfish

    Re: HOWTO: Use NXclient to remotely control Ubuntu

    Thanks for the guide. It worked perfectly using the settings suggested. However, when I changed my port as I wanted to move away from port 22, I keep getting an error message from my laptop saying authentification failed. Of course, I'm trying this from home before I leave for work. The machine I want to control is my desktop server/workstation.

    My problem is with ssh however, as everything has been changed even I follow your steps to the letter. Say I changed to 55555 as you stated, I connect but get an authentification error. Testing on the machine where nxserver is installed, I get this error:
    ssh localhost
    ssh: connect to host localhost port 22: Connection refused
    My port has been changed in /etc/ssh/sshd_config
    Life is easier when it's filled with challenges

  2. #12
    Join Date
    Aug 2007
    Location
    London, England
    Beans
    163
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Use NXclient to remotely control Ubuntu

    Try this:
    sudo gedit /etc/ssh/ssh_config
    and change

    # Port 22
    to

    Port 55555
    where 55555 is whatever port you chose. Hopefully sorts out your problems.
    We are building the future, and the future is called Ubuntu

  3. #13
    Inxsible's Avatar
    Inxsible is offline Badabing Badabang Badaboom...Sucker!
    Join Date
    Feb 2006
    Beans
    4,996

    Re: HOWTO: Use NXclient to remotely control Ubuntu

    Quote Originally Posted by A$h X View Post
    Changing the port works on mine, are you sure you have created a rule in firestarter and changed the port in NXclient? Make sure the port value is the same in all four (SSHD_config, server.cfg, and firestarter on the server, and NXclient's target port on the remote computer).

    hansonlee: I'm trying to find more info on your problem, googling your error ID draws a blank, in the mean time trying deleting your user and re-adding them to see if it helps. Or create another system user, then add them as a SSH and NXserver user.
    Hi Ash,
    Yeah I did change the ports everywhere that it was required viz sshd_config, server.cfg, firestarter, my router(i.e.port forwarding) and finally in the nx client on my other PC.

    Gotta get this thing working. Now its ******* me off !!!!
    Shed that weight!! -- Apps | Window Managers

    Arch + i3 (tty1) Arch + wmfs (tty2)

  4. #14
    Inxsible's Avatar
    Inxsible is offline Badabing Badabang Badaboom...Sucker!
    Join Date
    Feb 2006
    Beans
    4,996

    Re: HOWTO: Use NXclient to remotely control Ubuntu

    the server.cfg file has two places
    Code:
    # Specify the TCP port where the NX server SSHD daemon is running.
    #
    SSHDPort = "22"
    and
    Code:
    #
    # Specify the TCP port where the SSHD daemon is running on the NX SSH
    # authentication server.
    #
    SSHDAuthPort = "22"
    So my question is do we have to change both to a different port?

    I was only changing the SSHDAuthPort until now. Maybe that's the problem. Also we do have to KEEP the quotes right ? Just checking...
    Last edited by Inxsible; April 6th, 2008 at 09:15 PM.
    Shed that weight!! -- Apps | Window Managers

    Arch + i3 (tty1) Arch + wmfs (tty2)

  5. #15
    Join Date
    Aug 2007
    Location
    London, England
    Beans
    163
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Use NXclient to remotely control Ubuntu

    Yeah, change both instances of the port and keep the quotes. Try that and if it's STILL not working then try changing ssh_config as mentioned two posts earlier. But only change one file at a time so we can isolate the problem.
    We are building the future, and the future is called Ubuntu

  6. #16
    Inxsible's Avatar
    Inxsible is offline Badabing Badabang Badaboom...Sucker!
    Join Date
    Feb 2006
    Beans
    4,996

    Re: HOWTO: Use NXclient to remotely control Ubuntu

    SUCCESS !!!!

    I was finally able to connect after changing the port. But I did have to change the port in the server.cfg at both the places that I mentioned before.

    Thanks A$h X for all your help !!!
    Last edited by Inxsible; April 6th, 2008 at 09:25 PM.
    Shed that weight!! -- Apps | Window Managers

    Arch + i3 (tty1) Arch + wmfs (tty2)

  7. #17
    Join Date
    Aug 2007
    Location
    London, England
    Beans
    163
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Use NXclient to remotely control Ubuntu

    Good to hear. Now anyone having the same problem will know what to do. I'll update the guide to show the port number in server.cfg needs to be changed in two different places.
    Also Princey, I suspect this will also solve your problem.
    We are building the future, and the future is called Ubuntu

  8. #18
    Join Date
    Oct 2005
    Location
    Dominica
    Beans
    439
    Distro
    Kubuntu 22.04 Jammy Jellyfish

    Re: HOWTO: Use NXclient to remotely control Ubuntu

    A$h X, my problem is identical to Inxsible. I've now changed the two instances in the server.cfg file. A question though, I see for both instances that the "#" sign appears in front of them. To my limited knowledge, normally that symbol comments out the line. Do I leave it or remove it? In other words, should it read 1.
    #SSHDAuthPort = 55555
    still using your port example or 2.
    SSHDAuthPort =55555
    Life is easier when it's filled with challenges

  9. #19
    Inxsible's Avatar
    Inxsible is offline Badabing Badabang Badaboom...Sucker!
    Join Date
    Feb 2006
    Beans
    4,996

    Re: HOWTO: Use NXclient to remotely control Ubuntu

    No, you have to remove the # sign. As you said, Ubuntu ignores everything on the line after a #
    Last edited by Inxsible; April 6th, 2008 at 10:31 PM.
    Shed that weight!! -- Apps | Window Managers

    Arch + i3 (tty1) Arch + wmfs (tty2)

  10. #20
    Join Date
    Aug 2007
    Location
    London, England
    Beans
    163
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Use NXclient to remotely control Ubuntu

    If a line has a # in front then as you say, ubuntu ignores it. You must delete the # to apply the changes.
    The # is present as port 22 is default, so SSH knows where to look already. If you uncomment it, then a value must be defined. Get rid of it and put your port number and it should be working fine.
    We are building the future, and the future is called Ubuntu

Page 2 of 10 FirstFirst 1234 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •