Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ssh]

Secure Shell - a network protocol for exchanging data throughout secure channel with most common uses of remote command execution (remote shell/console) and file transfer.

-1
votes
2answers
71 views

MySQL through SSH tunnel

I'm trying to connect my Drupal 8 website to a mysql database hosted on a different server, which is only accessible through SSH. I can connect my database manager (heidiSQL) with a SSH tunnel, but i ...
1
vote
1answer
34 views

Is “parent” supported in Drush 9 aliases?

Is the "parent" key supported in Drush 9? It isn't in the example file here https://github.com/drush-ops/drush/blob/master/examples/example.site.yml or drush docs:aliases and I am trying to get a ...
0
votes
1answer
35 views

Using Drush on shared hosting without `curl` and `wget`

I have a Drupal 7 site installed on shared hosting. And installed Drush:8.1.17 with composer and cgr all is working well except drush up because hosting provider does not support curl or wget on ...
0
votes
0answers
351 views

drush sql-sync: “The external command could not be executed due to an application error.”

When I execute drush sql-sync @production @local -d to get a database from the server to local, I get the following error after login with ssh: The external command could not be executed due to an ...
1
vote
2answers
171 views

Acquia cloud installing a module: private key file

I'm currently building a CMS using Drupal 8 hosted in Acquia Cloud. At this time of the process, the goal was to do the setup of URL Patterns. In order to do this, I need to install the module ...
0
votes
0answers
301 views

How to configure Drush launcher on mac sierra?

I´ve installed drush on my mac sierra following the instructions from http://docs.drush.org/en/master/install/ but when i try run a command drush, this indicate the next instruction: The Drush ...
0
votes
1answer
388 views

How to apply .diff and .patch file by SSH? [closed]

I use Drupal 7 and I read every article about applying patches, but I don't understand how to apply patches to Drupal files using SSH. I am administrator of a Linux server that hosts a Drupal site. ...
0
votes
1answer
194 views

How to setup “drush @mysite.env ssh” command?

I am trying to create a custom drush command in which I have to access another remote environment and run some drush commands there. The problem is I am unable to ssh to another environment e.g, "dev" ...
3
votes
1answer
2k views

The installation directory “/root” is not writable - Error when install Drush

i want to install drush on my server . I want to install drush-toolbox project globaly on my linux server box so all users can use it My server: Cpanel , Litespeed , Cagefs , Cloudlinux (centos 6) ...
0
votes
1answer
130 views

Update module to dev without Drush

Is there a simple way to update a module to the dev version without Drush? Ideally, within the admin console, but I could also use ssh to manually loa the files to the correct places. For the purposes ...
2
votes
2answers
811 views

run a drush command with another user

I am using drupalvm to manage my vagrant machines and I want to be able to be able to log into the vagrant machine and run drush to sync with the dev/stage/prod environments. I cannot do this without ...
1
vote
0answers
120 views

Drush hangs only when executing a command on a remote machine

I am trying to use Drush to synchronise a local dev version of my Drupal site and I've set up the following alias file (spc.aliases.drushrc.php) in my .drush directory to allow Drush to connect ...
0
votes
2answers
355 views

Drush to remote server returns nothing

I am getting permission denied publickey password when I type drush @prod (alias for my production site on shared bluehost.com) status Both drush @dev (alias for my local site running on Win 7) ...
0
votes
1answer
683 views

Acquia Drush Access

We are hosting a couple of sites on Acquia Cloud. Up to now I have SSH into the servers when I needed to execute any drush commands, but I want to start using drush on my local dev machine to execute ...
1
vote
2answers
366 views

drush sqlq --file on remote server with local file

Im trying to run run write a command where I can execute remote queries stored local. I was trying: drush @remote.master sqlq < src/sql/data.sql but no luck, also tried the option --file=path/to/...
0
votes
1answer
3k views

How can I view my log files via ssh?

I currently cannot access http://example.com/admin/reports/dblog as I cannot authenticate as an admin as my page is getting a 500 error. I wonder if there is an actual location on my production ...
3
votes
1answer
3k views

How to best handle “sudo: no tty present and no askpass program specified”?

I have custom Drush commands that contain shell commands with 'sudo' included. This results in an error when calling with remote alias to execute on remote instance: drush @remote-alias custom-...
0
votes
1answer
241 views

drush inheritance, site-ssh and site-list

It's possible I'm going about this all wrong, and I should be setting up my aliases file differently. We have a set up with 4 load-balanced production servers running the same code and accessing the ...
0
votes
1answer
3k views

Drush aliases and Permission denied (publickey,password) problem

Im trying to use Drush Aliases but getting Permission denied (publickey,password) error. I can login to server using publickey without password but Drush can not. I've read the solution mentioned ...
1
vote
2answers
239 views

How to pass wildcard via drush exec?

How to pass wildcard via drush exec on remote host (via ssh)? I've tried already: $ drush @foo exec 'ls -al *' $ drush @foo exec "ls -al *" sh: 1: ls -al *: not found Command 'ls -al *' failed. $ ...
8
votes
3answers
3k views

How do you write a drush alias for a local Vagrant box?

I'm trying to write a simple drush alias to connect to a Drupal site running on a local Vagrant instance. I have the following in a file called ~/.drush/l.aliases.drushrc.php: $aliases['o'] = array( ...