IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

BSD Discussion :

configuration freeBSD pour une utilisation avec freenx


Sujet :

BSD

  1. #1
    Futur Membre du Club
    Inscrit en
    Juin 2008
    Messages
    145
    Détails du profil
    Informations forums :
    Inscription : Juin 2008
    Messages : 145
    Points : 6
    Points
    6
    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

  2. #2
    Invité
    Invité(e)
    Par défaut
    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

  3. #3
    Futur Membre du Club
    Inscrit en
    Juin 2008
    Messages
    145
    Détails du profil
    Informations forums :
    Inscription : Juin 2008
    Messages : 145
    Points : 6
    Points
    6
    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

  4. #4
    Futur Membre du Club
    Inscrit en
    Juin 2008
    Messages
    145
    Détails du profil
    Informations forums :
    Inscription : Juin 2008
    Messages : 145
    Points : 6
    Points
    6
    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.

  5. #5
    Membre à l'essai
    Inscrit en
    Décembre 2007
    Messages
    8
    Détails du profil
    Informations forums :
    Inscription : Décembre 2007
    Messages : 8
    Points : 10
    Points
    10
    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

  6. #6
    Futur Membre du Club
    Inscrit en
    Juin 2008
    Messages
    145
    Détails du profil
    Informations forums :
    Inscription : Juin 2008
    Messages : 145
    Points : 6
    Points
    6
    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

Discussions similaires

  1. Réponses: 8
    Dernier message: 06/12/2014, 18h39
  2. Réponses: 2
    Dernier message: 21/07/2009, 16h14
  3. Pop up avec parametre php ? pour une utilisation avec get
    Par bullrot dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 08/12/2008, 13h17
  4. Réponses: 2
    Dernier message: 24/09/2007, 12h47
  5. [JSTL] Récupérer une variable JSTL pour l'utiliser avec JSP
    Par pitit777 dans le forum Taglibs
    Réponses: 3
    Dernier message: 28/03/2006, 09h47

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo