Cygwin quickstart: Difference between revisions
No edit summary  | 
				No edit summary  | 
				||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Cygwin is ESSENTIAL to set up sshd so you can use Windows as a jump box.  But it won't ever have i3.  So don't spend too much time there!  | |||
* Download and install npm for Windows (seems to integrate)  | |||
* Download cygwin  | * Download cygwin  | ||
*   | ** Put the shortcut in the task bar; right-click > properties > advanced > Run as Administrator (so we can run services)  | ||
* Select the following packages:  | * Select the following packages:  | ||
  # added procps-ng for [watch]  | |||
  stow  |   openssh stow xorg-server git tig procps-ng bash-completion  | ||
* Let cygwin create an entire new Windoze account:  | |||
*   | |||
  # from : http://www.noah.org/ssh/cygwin-sshd.html  |   # from : http://www.noah.org/ssh/cygwin-sshd.html  | ||
  RUN AS ADMIN: cygwin prompt  |   RUN AS ADMIN: cygwin prompt  | ||
| Line 17: | Line 17: | ||
  cygrunsrv -S sshd  |   cygrunsrv -S sshd  | ||
* Copy this into place:  | |||
  C:\cygwin64\home\mbehrnsm\.ssh\2018  | |||
  C:\cygwin64\home\mbehrnsm  | |||
* To use pem files or keys, you must strip permissions:  | |||
   rclick id.rsa > Properties > Security > Advanced > Disable inheritance > remove everything  | |||
* Then you can scp the rest  | |||
 scp -i .ssh/2018/id_rsa bitpost.com:.ssh/authorized_keys .ssh/  | |||
 scp -i .ssh/2018/id_rsa bitpost.com:.ssh/config .ssh/  | |||
 scp -i .ssh/2018/id_rsa bitpost.com:.ssh/known_hosts .ssh/  | |||
Latest revision as of 16:59, 16 June 2018
Cygwin is ESSENTIAL to set up sshd so you can use Windows as a jump box. But it won't ever have i3. So don't spend too much time there!
- Download and install npm for Windows (seems to integrate)
 - Download cygwin
- Put the shortcut in the task bar; right-click > properties > advanced > Run as Administrator (so we can run services)
 
 - Select the following packages:
 
# added procps-ng for [watch] openssh stow xorg-server git tig procps-ng bash-completion
- Let cygwin create an entire new Windoze account:
 
# from : http://www.noah.org/ssh/cygwin-sshd.html RUN AS ADMIN: cygwin prompt > right click taskbar icon, right-click CygWin64 Terminal, "run as admin" ssh-host-config -y # this will create a new WINDOWS USER cyg_server # Start the sshd daemon oh yeah! cygrunsrv -S sshd
- Copy this into place:
 
C:\cygwin64\home\mbehrnsm\.ssh\2018
- To use pem files or keys, you must strip permissions:
 
rclick id.rsa > Properties > Security > Advanced > Disable inheritance > remove everything
- Then you can scp the rest
 
scp -i .ssh/2018/id_rsa bitpost.com:.ssh/authorized_keys .ssh/ scp -i .ssh/2018/id_rsa bitpost.com:.ssh/config .ssh/ scp -i .ssh/2018/id_rsa bitpost.com:.ssh/known_hosts .ssh/