First off...let me state...I am more knowledgeable of AIX than standard Linux so I am going to refer to what I do on AIX...
I have a set of servers that I have to use a ssh proxy to access. In AIX I was able to add a /etc/socks5c.conf file with the socks entries like this:
Destination / Netmask Socks5_proxy_server

ort (1080)
I then added SOCKS5C_CONFIG=/etc/socks5c.conf to /etc/environment and ALL users on this machine can now access the "Destination" server from above by doing:
ssh Destination (with no flags or anything).
I need to be able to do this on Linux also. I can NOT use -D/-P or whatever flags on the ssh for this server because I need to do this in a script that does ssh to various machines and none of the others use any weird -D/-P or whatever flags.
Is this possible?