Advertisement
Guest User

Untitled

a guest
Sep 11th, 2015
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. Host target.machine
  2. User targetuser
  3. HostName target.machine
  4. ProxyCommand ssh proxyuser@proxy.machine nc %h %p 2> /dev/null
  5.  
  6. ssh target.machine
  7.  
  8. ssh -o "ProxyCommand ssh poxyuser@proxy.machine nc -w 1 %h 22" targetuser@target.machine
  9.  
  10. $ ssh -f -N -L <localport>:<target.machine:port> user@proxy.machine
  11. $ scp target-user@local.machine:/remote/file -P <localport> .
  12.  
  13. rsync -v --rsh "ssh proxy.machine ssh" target.machine:/remote/file /local/dir/
  14.  
  15. ssh user@proxy.machine "ssh user@target.machine 'cat > file'" < file
  16.  
  17. tar cf - file1 file2 folder1/ | ssh user@proxy.machine "ssh user@target.machine 'tar xvf -'"
  18.  
  19. scp -o "ProxyCommand ssh user@myproxyserver.com nc %h %p" your.filename username@yourdestination.yourdomain.com:/whatever_location
  20.  
  21. scp -o "ProxyCommand=nc -X connect -x proxyhost:proxyport %h %p" remote_user@remote_host:remote_path local_path
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement