Cygwin quickstart: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
Line 7: Line 7:
  # added procps-ng for [watch]
  # added procps-ng for [watch]
  openssh stow xorg-server git tig procps-ng
  openssh stow xorg-server git tig procps-ng
* SCRIPT this:
* 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:
* Copy this into place:
  C:\cygwin64\home\mbehrnsm\.ssh\2018
  C:\cygwin64\home\mbehrnsm\.ssh\2018


To use pem files or keys, you must strip permissions:
* To use pem files or keys, you must strip permissions:
   rclick id.rsa > Properties > Security > Advanced > Disable inheritance > remove everything
   rclick id.rsa > Properties > Security > Advanced > Disable inheritance > remove everything
Then you can scp the rest
* 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/authorized_keys .ssh/
  scp -i .ssh/2018/id_rsa bitpost.com:.ssh/config .ssh/
  scp -i .ssh/2018/id_rsa bitpost.com:.ssh/config .ssh/
  scp -i .ssh/2018/id_rsa bitpost.com:.ssh/known_hosts .ssh/
  scp -i .ssh/2018/id_rsa bitpost.com:.ssh/known_hosts .ssh/

Revision as of 15:49, 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
  • 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/