Post: C# help me
08-18-2015, 02:33 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I want to connect to my vps and run a command through c# coding.
(adsbygoogle = window.adsbygoogle || []).push({});
08-18-2015, 11:11 PM #2
Hi MrMods

Connecting to your VPS needs to be done via SSH. You should take a look at the You must login or register to view this content.

Kind regards,
Jordan

The following user thanked Jordan.H for this useful post:

Chen Madhala
08-28-2015, 04:46 PM #3
Scouse Power
Knowledge is power
Originally posted by xMrMods View Post
I want to connect to my vps and run a command through c# coding.


You're going to have to be a little bit more specific;
- what os?

You could either;
- Connect using ssh (much easier option).
- Create a socket listener, which will receive data and run a code block depending on what you sent. For example; running a command on command line.
08-29-2015, 09:18 PM #4
Originally posted by StackOverflow View Post
You're going to have to be a little bit more specific;
- what os?

You could either;
- Connect using ssh (much easier option).
- Create a socket listener, which will receive data and run a code block depending on what you sent. For example; running a command on command line.


i want to connect using ssh.
08-29-2015, 09:49 PM #5
Scouse Power
Knowledge is power
Originally posted by xMrMods View Post
i want to connect using ssh.

Download SSH.NET You must login or register to view this content..
    using (SshClient ssh = new SshClient("server_host_or_ip", "username", "password"))
{
ssh.Connect();
ssh.RunCommand("command here");
ssh.Disconnect();
}

The following 2 users say thank you to Scouse Power for this useful post:

Im_YouViolateMe, Trefad

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo