Phpstorm Sshfs



FeaturesNewsletterTutorials

  1. Phpstorm Ssh Jump
  2. Phpstorm Ssh
  3. Phpstorm Ssh Console
  4. Phpstorm Ssh Key
  5. Phpstorm Ssh Terminal

When you work with remote servers, a common and recommended security measure is to use SSH key pairs for authentication.

Phpstorm

Stemwinder / transient-clustering-gnu-parallel-sshfs.md Created Oct 7, 2017 — forked from Brainiarc7/transient-clustering-gnu-parallel-sshfs.md How to set up a transient cluster using GNU parallel and SSHFS for distributed jobs (such as FFmpeg media encodes). I don't know about NetBeans, but PhpStorm has a feature that allows uploading files as soon as they change to a server (via FTP or SSH). I don't have a lot of experience with this feature but it does seem to work well. PhpStorm can also be configured to deploy changes that occurred outside (it seems to do so as soon as it regains focus). PHPStorm provides a simple way of changing JVM options. From the main menu, choose Help Edit Custom VM Options Change Xmx value to a higher value. Default value is 750m.

Our friends at PyCharm have prepared a great blog post on the topic. It explains how to generate an SSH key pair, store the passphrase for the private key in the credential helper, and, in the end, how to connect to a remote Python interpreter over SSH using the generated key pair for authentication.

Before proceeding, make sure that you have a remote machine at hand to which you can connect over SSH using the generated key pair. Also, make sure to add your key to the credential helper application (SSH agent, Pageant, or a compatible tool). If you don’t have a spare remote machine, you can use the example Vagrant box provided as part of the above tutorial.

When ready, jump right into the PhpStorm specifics.

In PhpStorm, we can make use of SSH keys and credential helper applications in two areas: when configuring remote deployment servers and remote PHP interpreters. Both scenarios involve the same setup technique, and we can actually reuse an existing remote deployment server configuration for setting up an interpreter.

Setting up a remote deployment server

To connect to a remote deployment server over SSH, we need to create a new server access configuration of the SFTP type.

Navigate to Settings / Preferences | Build, Execution, Deployment | Deployment. Then, click + to add a new SFTP server:

Phpstorm Ssh Jump

Next, provide the server parameters:

In this tutorial, we’ll use the values that will allow us to connect to the example Vagrant box:

  • SFTP host: localhost
  • Port: 2222 (the default port that Vagrant exposes for SSH).
  • User name: example
  • Auth type: Authentication agent (ssh-agent or Pageant)
RemoteSshfs

By setting authentication method to Authentication agent, you’re instructing PhpStorm to use the credentials stored in the credential helper application (SSH agent, Pageant, or a compatible tool).

Phpstorm ssh key

Once the parameters are set, test your connection, apply the changes, and you’re good to go!

The remote server that we have configured will probably handle our PHP code as well. We can reuse its configuration for setting up a remote PHP interpreter. First, let’s ensure that PHP is installed on the remote server. Select Tools | Start SSH Session… in the main menu and select the remote host in the pop-up window:

Since your SSH keys are managed by the credential helper, the SSH session should instantly start in the built-in PhpStorm terminal without requiring you to type anything. To find out whether PHP is installed, run the php -v command:

The command is not found, which means that PHP is not installed. We can easily fix this by running the following command:

sudo apt-get install php

Note that this command requires elevated privileges, i.e. entering your password. In our Vagrant box, the password for the example user is set to hunter2. Type it in when prompted, and wait a short while until PHP is installed. To be absolutely sure, you can run the php -v command once more:

Phpstorm Ssh

Terminal

Setting up a remote PHP interpreter

PHP is now installed on a remote server, and instructing PhpStorm to use it could not be simpler. Navigate to Settings / Preferences | Languages & Frameworks | PHP and click the ellipsis (…) button next to the CLI Interpreter field:

In the opened CLI Interpreters window, click + and select the From Docker, Vagrant, VM, Remote… interpreter type:

PhpStorm will detect a remote deployment server configuration that we created earlier and will suggest reusing it as a configuration for the remote interpreter:

Click OK, apply your changes, and you are done! You can now upload, download, and manage remote files directly in PhpStorm, as well as execute your PHP code remotely.

As a side note, if you need to set up only a remote PHP interpreter, without reusing an existing deployment configuration, choose the SSH Credentials option in the above dialog box. Provide the server parameters and select the Authentication agent (ssh-agent or Pageant) authentication type – just as you would for configuring a remote deployment server.

Phpstorm Ssh Console

JetBrains PhpStorm Team
The Drive to Develop

Jan 27th, 2016

Phpstorm Ssh Key

Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
  1. Tools we use for PM for project management and communication
  2. * git for code and structured docs
  3. * markdown (in github) and textile (in redmine)
  4. * TextMate and Atom for text editing
  5. * xDebug as a debugging backend
  6. * StackOverflow for questions
  7. * Mozilla's JS reference
  8. * Adium
  9. * Google Translate
  10. Project management:
  11. * Basecamp (client communications, email tracking)
  12. * Google docs + google spreadsheets + google calendar
  13. * gist.github.com for easily sharing code or document snippets
  14. Technical infrastructure:
  15. * github + gitlab for repositories management
  16. * CircleCI for continuous integration
  17. * docker for quick containers
  18. * Proxmox / docker on OVH for our company's hosting infrastructure
  19. * squid-deb-proxy
  20. Web:
  21. * Drupal for our corporate site
  22. * Chrome Extensions: xDebug helper, Blackfire, Check My Links, Dreditor, Proxy SwitchyOmega, uBlock
  23. Custom stuff:
  24. * drupalsun - nice UI on Drupal Planet RSS feeds
  25. * dozen redmine plugins, including redmine-git-remote
  26. * md2prez.sh
  27. OSX utilities:
  28. * clipmenu
  29. * KeePassX
  30. * Mail notifr
  31. * GrabBox
  32. Command line:
  33. * make for build scripts
  34. * ngrok
  35. * ncdu
  36. * dockviz
  37. * colordiff
  38. * pwgen

Phpstorm Ssh Terminal

RAW Paste Data