Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
kaggle-kernel-scp

kaggleのカーネルからscpを行う

kaggle docker

  • aptが使える
  • uploadは一定以上のデータはゲロ遅くなる(実質、スモールデータのみ扱える)

example

コピペすれば動く

!ls
!ls ../
!ls ../input
!du -sh ../input/*

!python -m zipfile -c input.zip ../input

!ls -alht
!which scp
!which apt
!apt install sshpass

!sshpass -p "XXXXX" scp -o StrictHostKeyChecking=no input.zip gimpei@124.219.129.108:/home/gimpei


!mkdir nuro
!sshfs  gimpei@124.219.129.108:/home/gimpei  nuro mountpoint -o ssh_command='sshpass "XXXXX"' -o StrictHostKeyChecking=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.