fire-up-sshd-in-git-bash

whatsbbwhatsbb.com/2017/02/16/start-sshd-on-windows
cnblogswww.cnblogs.com/netonline/p/7410586.html

启动git-bash

skip…

初次启动sshd

1
2
3
/etc/ssh/ssh_host_ecdsa_key
/etc/ssh/ssh_host_ed25519_key
/etc/ssh/ssh_host_rsa_key

初次使用可能没有这3个文件,需要执行如下命令生成:

1
2
3
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key          # set empty password
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key # set empty password
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key # set empty password

启动sshd

1
/usr/bin/sshd     # with absolute path

可在任务管理器看到sshd.exe运行起来了。

scp传文件

1
scp -r /tmp/test.txt administrator@192.168.100.100:/F/

Linux下的/tmp/test.txt传到WindowsF盘。
administratorWindows账号。
192.168.100.100WindowsIPv4