我想使用scp共享Colab文件 我使用SSH密钥生成了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模块:永远面条,什么都没结果