linux sftp user jailed into home directory

  • Check openssh version(Should newer than 4.8)

  • Edit ssh configuration file

  • Comment lines ‘Subsystem *’, add line:

  • Add lines from bottom of the conf file

  • Restart sshd service:

  • Create group

  • Create user

  • Correct directory ownership

  • Give password to your sftp user