A sandbox container with last version of Mono environment ready to be exploited for Mono app from Linux or Windows host.
Easy method to produce a light terminal containers to run Mono app into sandbox from secured host to remote client with SSH.
Based from Docker official version image but not including mono-complete...
Around 400 Mb.
docker pull marchandd/term_ssh_root_mono
:warning: If your Firewall is enabled on the host, with default outgoing policy turned to
you will have to disable 22 port filtering:
- Make a new rule for OpenSSH (22/TCP) to enable outgoing policy.
docker run -d -p XXX.XXX.XXX.XXX:YYYYY:22 --name latest_term_ssh_root_mono marchandd/term_ssh_root_mono
Where XXX.XXX.XXX.XXX is your IP v4 address.
Where YYYYY is your Private port, if you doesn't know free port, try from 49200...
Command line explanation
- Run in detached mode.
- Export port 22.
Open terminal with root/administrator account.
Basic fixed password for Docker public repository = 'term_ssh_root_mono'
ssh -X root@XXX.XXX.XXX.XXX -p YYYYY
mono -V display v4.0.4 (at 20151117)
- Make dynamic root password and display it into logs.
- Change config for SSH daemon.
- Give Supervisor management for OpenSSH server.
- Expose SSH port.
Make sure to have installed OpenSSH client or GUI SSH client (Putty).
Root account from container is exposed.
A password is used and not a certificate that could be more secure.