fire-up-sshd-in-git-bash
启动git-bash
skip…
初次启动sshd
1 | /etc/ssh/ssh_host_ecdsa_key |
初次使用可能没有这3个文件,需要执行如下命令生成:
1 | ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_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
传到Windows
的F
盘。
administrator
是Windows
账号。
192.168.100.100
是Windows
的IPv4
。