ssh -o ProxyCommand 'nc -X 5 -x 127.0.0.1:<SocksPort> %h %p' <onion service>
ssh -o ProxyCommand="ssh -W %h:%p -o ProxyCommand=\"nc -X 5 -x localhost:9050 <onion address> 22\" <onion address>" -vvv <host>
| # Example for tor client to connect to onion service | |
| HidServAuth <onion service> <auth from hostname> | |
| DataDir ~/.tor | |
| SocksPort 9050 # set the port of the proxy |
| # Example and configuration for onion services: | |
| HiddenServiceDir /home/moon/.tor2/sshd # Hidden service directory | |
| HiddenServicePort 22 127.0.0.1:22 # Port redirection <RPORT> <LPORT> | |
| HiddenServiceAuthorizeClient stealth kali # Stealth mode requires authentification | |
| SocksPort 0 # Disable proxy | |
| HiddenServiceSingleHopMode 1 # Make the onion circuit a single | |
| HiddenServiceNonAnonymousMode 1 # Goes with option above | |
| DataDirectory /home/moon/.tor # Global directory | |
| ## Check the hostname /home/moon/.tor/sshd/hostname |
proxychainssock4 to sock5 in the configuration