protected override JSch GetJSch(OpenSshConfig.Host hc, FS fs) { JSch.SetConfig("StrictHostKeyChecking", "no"); // automatic acceptance for known host if 'known_hosts' is missing var jsch = base.GetJSch(hc, fs); var homePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); var sshPath = homePath + @"\.ssh"; jsch.AddIdentity(sshPath + @"\id_rsa"); jsch.SetKnownHosts(sshPath + @"\known_hosts"); return(jsch); }