File: appveyor_ssh2localhost.bat

package info (click to toggle)
datalad 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,132 kB
  • sloc: python: 69,299; sh: 1,521; makefile: 220
file content (13 lines) | stat: -rw-r--r-- 735 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
REM authorize access with these keys
copy C:\Users\appveyor\.ssh\id_rsa.pub c:\Users\appveyor\.ssh\authorized_keys
REM OpenSSH server setup
appveyor DownloadFile https://github.com/PowerShell/Win32-OpenSSH/releases/download/v7.6.1.0p1-Beta/OpenSSH-Win32.zip -FileName C:\DLTMP\openssh.zip
7z x -o"C:\DLTMP" C:\DLTMP\openssh.zip
REM install
powershell.exe -ExecutionPolicy Bypass -File C:\DLTMP\OpenSSH-Win32\install-sshd.ps1
REM configure service
powershell.exe New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
REM fire up service
net start sshd
REM deploy standard SSH config
copy tools\ci\appveyor_ssh_config c:\Users\appveyor\.ssh\config