- First run the Tor proxy docker :
docker run -d --restart always -v /etc/localtime:/etc/localtime:ro -p 127.0.0.1:9050:9050 --name torproxy jess/tor-proxy
- Then launch your ssh-client docker :
docker run --rm --link torproxy:torproxy -v $HOME/.ssh/id_rsa:/id_rsa:ro -it okampfer/ssh-client -o ProxyCommand="nc -x torproxy:9050 %h %p" -i /id_rsa @ -p 22