Topic: connection impossible avec un utilisateur
Hello,
J'ai crée un compte invite avec lequel je n'arrive pas à me connecter.
Fillezilla mindique ceci :
Commande : open "invite@mondomaine.org" 22
Erreur : Disconnected: No supported authentication methods available
Erreur : Impossible d'établir une connexion au serveur
Statut : Attente avant nouvel essai...
J'ai l'impression que ça vient d'un problème d'authentification ssh...mais j'aimerai bien que quelqu'un confirme ou donne des pistes
Pour info je mets mes fichiers de config' :
sftp-verif
################################################################################
MySecureShell Verification Tool
################################################################################
### Verifing file existance ###
/bin/MySecureShell [ OK ]
/usr/bin/sftp-who [ OK ]
/usr/bin/sftp-kill [ OK ]
/usr/bin/sftp-state [ OK ]
/usr/bin/sftp-admin [ OK ]
/usr/bin/sftp-verif [ OK ]
/usr/bin/sftp-user [ OK ]
### Verifing rights ###
Verifing file rights of /etc/ssh/sftp_config [ OK ]
Verifing file rights of /usr/bin/sftp-who [ OK ]
Verifing file rights of /usr/bin/sftp-verif [ OK ]
Verifing file rights of /usr/bin/sftp-user [ OK ]
Verifing file rights of /usr/bin/sftp-kill [ OK ]
Verifing file rights of /usr/bin/sftp-state [ OK ]
Verifing file rights of /usr/bin/sftp-admin [ OK ]
Verifing file rights of /bin/MySecureShell [ OK ]
### Verifing rotation logs ###
Rotation logs have been found [ OK ]
### Verifing server status ###
Verifing server status (ONLINE) [ OK ]
### Verifing server dependencies ###
Show only error(s) :
### Verifing server configuration ###
Show only error(s) :
Trying user: root
Property 'mount' is not recognized !
Property 'mount' is not recognized !
Checking user : invite
Property 'HideNoAccess' is not recognized !
Property 'mount' is not recognized ! J'ai essayé de monter un répertoire mais y'a une erreur
Property 'mount' is not recognized !
### All tests dones ###
MySecureShell Configuration File
#Default rules for everybody
<Default>
GlobalDownload 800k #total speed download for all clients
# o -> bytes k -> kilo bytes m -> mega bytes
GlobalUpload 0 #total speed download for all clients (0 for unlimited)
Download 0 #limit speed download for each connection
Upload 0 #unlimit speed upload for each connection
StayAtHome true #limit client to his home
VirtualChroot true #fake a chroot to the home account
LimitConnection 10 #max connection for the server sftp
LimitConnectionByUser 3 #max connection for the account
LimitConnectionByIP 3 #max connection by ip for the account
Home /home/$USER #overrite home of the user but if you want you can use
# environment variable (ie: Home /home/$USER)
IdleTimeOut 5m #(in second) deconnect client is idle too long time
ResolveIP true #resolve ip to dns
DisableMakeDir false
DisableReadDir false
DisableRemoveDir true
DisableRemoveFile true
# IgnoreHidden true #treat all hidden files as if they don't exist
# DirFakeUser true #Hide real file/directory owner (just change displayed permissions)
# DirFakeGroup true #Hide real file/directory group (just change displayed permissions)
# DirFakeMode 0400 #Hide real file/directory rights (just change displayed permissions)
#Add execution right for directory if read right is set
# HideFiles "^(lost\+found|public_html)$" #Hide file/directory which match
#this extented POSIX regex
HideNoAccess true #Hide file/directory which user has no access
# MaxOpenFilesForUser 20 #limit user to open x files on same time
# MaxWriteFilesForUser 10 #limit user to x upload on same time
# MaxReadFilesForUser 10 #limit user to x download on same time
DefaultRights 0604 0705 #Set default rights for new file and new directory
# MinimumRights 0400 0700 #Set minimum rights for files and dirs
# PathDenyFilter "^\." #deny upload of directory/file which match this extented POSIX regex
ShowLinksAsLinks false #show links as their destinations
# ConnectionMaxLife 1d #limits connection lifetime to 1 day
# Charset "ISO-8859-15" #set charset of computer
# GMTTime +1 #set GMT Time (change if necessary)
</Default>
#Rules only for invite
<User invite>
Home /home/invite
StayAtHome true
VirtualChroot true
LimitConnectionByUser 3
LimitConnectionByIP 3
HideNoAccess
DefaultRights 0604 0705
sshd_config
Port 22
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 768
SyslogFacility AUTH
LogLevel INFO
# Authentication:
LoginGraceTime 120
PermitRootLogin no
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no
ChallengeResponseAuthentication no
PasswordAuthentication no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM no
Merci !