transfert file from to sismologie

  • my laptop name is laptop (remote computer I use from outside)
  • my sismologie computer name is sismocomp (remote computer I use from outside)
  • my local login is localuser
  • my sismo login is sismouser

scp push pull to your home of sismologie computer (from outside)

scp pull a file from sismologie

localuser@laptop:~$ scp -P11237 sismouser@127.0.0.1:~/toto /tmp/
sismouser@127.0.0.1's password: 
toto                       100%    0     0.0KB/s   00:00
localuser@laptop:~$ 

scp push a file to sismologie

localuser@laptop:~$ scp -P11237 /tmp/toto sismouser@127.0.0.1:~/
sismouser@127.0.0.1's password: 
toto                       100%    0     0.0KB/s   00:00
localuser@laptop:~$ 

rsync by firewall

localuser@laptop:~/.ssh$ rsync -avz -e 'ssh -p 11237' sismouser@127.0.0.1:~/riri /tmp/
sismouser@127.0.0.1's password: 
receiving file list ... done
riri/

sent 26 bytes  received 85 bytes  31.71 bytes/sec
total size is 0  speedup is 0.00
localuser@laptop:~/.ssh$ 

scp push pull to /localstorage of sismologie computer with ssh ProxyCommand (from outside)

you will need to set up you .ssh/config file for that see : ssh ProxyCommand : Connect to a Host through an other

scp pull a file from sismologie

localuser@laptop:~$ scp sismouser@sismocomp.sismo:/localstorage/sismouser/toto /tmp/
sismouser@127.0.0.1's password: 
sismouser@sismocomp.sismo's password: 
toto                       100%    0     0.0KB/s   00:00
localuser@laptop:~$

scp push a file to sismologie

localuser@laptop:~$ scp /tmp/toto sismouser@sismocomp.sismo:/localstorage/sismouser/
sismouser@127.0.0.1's password: 
sismouser@sismocomp.sismo's password: 
toto                       100%    0     0.0KB/s   00:00
localuser@laptop:~$

rsync by firewall with ProxyCommand

localuser@laptop:~$ rsync -avz sismouser@sismocomp.sismo:~/riri /tmp/
sismouser@127.0.0.1's password: 
sismouser@sismocomp.sismo's password: 
receiving incremental file list
riri/

sent 28 bytes  received 67 bytes  14.62 bytes/sec
total size is 0  speedup is 0.00
localuser@laptop:~$