Cygwin quickstart: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
** Put the shortcut in the task bar; right-click > properties > advanced > Run as Administrator (so we can run services)
** 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:
  openssh stow xorg-server git tig
# added procps-ng for [watch]
* SCRIPT this:
  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 16: 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/