How mass check ssh`s?

Oct 1, 2015 at 7:26 PM
I try create mass ssh chekcer. "input.txt" contains such data as
ip1;login1;pass1
ip2;login2;pass2
When i check in one thread all good. But when i run in 8 threads its no correct work.
List<string> list = new List<string>();
            list.AddRange(File.ReadAllLines("input.txt"));
            Parallel.For(0, list.Count, i =>
            {
                var ip = list[i].Split(';')[0];
                var login = list[i].Split(';')[1];
                var pass = list[i].Split(';')[2];
                using (var client = new SshClient(ip, login, pass))
                {
                    client.Connect();

                    var port = new ForwardedPortLocal("localhost", 10000, "remote.net", 80);
                    client.AddForwardedPort(port);


                    port.Start();
                    port.Stop();
                    client.Disconnect();
                }
            });