Ce forum est maintenant fermé, seule cette archive statique reste consultable.
  FORUM Rue-Montgallet.com
  OS alternatifs
  Linux

  SSH et Mandriva

Bas de page
Auteur Sujet :

SSH et Mandriva

n°18642
Freetonio
Montgallien de base
Profil : Membre
Posté le 16-01-2006 à 21:07:42  
 

Bonjour à tous,
 
J'ai un petit problème pour activer le SSH sur ma Mandriva.
J'ai fait un urpmi ssh-server. Tout s'est bien passé, mais lorsque je lance la commande sshd, j'ai le message suivant :
 
sshd re-exec requires execution with an absolute path
 
Je dois dire que je suis un peu bloqué là. Auriez-vous des pistes à me proposer ?
Merci d'avance  :D  

mood
Pub
Posté le 16-01-2006 à 21:07:42  
 

n°18643
grimms
Pingouin Garou illetre
Profil : Fossile
Posté le 16-01-2006 à 21:11:26  
 

peut etre que les fichiers de configuration de sshd nous serait utile :ange:
 
edit pour lancer sshd tu te met bien dans init.d?
ou a default tu lance bien /etc/init.d/sshd start?
 
ps le repertoire init.d peut s'appeler autrement selon la distribution, c'est peut etre rc.d


Message édité par grimms le 16-01-2006 à 21:15:47
n°18644
Freetonio
Montgallien de base
Profil : Membre
Posté le 16-01-2006 à 21:22:03  
 

Effectivement, ce serait un peu plus utile  :)  
 
 
 
 
 
 
#       $OpenBSD: sshd_config,v 1.72 2005/07/25 11:59:40 markus Exp $
 
# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.
 
# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
 
# 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.
 
 
 
#Port 22
#Protocol 2,1
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_rsa_key
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 no
#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
 
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
 
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
 
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
 
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
 
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication mechanism.
# Depending on your PAM configuration, this may bypass the setting of
# PasswordAuthentication, PermitEmptyPasswords, and
# "PermitRootLogin without-password". If you just want the PAM account and
# session checks to run without PAM authentication, then enable this but set
# ChallengeResponseAuthentication=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
 
# no default banner path
#Banner /some/path
 
# override default of no subsystems
Subsystem       sftp    /usr/lib/ssh/sftp-server
 

n°18645
Freetonio
Montgallien de base
Profil : Membre
Posté le 16-01-2006 à 21:28:04  
 

grimms a écrit :

peut etre que les fichiers de configuration de sshd nous serait utile :ange:
 
edit pour lancer sshd tu te met bien dans init.d?
ou a default tu lance bien /etc/init.d/sshd start?
 
ps le repertoire init.d peut s'appeler autrement selon la distribution, c'est peut etre rc.d


 
En fait je n'ai rien fait d'autre que d'installer ssh. Je n'ai pas modifié init.d.
Et c'est vrai que ça marche nettement mieux lorsque je fais un /etc/init.d/sshd start  :)  
 
J'imagine donc qu'il me reste à modifier init.d maintenant...

n°18646
P-Y
Profil : Vieux de la vieille
Posté le 16-01-2006 à 21:44:01  
 

bah le truc c'est que c'est mieux de lancer un service "proprement" en passant par /etc/init.d/  donc si ca marche je vois pas ce que tu veux changer...


---------------
Le trikapalanet
n°18647
Freetonio
Montgallien de base
Profil : Membre
Posté le 16-01-2006 à 21:46:13  
 

Non ben ça marche très bien comme ça maintenant. Je n'avais pas bien compris le principe de sshd.
 
Il fallait que je redémarre ma machine ou bien que je tape /etc/init.d/sshd start
 
Merci de votre aide  :love:

n°18648
grimms
Pingouin Garou illetre
Profil : Fossile
Posté le 16-01-2006 à 23:00:56  
 

en faite c'est le principe des services.
les script de control ce trouve dans /etc/init.d
pour changer leur etat il faut donc les executer avec les option start/stop/restart.
 
meme principe que le gestionaire de service de windows nt (et deriver)

  FORUM Rue-Montgallet.com
  OS alternatifs
  Linux

  SSH et Mandriva

© 2000-2024 Forum.rue-montgallet.com - Tous droits réservés