Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Host target.machine
- User targetuser
- HostName target.machine
- ProxyCommand ssh proxyuser@proxy.machine nc %h %p 2> /dev/null
- ssh target.machine
- ssh -o "ProxyCommand ssh poxyuser@proxy.machine nc -w 1 %h 22" targetuser@target.machine
- rsync -v --rsh "ssh proxy.machine ssh" target.machine:/remote/file /local/dir/
- $ ssh -f -N -L <localport>:<target.machine:port> user@proxy.machine
- $ scp target-user@local.machine:/remote/file -P <localport> .
- scp -o "ProxyCommand ssh pcreds@proxy.machine -W %h:%p" tcreds@target.machine:file .
- Host target.machine
- ProxyCommand ssh pcreds@proxy.machine -W %h:%p
- scp tcreds@target.machine:file .
- scp -o "ProxyCommand=nc -X connect -x proxyhost:proxyport %h %p" remote_user@remote_host:remote_path local_path
- ssh user@proxy.machine "ssh user@target.machine 'cat > file'" < file
- tar cf - file1 file2 folder1/ | ssh user@proxy.machine "ssh user@target.machine 'tar xvf -'"
- scp -o "ProxyCommand ssh user@myproxyserver.com nc %h %p" your.filename username@yourdestination.yourdomain.com:/whatever_location
- ssh login@proxy_host
- scp login@source_host:/path_to_source_file
- login@destination_host:/path_to_destination_directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement