4AllDigital / DruDockCli

Drudock CLI utility for managing docker development, staging and production environments for Drupal websites and apps.
https://www.4alldigital.io/dockerdrupal-cli
MIT License
2 stars 1 forks source link

SSH command buggy #192

Open joemewes opened 6 years ago

joemewes commented 6 years ago
joemewes@Joes-Mac-Pro /Volumes/HD1/SITES/project.com                                                                                                                                                 [18:13:40] 
> $ drudock app:ssh                                                                                                                                                                                               

Notice: Undefined variable: cmd in phar:///usr/local/bin/drudock/src/Command/App/SSHCommand.php on line 59

PHP ::: drush 
--------------

Notice: Undefined variable: system_appname in phar:///usr/local/bin/drudock/src/Command/App/SSHCommand.php on line 64
APP ::: SSH projectname
----------------

 [ERROR] SSH key missing at `./docker_project/config/php/drudock`                                                          

Warning: Identity file ./docker_/config/php/drudock not accessible: No such file or directory.
joemewes commented 6 years ago

needs to :

mediaashley commented 6 years ago

Rejigging this a little improves things a lot.

Do we need to look at setting the folder permissions?

ashleyhazle@Ashleys-MBP:~/Sites/who$ drudock app:ssh

APP ::: SSH who
---------------

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0755 for './docker_who/config/php/authorized_keys' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "./docker_who/config/php/authorized_keys": bad permissions
root@drudock.dev's password: