Skip to content

Instantly share code, notes, and snippets.

@slembcke
Created May 4, 2012 13:50
Show Gist options
  • Save slembcke/2594911 to your computer and use it in GitHub Desktop.
Save slembcke/2594911 to your computer and use it in GitHub Desktop.
SSH get/put
#! /usr/bin/env ruby
system "scp -P 2222 #{ARGV[0]} localhost:#{ARGV[1]}"
#! /usr/bin/env ruby
system "scp -P 2222 localhost:#{ARGV[0]} #{ARGV[1]}"
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