LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-22-2009, 04:09 AM   #1
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619

Rep: Reputation: 45
cannot login to server with nxclient (can with ssh)


Hi,

after playing around with udev rules and a reboot, I cannot log into a server with nxclient any more. The nxserver log looks like:

Code:
-- NX SERVER START: -c /usr/lib/nxserver - ORIG_COMMAND=
-- NX SERVER START:  - ORIG_COMMAND=
Info: Using fds #4 and #3 for communication with nxnode.
HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.3.0)
NX> 105 hello NXCLIENT - Version 3.2.0
NX> 134 Accepted protocol: 3.2.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: siim
NX> 102 Password:
Info: Auth method: ssh siim@127.0.0.1's password:
Permission denied (publickey,password).
FREENX> 716 Slave mode failed to start.
Info: Closing connection to slave with pid 7684.
i.e. it seems that the problem is in my password. auth.log looks liket that:

Code:
Oct 22 11:47:43 Shiva sshd[7513]: reverse mapping checking getaddrinfo for hha.hha.forskningsnettet.dk [130.226.249.238] failed - POSSIBLE BREAK-IN ATTEMPT!
Oct 22 11:47:43 Shiva sshd[7513]: Accepted publickey for nx from xxx.xxx.249.238 port 32565 ssh2
Oct 22 11:47:43 Shiva sshd[7513]: pam_unix(sshd:session): session opened for user nx by (uid=0)
Oct 22 11:47:44 Shiva sshd[7692]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=siim
Oct 22 11:47:47 Shiva sshd[7692]: Failed password for siim from 127.0.0.1 port 48465 ssh2
Oct 22 11:47:51 Shiva nxserver[7699]: (nx) Failed login for user=siim from IP=xxx.xxx.249.238
Oct 22 11:47:51 Shiva sshd[7513]: pam_unix(sshd:session): session closed for user nx
Seems like the user nx can log on, but not me.

Any ideas? Any suggestions where to look?

Best,
Ott
 
Old 10-22-2009, 04:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well that's just totally standard ssh. I take it you can't log in normally over ssh either?
 
Old 10-22-2009, 04:28 AM   #3
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619

Original Poster
Rep: Reputation: 45
The weird thing is that I can log via ssh.

There earlier issues with e.g. /dev/ptmx belonging to scanner group, created part of the problems. I was able to correct that issue with help of nx log file. But probably some nasty stuff is still left which I have no idea how to approach...
 
Old 10-22-2009, 05:10 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Does anything change if you ssh to localhost form the server itself? And sorry to sound patronising, but you are logging in to the nxclient with the same password you ssh with, no?
 
Old 10-22-2009, 05:19 AM   #5
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619

Original Poster
Rep: Reputation: 45
Woooww... I tried ssh localhost, added localhost as known server, and now it works!

Was this that simple? How can a localhosts rsa key get missing? Did I somehow mess up the keys or config or something?

Thanks anyway!
Ott
 
Old 10-22-2009, 09:47 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it doesn't use keys, only passwords. Where did you add is as a "known server"?
 
Old 10-22-2009, 10:11 AM   #7
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619

Original Poster
Rep: Reputation: 45
Well, while logging via ssh to a new server... It asks something like "do you trust ..." and gives the fingerprint. Cannot remember the wording. So it looks like localhost wasn't recognized as a trusted server.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NXserver and NXclient to remote desktop Linux after login, I get a blank screen poeta_boy Ubuntu 0 12-07-2008 11:24 PM
putty ssh login in Linux server alexz Linux - General 5 06-08-2007 12:22 PM
How can I auto login to ssh server? sailershen Linux - General 1 04-17-2006 01:04 AM
help with setting up login to server remotely using ssh LAdProg2005 Linux - Software 2 10-05-2005 01:05 PM
Server kicks me out of SSH login The_Nerd Linux - Networking 2 09-20-2004 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration