Tag Archives: bash

ssh Through Two Hosts in One Command

Say you want a shell on a box but you have to hop through another box to get it. force@harold:~% ssh admin@maude maude:~ force$ ssh root@whee root@whee:~$ echo w00t w00t You can do that in one line using -t (pseudo-tty … Continue reading

Posted in quickies | Tagged , , , , , | Leave a comment

Vim up your Bash

Are you a CLI ninja? I write a lot of single-use, throwaway scripts in Bash. Usually, it’s an iterative process. But editing a long one-liner in Bash can be cumbersome if you’re also a Vim or Emacs ninja. So here’s … Continue reading

Posted in CLI | Tagged , , , , , | Leave a comment