I got this to work by doing this:
@using Renci;
@using Renci.SshNet;
@using Renci.SshNet.NetConf;
@using Renci.SshNet.Common;
@using Renci.SshNet.Channels;
@using Renci.SshNet.Compression;
@using Renci.SshNet.Sftp;
@using Renci.SshNet.Security;
@using Renci.SshNet.Messages;
@{
var RemoteHost = "server";
var RemoteUserName = "user";
var RemotePassWord = "password";
var connectionInfo = new PasswordConnectionInfo(RemoteHost, RemoteUserName, RemotePassWord);
var ssh = new SshClient(connectionInfo);
ssh.Connect();
var terminal = ssh.RunCommand("ls -l");
Response.Write(terminal.Result);
}