Configuring SFTP on PHPStorm with Vagrant

How to SFTP from a local machine into your Vagrant box (an alternative to directory syncing)

Go to >Prefences->Deployment...

  • Add a name
  • Set type to 'SFTP'
  • Set host
  • Set port
  • set root Path
  • set username
  • set auth type to 'key pair'
  • Use vagrant private key which will either be..
  • Set the web server root url

  • Set your Deployment path

  • Click on 'Deployment' arrow and select Options
  • Set Upload changed files... to On Explicit Save Action


Save a file and you should see the following window: