博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【转】Install Win32 OpenSSH (test release)
阅读量:4595 次
发布时间:2019-06-09

本文共 1658 字,大约阅读时间需要 5 分钟。

Openssh download url:https://github.com/PowerShell/Win32-OpenSSH/releases

Install instruction:

Install Win32 OpenSSH (test release)

  1. Note  and  first.

  2. Download the  build of OpenSSH. To get links to latest downloads .

  3. Extract contents of the latest build to C:\Program Files\OpenSSH (Make sure binary location has the Write permissions to just to SYSTEM, Administrator groups. Authenticated users should and only have Read and Execute.)

  4. In an elevated Powershell console, run the following

    • powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1
  5. Open the firewall for sshd.exe to allow inbound SSH connections

    • New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22

    Note: New-NetFirewallRule is for Windows 2012 and above servers only. If you're on a client desktop machine (like Windows 10) or Windows 2008 R2 and below, try:

    netsh advfirewall firewall add rule name=sshd dir=in action=allow protocol=TCP localport=22
  6. Start sshd (this will automatically generate host keys under %programdata%\ssh if they don't already exist)

    • net start sshd
  7. Optional

    • To configure a default shell, see 
    • To setup sshd service to auto-start
      • Set-Service sshd -StartupType Automatic
    • To migrate sshd configuration from older versions (0.0.X.X), see 

Uninstall Win32 OpenSSH

  • Start Windows Powershell as Administrator
  • Navigate to the OpenSSH directory
    • cd 'C:\Program Files\OpenSSH'
  • Run the uninstall script
    • powershell.exe -ExecutionPolicy Bypass -File uninstall-sshd.ps1
 

https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH

转载于:https://www.cnblogs.com/keepSmile/p/10664053.html

你可能感兴趣的文章
通过AutoExpand调试Unreal内置数据类型
查看>>
vue-resource
查看>>
android监听返回按钮
查看>>
运输层和TCP/IP协议
查看>>
DBX Error: Driver could not be properly initialized..解决办法
查看>>
[转帖] Linux运维基础知识学习内容
查看>>
手机浏览器一键跳转微信公众号关注的方法
查看>>
如何使用 VS2015 进行远程调试?
查看>>
EL表达式
查看>>
博客页面练习
查看>>
NOI 4978 宠物小精灵之收服(二维背包)
查看>>
配置信息写入到.ini文件中的方法
查看>>
treeview展开一个节点就关闭其他节点
查看>>
My First J2ME
查看>>
为Atmega328P定制bootloader 添加自己的板卡到Arduino IDE
查看>>
本地SVN服务器的搭建(WINDOWS环境)
查看>>
大型运输行业实战_day09_1_日期转换与My97DatePicker插件使用
查看>>
【20171111】Codevs 1098 均分纸牌
查看>>
UVA - 213解题报告
查看>>
Nios II实用之音频控制
查看>>