Précédent   Forum des professionnels en informatique > Systèmes > Autres systèmes > Unix > BSD
BSD Forum d'entraide sur les systèmes BSD. Avant de poster -> FAQ BSD et cours BSD
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 17/09/2008, 06h07   #1
Invité régulier
 
Inscription : juin 2008
Messages : 45
Détails du profil
Informations forums :
Inscription : juin 2008
Messages : 45
Points : 7
Points : 7
Par défaut configuration freeBSD pour une utilisation avec freenx

Bonjour,

j'ai un serveur dédié OVH ( kimsufi ) j'ai installer un noyau freeBSD 7.0 j'ai installer sur cette distrib :

- Xorg
- Gnome2
- openSSH
- freenx

j'ai un probleme avec la config du serveur je pense que cela vient du fichier /etc/ssh/sshd_config

que voici :

GNU nano 2.0.6 File: /etc/ssh/sshd_config

# $OpenBSD: sshd_config,v 1.74 2006/07/19 13:07:10 dtucker Exp $
# $FreeBSD: src/crypto/openssh/sshd_config,v 1.47 2006/11/10 16:52:41 des$

# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.

# Note that some of FreeBSD's defaults differ from OpenBSD's, and
# FreeBSD has a few additional options.

#VersionAddendum FreeBSD-20061110

Port 22
Protocol 2
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768

# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:

#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6

#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# Change to yes to enable built-in password authentication.
PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable PAM authentication
# ChallengeResponseAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

# Set this to 'no' to disable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM no

#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no

# no default banner path
#Banner /some/path
# override default of no subsystems
Subsystem sftp /usr/libexec/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# ForceCommand cvs server


je recherche un peu d'aide pour savoir quoi modifier.
j'ai créer une utilisateur nx comme expliquer dans ce tuto ici :

http://www.averageadmins.com/blog/20...nx-on-freebsd/

j'ai donc suivi tous ce tuto est arriver à cette commande :

# ./nxsetup --install --setup-nomachine-key

voici ce que cela me donne :

Setting up /usr/local/NX/etc ...done
Setting up /usr/local/NX/var/db ...done
Setting up /var/log/nxserver.log ...done
Setting up known_hosts and authorized_keys2 ...Setting up permissions ...done

----> Testing your nxserver configuration ...
Warning: Invalid value "CUPS_ETC=/usr/local/etc/cups/"
Users will not be able to enable printing.
Warning: Invalid value "DEFAULT_X_SESSION=/etc/X11/xdm/Xsession"
Users might not be able to request a default X session.
Warning: Invalid value "COMMAND_START_KDE=startkde"
Users will not be able to request a KDE session.
Warning: Invalid value "COMMAND_START_CDE=cdwm"
Users will not be able to request a CDE session.
Warning: Invalid value "COMMAND_SMBMOUNT=smbmount". You'll not be able to use SAMBA.
Warning: Invalid value "COMMAND_SMBUMOUNT=smbumount". You'll not be able to use SAMBA.
Warning: Invalid value "COMMAND_CUPSD=/usr/local/sbin/cupsd"
Users will not be able to enable printing.

Warnings occured during config check.
To enable these features please correct the configuration file.

<---- done

----> Testing your nxserver connection ...
Permission denied (publickey,password,keyboard-interactive).
Fatal error: Could not connect to NX Server.

Please check your ssh setup:

The following are _examples_ of what you might need to check.

- Make sure "nx" is one of the AllowUsers in sshd_config.
(or that the line is outcommented/not there)
- Make sure your sshd allows public key authentication.
- Make sure your sshd is really running on port 22.
- Make sure your sshd_config AuthorizedKeysFile in sshd_config is set to authorized_keys2.
(this should be a filename not a pathname+filename)

je pense que tous les éléments sont ici, en esperant trouver une solution

en vous remerciant
hunyka est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 18/09/2008, 12h43   #2
Membre Expert
 
Avatar de vtrone
 
Homme
Inscription : novembre 2005
Messages : 1 899
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations forums :
Inscription : novembre 2005
Messages : 1 899
Points : 2 015
Points : 2 015
Citation:
Envoyé par hunyka Voir le message
Bonjour,

j'ai un serveur dédié OVH ( kimsufi ) j'ai installer un noyau freeBSD 7.0 j'ai installer sur cette distrib :
FreeBSD n'est pas une distribution Linux, mais un système à part entière... Bref...

Tu trouveras tous les détails d'une config ssh sous FreeBSD ici, notamment sur l'option AllowUsers au paragraphe 14.11.9
vtrone est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 18/09/2008, 18h30   #3
Invité régulier
 
Inscription : juin 2008
Messages : 45
Détails du profil
Informations forums :
Inscription : juin 2008
Messages : 45
Points : 7
Points : 7
Par défaut merci pour ta reponse

je sais que BSD n'est une distribution linux, je vais essayer ce que tu m'a dis

merci
hunyka est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 18/09/2008, 18h43   #4
Invité régulier
 
Inscription : juin 2008
Messages : 45
Détails du profil
Informations forums :
Inscription : juin 2008
Messages : 45
Points : 7
Points : 7
Par défaut toujour un echec

voici l'erreur que j'ai avec le client

NX> 203 NXSSH running with pid: 6968
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: 91.121.148.97 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.
hunyka est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/10/2008, 17h10   #5
Invité de passage
 
Inscription : décembre 2007
Messages : 7
Détails du profil
Informations forums :
Inscription : décembre 2007
Messages : 7
Points : 2
Points : 2
Par défaut FreeNX

As tu trouvé des reponses ?

J'ai vu que tu a deposer cette annonce aussi sur un autre site.
Ta des reponses ?

Cdt
karim.rain est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/10/2008, 19h08   #6
Invité régulier
 
Inscription : juin 2008
Messages : 45
Détails du profil
Informations forums :
Inscription : juin 2008
Messages : 45
Points : 7
Points : 7
Par défaut j'ai un peu de nouveau

passe moi ton mail que je puisse t'aider ça sera plus simple, j'arrive à aller plus loin dans le message d'erreur.

j'ai compris le fonctionnement des clé et lors que la commande nxserver --install --no-machine-key j'ai server OK

mais j'ai toujours un message d'erreur sur on client
hunyka est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 05h55.


 
 
 
 
Partenaires

Hébergement Web