How to setup public ssh keys on Solace container?

Hi Uli,

Thank you for the response, but I am still having issues/questions. The answer to your initial question is yes it is deployed as a container, however, I did not setup the container - I used one of the aws default ec2 images that you have made available on the marketplace (using Solace v9.2.0.14). Also, just to avoid confusion, I would like to use the following cli names - I am using a bash shell on my laptop to do all of this which will be called “dev cli”, the standard cli of the ec2 instance that is running the Solace image will be called “ec2 cli”, the Solace-specific cli that I am in when I run solacectl cli on the ec2 instance will be called “solace cli” - there’s also a 4th cli that I can get to by running solacectl shell - this will be called “solace shell”.

Regarding your proposed solutions, for #1, using username/password on the external server is not an option for me, and in addition to that, everything I can find about passing a password to sftp/scp command requires some other program (sshpass) to be able to pass it, but I can’t install sshpass on the solace cli to be able to do that - so how do I even use username/password with sftp/scp from the solace cli out to/from an external server? For #2, I added a file transfer user using the solace cli command detailed here: Configuring File Transfer User Accounts and then tried to use those credentials (using the sshpass tool) to sftp/scp from both the ec2 cli and my dev cli and got “Permission denied (publickey,gssapi-keyex,gssapi-with-mic).” for both cases. When I run docker cp, as in #3, I can see the file in the file system via the solace shell but don’t know how to get it from there to be visible in the solace cli file system. For #4, I wasn’t sure which volume to use to map to the file system shown here: Event Broker File Management. When I run docker inspect solace on the ec2 instance, I see the following volumes:

"Mounts": [ { "Type": "volume", "Name": "adbBackup", "Source": "/var/lib/docker/volumes/adbBackup/_data", "Destination": "/usr/sw/adb", "Driver": "local", "Mode": "z", "RW": true, "Propagation": "" }, { "Type": "volume", "Name": "internalSpool", "Source": "/var/lib/docker/volumes/internalSpool/_data", "Destination": "/usr/sw/internalSpool", "Driver": "local", "Mode": "z", "RW": true, "Propagation": "" }, { "Type": "volume", "Name": "adb", "Source": "/var/lib/docker/volumes/adb/_data", "Destination": "/usr/sw/internalSpool/softAdb", "Driver": "local", "Mode": "z", "RW": true, "Propagation": "" }, { "Type": "volume", "Name": "jail", "Source": "/var/lib/docker/volumes/jail/_data", "Destination": "/usr/sw/jail", "Driver": "local", "Mode": "z", "RW": true, "Propagation": "" }, { "Type": "volume", "Name": "var", "Source": "/var/lib/docker/volumes/var/_data", "Destination": "/usr/sw/var", "Driver": "local", "Mode": "z", "RW": true, "Propagation": "" }, { "Type": "volume", "Name": "diagnostics", "Source": "/var/lib/docker/volumes/diagnostics/_data", "Destination": "/var/lib/solace/diags", "Driver": "local", "Mode": "z", "RW": true, "Propagation": "" }

Thank you in advance for any further insight/help you can provide.