Skip to content

Instantly share code, notes, and snippets.

@GINK03
Created October 15, 2019 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GINK03/72fdf085de52ed1978951382ded82cb6 to your computer and use it in GitHub Desktop.
Save GINK03/72fdf085de52ed1978951382ded82cb6 to your computer and use it in GitHub Desktop.
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