Answer the question
In order to leave comments, you need to log in
How to programmatically connect to a database on nic.ru hosting?
nic.ru itself refers to SSH tunneling. Okay, let's do it (using SSH.NET):
using (var sshClient = new SshClient("ssh.login.nichost.ru", "login", "pass"))
{
sshClient.Connect(); // Тут вываливается экзепшн.
var cmd = sshClient.RunCommand("ls"); // Пока что
var output = cmd.Result; // для примера.
// До туннелирования и подключения к БД дело даже не доходит.
}
Answer the question
In order to leave comments, you need to log in
Probably you need to first connect through Putty, otherwise there is no point in trying to programmatically connect to a non-working server
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question