【发布时间】:2019-11-10 20:46:42
【问题描述】:
我想使用 scp 共享 Colab 文件 我使用 SSH-keygen 创建了一个 RSA 密钥对。当我跑步时:
!scp "/full/path/to/file" [user]@[host]:~/path/to/dest
我得到(没有密码提示):
>>>Host key verification failed.
>>>lost connection
here 和 here 所示的经典答案在这种情况下不起作用,因为 colab 环境无法访问相关文件:
!ssh-keygen -R [host]
>>>do_known_hosts: hostkeys_foreach failed: No such file or directory
!rm /home/USERNAME/.ssh/known_hosts
>>>rm: cannot remove '/home/USERNAME/.ssh/known_hosts': No such file or directory
!scp "/full/path/to/file" -o 'StrictHostKeyChecking no' [user]@[host]:~/path/to/dest
一样
paramiko pip 模块:永远的面条,没有任何结果
【问题讨论】:
-
我不一定要使用 scp