Hi!
You can't use SSH machine as a primary machine. This functionality is not implemented yet. So you have to use docker for that.
This machine hosts CHE tooling for file editing, etc.
If possibility to execute commands in terminal right on AMI instance fits your needs you can use SSH machine for that. It will be secondary machine.
Che tooling won't be able to use PHP installed right in the AMI instance because it is in the container. But you will be able to access your files in console of SSH machine
and using API of CHE deployed in docker container.
To add secondary ssh machine to your workspace add next JSON to workspace JSON on workspace creation.
{
"name": "my_ssh_machine",
"type": "ssh",
"source": {
"type": "ssh-config"
},
"dev": false
}
So workspace JSON should looks like:
{
"name" : ...,
"defaultEnv" : "my_env",
"environments" : [
{
"name" : "my_env",
"machineConfigs" : [
{
PRIMARY MACHINE JSON
},
{
SECONDARY SSH MACHINE
}
]
}
]
}
It looks like:
{
"host": "127.0.0.1",
"port": 22,
"username": "root",
"password": "root"
}
You just need to configure SSHD to allow connection with password. If you don't want to expose password protected SSHD you can configure it to allow password access only from localhost.
Best regards,
Alexander