proxy socks via tunnel SSH avec Synology, Putty et C# .NET

Following this nice tutorial (quite old but good anyways ) :

Here is the same thing, but aotumatised in C#: don’t forget to replace YOUR_SYNOLOGY_DNS_OR_IP_HERE  with your synology address or DNS name

and also your syno admin password instead of  YOUR_SYNOLOGY_PASSWORD_HERE

you can’t slightly change code to not have to type your password every new connection (Console.ReadLine()…and remove: