Use this if you want to run a temporary SSH server and allow access with ssh keys.
This will mount /data
directory to the running container and expose port 22.
Simply run the image
sh start.sh
- Simply add
ssh/authorized_keys
file and add public key there - By default
start.sh
will make SSH listen on port2211
- you can change it in the script - Update
IP
andPORT
variables intest.sh
and run it to ensure it works