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。