Created
May 4, 2012 13:50
-
-
Save slembcke/2594911 to your computer and use it in GitHub Desktop.
SSH get/put
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
system "scp -P 2222 #{ARGV[0]} localhost:#{ARGV[1]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
system "scp -P 2222 localhost:#{ARGV[0]} #{ARGV[1]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host localhost mimi fifi slembcke.dyndns.org | |
# Create a tunnel back from the remote machine for ssh to connect to | |
RemoteForward localhost:2222 localhost:22 | |
# Forward the agent so it can use your SSH keys | |
ForwardAgent yes | |
Host kortham.kicks-ass.net rivest.local | |
# Unity Asset Server | |
LocalForward localhost:10733 localhost:10733 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment