Nun wollte ich gern bei ssh "PasswordAuthentication no" setzten um nur über Keyfile zu verbinden
SSH Verbindung über WinSCP klappt mit Keyfile
Bei NXServer bekomm ich diese Fehlermeldung:
Code: Alles auswählen
NX> 203 NXSSH running with pid: 4112
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 192.168.178.2 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.5.0-11 - LFE
NX> 105 Hello NXCLIENT - Version 3.5.0
NX> 134 Accepted protocol: 3.5.0
NX> 105 Set shell_mode: shell
NX> 105 Set auth_mode: password
NX> 105 Login
NX> 101 User: agent
NX> 102 Password: ****
NX> 103 Welcome to: debian user: agent
NX> 105 Listsession --user="agent" --status="suspended\054running" --geometry="1920x1080x32+render" --type="unix-gnome"
NX> 127 Available sessions:
Display Type Session ID Options Depth Screen Status Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------
NX> 148 Server capacity: not reached for user: agent
NX> 105 Start session with: --link="lan" --backingstore="1" --encryption="1" --cache="128M" --images="512M" --shmem="1" --shpix="1" --strict="0" --composite="1" --samba="1" --media="1" --mediahelper="esd" --session="Server" --type="unix-gnome" --geometry="1914x997" --client="winnt" --keyboard="pc102\057de" --screeninfo="1914x997x32+render"
NXSERVER - Version 3.5.0-11 - LFE
Mon Jan 21 19:33:42 2013 running as user: 'nx' (uid: 110, pid: 2382) on 'debian'
Info: using the NX password DB (NXShell)
Info: using the NX user DB (NXShell)
Info: user login is agent (NXShell)
Info: user password is '******' (NXShell)
Info: The NX password DB is enabled, using only 'publickey method' to authenticate on NX Node (NXShell)
Info: using 'NX password authentication' (NXShell)
Info: selected user 'agent' is authenticated (NXNodeExec)
Info: password for selected user is in 'md5' mode (NXNodeExec)
Info: preferred auth method is '' (NXNodeExec)
Info: selected NX Node with host name 'localhost', port '22' (NXNodeExec)
Warning: no real text password is available to login to NX Node (NXNodeExec)
Info: selected publickey method to login NX Node (NXNodeExec)
Info: nxssh command line is '/usr/NX/bin/nxssh -nxservermode -l agent localhost -p 22 -x -2 -i /usr/NX/etc/keys/node.localhost.id_dsa -o 'PubkeyAuthentication yes' -o 'RSAAuthentication yes' -o 'RhostsAuthentication no' -o 'PasswordAuthentication no' -o 'RhostsRSAAuthentication no' -o 'StrictHostKeyChecking no' /usr/NX/bin/nxnode' (NXNodeExec)
Info: nxssh child pid is: 2391 (NXNodeExec)
Info: received data in err channel from NX Node: 'ssh: connect to host localhost port 22: Connection refused
' (NXNodeExec)
Info: NX Node out channel was closed (NXNodeExec)
Info: NX Node err channel was closed (NXNodeExec)
Info: closing nxssh's in, out, err FDs (flagfinished is: 0) (NXNodeExec)
Error: no 'CONNECTED' message from NX Node (NXNodeExec)
NX> 595 ERROR: A fatal error occurred in NX Server.
NX> 595 ERROR: The exception id is: D76B8EB6. To get detailed information about
NX> 595 ERROR: the error search for the string D76B8EB6 in the system log
NX> 595 ERROR: file (usually '/var/log/messages').
NX> 500 ERROR: Last operation failed.
NX> 280 Exiting on signal: 15
durchgeführt aus dem Wiki Passwortauthentifizierung unter SSH verboten
Code: Alles auswählen
EnablePasswordDB = "1"
sudo /usr/NX/bin/nxserver --useradd <Benutzername>