[收藏] 在Cygwin上安裝ssh伺服器!

news/2024/7/3 6:34:53
  1. OS修改環境變數:path增加d:/cygwin/bin
  2. OS增加環境變數:CYGWIN=ntsec tty
  3. Cygwin安裝必要的套件:OpenSSHcygrunsrv
  4. Cygwin設定OpenSSH:
    1. 執行 ssh-host-config
    2. Should privilege separation be used? (yes/no) :yes
    3. Should this script create a local user 'sshd' on this machine? (yes/no) :yes
    4. Do you want to install sshd as service? (yes/no) :yes
    5. Default is "ntsec" . CYGWIN=ntsec tty
  5. 手動啟動OpenSSH服務:net start sshd
  6. 手動關閉OpenSSH服務:net stop sshd




http://www.niftyadmin.cn/n/3652940.html

相关文章

gcc g++ 将所有警告转换为错误

gcc g 将所有警告转换为错误 -Werror把所有警告转换为错误,以在警告发生时中止编译过程eg. g var_args.cpp --stdc11 -Werror 其他错误与告警选项 -Wall 一般使用该选项,允许发出GCC能够提供的所有有用的警告。也可以用-W{warning}来标记指定的警告。 -…

【Python】执行SQL报错

可以再数据库查询界面执行的SQL,一直报错 unsupported format character Y (0x59) at index 61 SQL如下: datapd.read_sql_query(sql"""selectdate_format(create_time,%Y-%m) as mon,count(distinct order_id) as ord_cntfrom prod.o…

CentOS 7安装Python3.5

CentOS 7安装Python3.5 CentOS 7下安装Python3.5 •安装python3.5可能使用的依赖 yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel •到python官网找到下载路径, 用wget下载 wget https://www.python.org/ftp/python/3.5.1/Python-…

自定义 Korn Shell、Bash 和 C Shell 的提示符。

期望的效果如下: [xportbsdws01 bin] $ Bash 设定为:PS1/n[/[/033[32m/]/u/h /[/033[33m/]/w/[/033[0m/]]/$/[/033[0m/…

virtualbox rc=-101 问题解决

VirtualBox – Error In supR3HardenedWinReSpawn 问题解决办法 原文地址:http://chenpeng.info/html/3510 Genymotion 模拟器安装好虚拟机后&#xff0c;启动时报错&#xff1a; ————————— VirtualBox – Error In supR3HardenedWinReSpawn ————————— <h…

excel拼接换行符:char(10)

设置单元格格式--对齐--自动换行 软回车 char(10) "aa"&CHAR(10)&"gg"

c++中,当异常遇见构造与析构

c中&#xff0c;当异常遇见构造与析构&#xff0c;会碰撞出什么样的火花&#xff1f; 本来应该说&#xff0c;当构造与析构遇见异常的&#xff0c;但是好像念起来不太顺。就改了下。哈哈。我们知道资源是有限的&#xff0c;申请资源和释放资源是要配对执行的。有申请无释放&…