Cygwin quickstart: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
 
(6 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!
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
* Download and install Git for Windows (or install as part of cygwin?  i'll try that next time)
** Put the shortcut in the task bar; right-click > properties > advanced > Run as Administrator (so we can run services)
* Download and install npm for Windows (seems to integrate)
* Select the following packages:
* Select the following packages:
  openssh
  # added procps-ng for [watch]
  stow
  openssh stow xorg-server git tig procps-ng bash-completion
xorg-server
* Let cygwin create an entire new Windoze account:
TODO: git
* SCRIPT this:
  # 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 19: Line 17:
  cygrunsrv -S sshd
  cygrunsrv -S sshd
   
   
# To use pem files or keys, you must strip permissions:
* Copy this into place:
  rclick > Properties > Security > Advanced > Disable inheritance > Copy existing > remove everyone, domain (only mbehrnsm remains)
  C:\cygwin64\home\mbehrnsm\.ssh\2018
# where is cygwin stuff?
$ cygpath.exe -w ~
  C:\cygwin64\home\mbehrnsm


                                    i copied into here, need to make it official later
* To use pem files or keys, you must strip permissions:
                                        C:\cygwin64\home\mbehrnsm\.ssh\id_rsa
  rclick id.rsa > Properties > Security > Advanced > Disable inheritance > remove everything
                                        C:\cygwin64\home\mbehrnsm\.ssh\id_rsa.pub
* Then you can scp the rest
                                        C:\cygwin64\home\mbehrnsm\.ssh\known_hosts
scp -i .ssh/2018/id_rsa bitpost.com:.ssh/authorized_keys .ssh/
                                        C:\cygwin64\home\mbehrnsm\.ssh\authorized_keys
scp -i .ssh/2018/id_rsa bitpost.com:.ssh/config .ssh/
                                        C:\cygwin64\home\mbehrnsm\.ssh\config
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/