How do I set a default SFTP path? How do I set a default SFTP path?

How do I set a default SFTP path?

Anton Karpov Anton Karpov

The app doesn't yet provide a way to set a default SFTP path for a host / local host.

However, here's what you can do in the case an OpenSSH server:

  1. Open the sshd_config file on the server you're connecting to.
  2. Add -d "<path>" at the end of the line beginning with Subsystem sftp, e.g:
    Subsystem sftp /usr/libexec/sftp-server -d "/home/etc/www/Mysite/plugins"

<path> will act as the default SFTP directory on this server.

Add comment

Please sign in to leave a comment.

Comments

2 comments

  • D3xh4ck3r

    when i do this on windows, SFTP session doesn't run anymore (i set my onw path)

    D3xh4ck3r
    0
  • D3xh4ck3r

    I just add it above as ChrootDirectory and its worked

     

    D3xh4ck3r
    0