@anonimous_user
На аккаунте несколько пользователей

Как задать домашнюю папку в SFTP Windows Server?

Здравствуйте! Хочу настроить SSH сервер на Windows Server 2012 r2. При SFTP и SCP подключении пользователь попадает в домашнюю папку. Как задать папку для SFTP доступа для каждого пользователя, чтоб пользователь мог пользоваться всеми подкаталогами и файлами, но не мог подняться вверх по каталогам? Как настроить чёрный список каталогов и файлов (файлы и папки, которые пользователь не видит и не имеет к ним доступа)?!
Конфиг <i>sshd_config</i>
# 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

# GSSAPI options
#GSSAPIAuthentication no

AllowAgentForwarding yes
AllowTcpForwarding yes
#GatewayPorts no
PermitTTY yes
PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#PermitUserEnvironment no
#ClientAliveInterval 0
#ClientAliveCountMax 3
UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
PermitTunnel yes
#ChrootDirectory none
#VersionAddendum none
user?domain*

# no default banner path
#Banner none

# override default of no subsystems
Subsystem	sftp "C:\Program Files\OpenSSH\sftp-server.exe"
Subsystem	scp	"C:\Program Files\OpenSSH\scp.exe"

# Example of overriding settings on a per-user basis
#Match User anoncvs
#	AllowTcpForwarding no
#	PermitTTY no
#	ForceCommand cvs server

Match Group administrators
       AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys

Обязательно помогите, пожалуйста!
Заранее спасибо за ответ!!!
  • Вопрос задан
  • 310 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы