

What do you mean by handling the keyfile?
You can generate your ssh keys outside of docker and make them available in the container through a mounted directory. You will need to manually copy the public key to your remote host authorized_keys
file anyway.
Rolling blunts. You just have to keep your hands dry