Skip to content

Instantly share code, notes, and snippets.

@sanmai
Created June 20, 2015 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sanmai/3401d567b6510fa830f4 to your computer and use it in GitHub Desktop.
Save sanmai/3401d567b6510fa830f4 to your computer and use it in GitHub Desktop.
torsocks -d ssh -v username@example.onion
$ torsocks -d ssh -v username@example.onion
[Jun 20 14:07:48] DEBUG torsocks[21916]: Logging subsytem initialized. Level 5, file (null), time 1 (in init_logging() at torsocks.c:286)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Config file not provided by TORSOCKS_CONF_FILE. Using default /etc/tor/torsocks.conf (in config_file_read() at config-file.c:531)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Config file setting tor address to 127.0.0.1 (in set_tor_address() at config-file.c:179)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Config file setting tor port to 9050 (in set_tor_port() at config-file.c:142)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [config] Onion address range set to 127.42.42.0/24 (in set_onion_info() at config-file.c:108)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Config file /etc/tor/torsocks.conf opened and parsed. (in config_file_read() at config-file.c:560)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [fclose] Close catched for fd 3 (in tsocks_fclose() at fclose.c:45)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [onion] Pool init with subnet 127.42.42.0 and mask 24 (in onion_pool_init() at onion.c:104)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [onion] Pool initialized with base 0, max_pos 255 and size 8 (in onion_pool_init() at onion.c:132)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Close catched for fd 3 (in tsocks_close() at close.c:33)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [fclose] Close catched for fd 3 (in tsocks_fclose() at fclose.c:45)
OpenSSH_6.7p1 Debian-6, OpenSSL 1.0.2a 19 Mar 2015
debug1: Reading configuration data /home/username/.ssh/config
[Jun 20 14:07:48] DEBUG torsocks[21916]: [fclose] Close catched for fd 3 (in tsocks_fclose() at fclose.c:45)
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
[Jun 20 14:07:48] DEBUG torsocks[21916]: [fclose] Close catched for fd 3 (in tsocks_fclose() at fclose.c:45)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Close catched for fd 3 (in tsocks_close() at close.c:33)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [getaddrinfo] Requesting example.onion hostname (in tsocks_getaddrinfo() at getaddrinfo.c:44)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Resolving example.onion on the Tor network (in tsocks_tor_resolve() at torsocks.c:527)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [onion] Finding onion entry for name example.onion (in onion_entry_find_by_name() at onion.c:229)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [onion] Creating onion entry for name example.onion (in onion_entry_create() at onion.c:174)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [onion] Entry added to the onion pool at index 0 (in insert_onion_entry() at onion.c:79)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [onion] Entry added with IP address 127.42.42.0 used as cookie (in onion_entry_create() at onion.c:207)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [getaddrinfo] Node example.onion resolved to 127.42.42.0 (in tsocks_getaddrinfo() at getaddrinfo.c:107)
debug1: Connecting to example.onion [127.42.42.0] port 22.
[Jun 20 14:07:48] DEBUG torsocks[21916]: [socket] Creating socket with domain 2, type 1 and protocol 6 (in tsocks_socket() at socket.c:33)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Connect catched on fd 3 (in tsocks_connect() at connect.c:112)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [connect] Socket family AF_INET and type 1 (in validate_socket() at connect.c:77)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [onion] Finding onion entry for IP 127.42.42.0 (in onion_entry_find_by_addr() at onion.c:268)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [onion] Onion entry name example.onion found in pool. (in onion_entry_find_by_addr() at onion.c:280)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Connecting to the Tor network on fd 3 (in tsocks_connect_to_tor() at torsocks.c:455)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Setting up a connection to the Tor network on fd 3 (in setup_tor_connection() at torsocks.c:350)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Socks5 sending method ver: 5, nmethods 0x01, methods 0x00 (in socks5_send_method() at socks5.c:212)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Socks5 received method ver: 5, method 0x00 (in socks5_recv_method() at socks5.c:245)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Socks5 sending connect request to fd 3 (in socks5_send_connect_request() at socks5.c:448)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Socks5 received connect reply - ver: 5, rep: 0x00, atype: 0x01 (in socks5_recv_connect_reply() at socks5.c:508)
[Jun 20 14:07:48] DEBUG torsocks[21916]: Socks5 connection is successful. (in socks5_recv_connect_reply() at socks5.c:512)
debug1: Connection established.
[Jun 20 14:07:48] DEBUG torsocks[21916]: Close catched for fd 4 (in tsocks_close() at close.c:33)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [fclose] Close catched for fd 4 (in tsocks_fclose() at fclose.c:45)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [fclose] Close catched for fd 4 (in tsocks_fclose() at fclose.c:45)
[Jun 20 14:07:48] DEBUG torsocks[21916]: [fclose] Close catched for fd 4 (in tsocks_fclose() at fclose.c:45)
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.7p1 Debian-6
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1 Debian-5
debug1: match: OpenSSH_6.7p1 Debian-5 pat OpenSSH* compat 0x04000000
[Jun 20 14:07:49] DEBUG torsocks[21916]: [fclose] Close catched for fd 4 (in tsocks_fclose() at fclose.c:45)
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr umac-64-etm@openssh.com zlib@openssh.com
debug1: kex: client->server aes128-ctr umac-64-etm@openssh.com zlib@openssh.com
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA 00:00:00:00:00:00:00:00:00:00:01
[Jun 20 14:07:50] DEBUG torsocks[21916]: [fclose] Close catched for fd 4 (in tsocks_fclose() at fclose.c:45)
debug1: Host 'example.onion' is known and matches the ECDSA host key.
debug1: Found key in /home/username/.ssh/known_hosts:1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
[Jun 20 14:07:51] DEBUG torsocks[21916]: [socket] Creating socket with domain 1, type 1 and protocol 0 (in tsocks_socket() at socket.c:33)
[Jun 20 14:07:51] DEBUG torsocks[21916]: Connect catched on fd 4 (in tsocks_connect() at connect.c:112)
[Jun 20 14:07:51] DEBUG torsocks[21916]: [conect] Connection is not IPv4/v6. Ignoring. (in validate_socket() at connect.c:63)
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/username/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Enabling compression at level 6.
[Jun 20 14:07:53] DEBUG torsocks[21916]: Close catched for fd 4 (in tsocks_close() at close.c:33)
debug1: Authentication succeeded (publickey).
[Jun 20 14:07:53] DEBUG torsocks[21916]: [getpeername] Requesting address on socket 3 (in tsocks_getpeername() at getpeername.c:38)
get_sock_port: getnameinfo NI_NUMERICSERV failed: ai_family not supported
[Jun 20 14:07:53] DEBUG torsocks[21916]: [onion] Destroying onion pool containing 1 entry (in onion_pool_destroy() at onion.c:148)
[Jun 20 14:07:53] DEBUG torsocks[21916]: [fclose] Close catched for fd 2 (in tsocks_fclose() at fclose.c:45)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment