Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH command buggy #192

Open
joemewes opened this issue Feb 3, 2018 · 2 comments
Open

SSH command buggy #192

joemewes opened this issue Feb 3, 2018 · 2 comments
Assignees
Labels

Comments

@joemewes
Copy link
Member

joemewes commented Feb 3, 2018

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 joemewes self-assigned this Feb 3, 2018
@joemewes joemewes added the bug label Feb 3, 2018
@joemewes
Copy link
Member Author

joemewes commented Feb 3, 2018

needs to :

  • set $cmd var
  • set $system_appname var
  • check for existence of SSH key missing and ask to generate if not ??
  • generate ssh-key??

mediaashley referenced this issue in mediaashley/DruDockCli Feb 3, 2018
@mediaashley
Copy link
Contributor

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: 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants