Skip to content

missing ssh-keygen command when executing on M1 mac #261

@triceam

Description

@triceam

When executing the cli-tools:v1 image on a M1 Mac, you get a ssh-keygen: command not found error message when running setup-workspace.sh for FS or Z automation:

/terraform $ ./setup-workspace.sh -t small -a vpc                                                       
Setting up workspace in '/terraform/../workspaces/current'
*****              
Generating ssh keys                                                                                     
/terraform/create-ssh-keys.sh: line 6: ssh-keygen: command not found
/terraform/create-ssh-keys.sh: line 7: ssh-keygen: command not found
/terraform/create-ssh-keys.sh: line 8: ssh-keygen: command not found
Setting up workspace from 'small' template
*****                        
Setting up automation  /workspaces/current                                                              
Setting up current/000-ibm-zdev-account-setup from 000-ibm-zdev-account-setup
Setting up current/100-ibm-zdev-shared-services from 100-ibm-zdev-shared-services
Setting up current/110-ibm-zdev-network-vpc from 110-ibm-zdev-network-vpc
Setting up current/120-ibm-zdev-development-vpc from 120-ibm-zdev-development-vpc
move to /workspaces/current this is where your automation is configured

You can get around this by running the following inside the cli-tools container:

sudo apk add openssh-keygen

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions