Tunneling ssh via ssh with foxyproxy
Again. many things mixed up together. What are you trying to achieve? There are few things wrong, in your post:


Tunnel option in ssh_config does not do anything related to the SOCKS5 Proxy, which is the command you are describing. It is related to VPN and "ethernet" (layer 2) tunnelling, which is initiated by -w option
Port forwarding and SOCKS5 proxy (-D) is allowed by option AllowTcpForwarding in sshd_config on the server!
If you would really want to user layer 2, forwarding, you need root login on the remote server.