if you wish to set up chroot() under Windows in Copssh please follow this steps:
Edit etc/sshd_config file and add this:
Subsystem sftp internal-sftp
Match Group Users
ChrootDirectory /home/%u
AllowTcpForwarding no
X11Forwarding no
ForceCommand internal-sftp
Also, edit etc/passwd file and change UID from any number to 0.
Example:
SvcCOPSSH:unused_by_nt/2000/xp:1065:545:...
Change into
SvcCOPSSH:unused_by_nt/2000/xp:0:545:...
After that restart your opensshd service ...
No comments:
Post a Comment