<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki-stadm.eri.ucsb.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mtc</id>
	<title>Stadm - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-stadm.eri.ucsb.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mtc"/>
	<link rel="alternate" type="text/html" href="https://wiki-stadm.eri.ucsb.edu/Special:Contributions/Mtc"/>
	<updated>2026-04-06T00:17:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://wiki-stadm.eri.ucsb.edu/index.php?title=Windows_Domain_SSH&amp;diff=2806</id>
		<title>Windows Domain SSH</title>
		<link rel="alternate" type="text/html" href="https://wiki-stadm.eri.ucsb.edu/index.php?title=Windows_Domain_SSH&amp;diff=2806"/>
		<updated>2015-07-10T22:25:02Z</updated>

		<summary type="html">&lt;p&gt;Mtc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Windows]]&lt;br /&gt;
&lt;br /&gt;
*Install Cygwin, for openssh you only need the openssh package but a few other tools will probably help(vim,wget,shutdown,rsync)&lt;br /&gt;
*Create a service domain account that we will used to be able to login through ssh from a domain joined  computer&lt;br /&gt;
&lt;br /&gt;
*Making the passwd file for Domain users:&lt;br /&gt;
 mkpasswd -d &amp;gt; /etc/passwd&lt;br /&gt;
 mkgroup -g &amp;gt; /etc/group&lt;br /&gt;
&lt;br /&gt;
*Making the passwd file for local users:&lt;br /&gt;
 mkpasswd -cl &amp;gt; /etc/passwd&lt;br /&gt;
 mkgroup -cl &amp;gt; /etc/group&lt;br /&gt;
&lt;br /&gt;
*Now you'll need to edit the passwd file and remove the hostname and/or domain name from the beginning of each user you'd like to be able to ssh into the system with.&lt;br /&gt;
&lt;br /&gt;
*on the local computer we need to add the Domain service account to certain groups&lt;br /&gt;
*Go to Administrative tools  in the Control Panel and open the Local Security Policy&lt;br /&gt;
*Navigate to&lt;br /&gt;
 Local Security Policy =&amp;gt; Security Settings =&amp;gt; Local Policies =&amp;gt; User Rights Assignment &lt;br /&gt;
*add domain user to these groups&lt;br /&gt;
 Act as part of the operating system&lt;br /&gt;
 Create a token object&lt;br /&gt;
 Deny log on through remote desktop services&lt;br /&gt;
 Log on as a service&lt;br /&gt;
 Replace a process level token&lt;br /&gt;
&lt;br /&gt;
*Setup sshd&lt;br /&gt;
 ssh-host-config&lt;br /&gt;
*We are going to answer yes to most of the default configuration, Except we will replace the user which is the service account used to run cygwin&lt;br /&gt;
*By default it creates this user under the name cyg_server, when asked if we would like to create this user we will say no and give the ssh-host-config script another user which has the appropriate permission to allow domain logins&lt;br /&gt;
*In our domain the user created for this purpose is cyg_service&lt;br /&gt;
*below shows a summary of what we will be saying yes and no too as long as with output from a setup&lt;br /&gt;
 Should privilege separation be used(yes/no)? Yes&lt;/div&gt;</summary>
		<author><name>Mtc</name></author>
		
	</entry>
</feed>