jaedaen

custom_ssh - sc one-liner - Cache-A system script

Feb 22nd, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.16 KB | None | 0 0
  1. #!/bin/bash
  2. # support connect one-liner that uses its local time to determine outbound port
  3. ssh -N -f -R 6$(date +%k%M | sed s/\ /0/):localhost:22 $user@$host
Advertisement
Add Comment
Please, Sign In to add comment