[FreeNX-kNX] SSH server not running on port 22 - startsession fails

Cameron Jenkins milkman at the-milk-bar.com
Sun Jul 30 11:23:28 UTC 2006


Hello,

You need to edit the file /usr/NX/etc/node.conf, and look for
"SSHD_PORT=22".

I too was tired of SSH brute force attempts, so I installed denyhosts,
which there is an ebuild for. I suggest you look into that if you prefer
to leave your ssh on port 22.

Regards,
Cameron Jenkins

On Sun, 2006-07-30 at 13:13 +0200, Alexander Skwar wrote:
> Hello.
> 
> As I got sick and tired by all those SSH brute force login attempts,
> I changed my SSH server to not run on the default port 22 but on a
> different port (631).
> 
> I now installed nxserver-freenx-0.6.0_alpha20060711 on Gentoo from the
> Gentoo "testing" overlay. When I now try to login, I get an error
> message. In the "Details" screen, there's:
> 
> NX> 203 NXSSH running with pid: 22583
> NX> 285 Enabling check on switch command
> NX> 285 Enabling skip of SSH config files
> NX> 200 Connected to address: 213.133.109.44 on port: 631
> NX> 202 Authenticating user: nx
> NX> 208 Using auth method: publickey
> HELLO NXSERVER - Version 1.5.0-60-SVN OS (GPL)
> NX> 105 hello NXCLIENT - Version 1.5.0
> NX> 134 Accepted protocol: 1.5.0
> NX> 105 SET SHELL_MODE SHELL
> NX> 105 SET AUTH_MODE PASSWORD
> NX> 105 login
> NX> 101 User: askwar
> NX> 102 Password:
> NX> 103 Welcome to: hetzner user: askwar
> NX> 105 listsession --user="askwar" --status="suspended,running" --geometry="1024x768x24+render" --type="unix-kde"
> NX> 127 Sessions list of user 'askwar' for reconnect:
> 
> Display Type             Session ID                       Options  Depth Screen         Status      Session Name
> ------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------
> 
> 
> NX> 148 Server capacity: not reached for user: askwar
> NX> 105 startsession --session="NESI" --type="unix-kde" --cache="8M" --images="32M" --link="adsl" --kbtype="pc105/de" --nodelay="1" --backingstore="never" --geometry="800x600+112+59" --media="0" --agent_server="" --agent_user="" agent_password="******""  --screeninfo="800x600x24+render"
> 
> ssh: connect to host 127.0.0.1 port 22: Connection refused
> Killed by signal 15.
> 
> 
> As you can see, SSH tried to connect to port 22. How can I change
> this?
> 
> Thanks,
> 
> Alexander Skwar




More information about the FreeNX-kNX mailing list