using Microsoft.AspNetCore.Mvc;
using NetPanel.Bl;
using System.Text;

namespace NetPanel.Controllers.SSH
{
    public class SSHController : Controller
    {
        public IActionResult SSH()
        {
            //SshBl sshBl = new SshBl("172.31.110.239", "root", "123456789");

            //StringBuilder sbStr = new StringBuilder();
            //string tt = "";
            //var reader = sshBl.RunCommand("uname -a");
            //string outStr = null;
            //while ((outStr = reader.ReadLine()) != null)
            //{
            //    sbStr.Append(outStr + "/r/n");
            //}

            //tt = sbStr.ToString();

            //reader = sshBl.RunCommand("uname -a");
            //outStr = null;
            //while ((outStr = reader.ReadLine()) != null)
            //{
            //    sbStr.Append(outStr);
            //}


            //tt = sbStr.ToString();

            //sshBl.Dispose();
            return View();
        }
    }
}
