réinstall serveur sftp erreur dans rssh.conf

j’ai fais l’install comme sur le tuto et il me semble comme la 1ere fois, lorsque j’essaie de me connecté voila ce qu’il me donne :
daniel@localhost:~$ sftp -P 666 jessie@localhost
The authenticity of host ‘[localhost]:666 ([::1]:666)’ can’t be established.
ECDSA key fingerprint is d3:20:94:49:e0:aa:da:ad:c2:d4:04:9c:27:39:65:53.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘[localhost]:666’ (ECDSA) to the list of known hosts.
jessie@localhost’s password:
Connection closed
ensuite j’ai vérifié avec ce que micp m’as expliqué, voici ce que donne :
daniel@localhost:~$ sftp -v -P 666 jessie@localhost
OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to localhost [::1] port 666.
debug1: Connection established.
debug1: identity file /home/daniel/.ssh/id_rsa type -1
debug1: identity file /home/daniel/.ssh/id_rsa-cert type -1
debug1: identity file /home/daniel/.ssh/id_dsa type -1
debug1: identity file /home/daniel/.ssh/id_dsa-cert type -1
debug1: identity file /home/daniel/.ssh/id_ecdsa type -1
debug1: identity file /home/daniel/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0p1 Debian-4
debug1: match: OpenSSH_6.0p1 Debian-4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.0p1 Debian-4
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA d3:20:94:49:e0:aa:da:ad:c2:d4:04:9c:27:39:65:53
debug1: Host ‘[localhost]:666’ is known and matches the ECDSA host key.
debug1: Found key in /home/daniel/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/daniel/.ssh/id_rsa
debug1: Trying private key: /home/daniel/.ssh/id_dsa
debug1: Trying private key: /home/daniel/.ssh/id_ecdsa
debug1: Next authentication method: password
jessie@localhost’s password:
debug1: Authentication succeeded (password).
Authenticated to localhost ([::1]:666).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = fr_CA.UTF-8
debug1: Sending subsystem: sftp
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
Transferred: sent 1864, received 1600 bytes, in 0.0 seconds
Bytes per second: sent 62403.7, received 53565.4
debug1: Exit status 1
Connection closed
voila mon cat /etc/rssh.conf d’aujourd’hui :
daniel@localhost:~$ cat /etc/rssh.conf

cd /home/sftp

mkdir dev

mknod dev/null c 1 3

chmod 666 dev/null

chrootpath = “/home/sftp”

et voici le cat /etc/rssh.conf de 21 aout 2013 :
daniel@localhost:~$ cat /etc/rssh.conf
logfacility = LOG_USER
allowsftp
umask = 066
chrootpath = “/home/sftp”

donc y a-t-il un moyen facile de réparé le dossier /etc/rssh.conf ou faut-il recommencé le tuto à partir de :
Le fichier de configuration est /etc/rssh.conf. Remplaçons celui créé lors de l’installation :

mv rssh.conf rssh.conf.old

echo “logfacility = LOG_USER” > /etc/rssh.conf

echo “allowsftp” >> /etc/rssh.conf

echo “umask = 022” >> /etc/rssh.conf

et continué jusqu’à la fin ?

bon réglé je recommence l’install du début :023 :smiley: :blush: