AB
Size: a a a
A
A
A
Н
Match User sftp_user3) Сделал симлинк с его домашнего каталога на нужную папку.
X11Forwarding no
AllowTcpForwarding no
AllowAgentForwarding no
AllowStreamLocalForwarding no
PermitTTY no
ChrootDirectory /home/sftp_user
ForceCommand internal-sftp
sftp sftp_user@myhostПодключение закрывается. В логах sshd ничего:
sshd[10149]: Accepted password for sftp_user from 192.168.x.x port 58104 ssh2Что сделал не так?
A
A
Н
Н
I
-vvv коннекшн попробуй запуститьA
Н
sftp sftp_user@192.168.x.x -vvv
sftp_user@192.168.x.x's password:
Connection to 192.168.x.x closed by remote host.
Connection closed.
Connection closedI
Н
A
I
A
Н
sftp_user@192.168.x.x's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 52
debug1: Authentication succeeded (password).
Authenticated to 192.168.x.x ([192.168.x.x]:22).
debug2: fd 4 setting O_NONBLOCK
debug3: fd 5 is O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting no-more-sessions@openssh.com
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: send packet: type 1
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
#0 client-session (t3 nr0 i0/0 o0/0 e[write]/0 fd 4/5/6 sock -1 cc -1)
debug1: fd 0 clearing O_NONBLOCK
debug3: fd 1 is not O_NONBLOCK
Connection to 192.168.x.x closed by remote host.
Transferred: sent 1912, received 1704 bytes, in 0.0 seconds
Bytes per second: sent 1838638.3, received 1638619.1
debug1: Exit status -1
Connection closed.
Connection closed