Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment More SSH (Score 1) 2362

If you do not have your .ssh/config setup from ControlMaster, or know what that means... Study up! Specifying ControlMaster in my config saves me easily 45 minutes a day. (If you use svn+ssh:// there's a gotcha with a simple solution. Google for it.)

Comment SSH rules (Score 1) 2362

Don't forget that ssh can:
1. Be used to call remote processes, not just an interactive shell
2. Accept pipes to STDIN
This allows you can tar something locally and untar it on the other side in one step. Why? If what you have to send across is huge, you don't have to consume disk space to create the local copy. Or, if you have to ssh from A-B, then B-C, then C-D just to get the huge collection of data from A-D, you don't have to wait for the tar to be created then sent 3 times. This is makes espionage super easy anywhere that you can find a path the the outside world where the router doesn't block ssh. Which most companies never think to do anyway.

I actually use it for good instead of evil though. My trick is to properly setup ssh public key authorization on a remote server in one step instead of two. Like so:
tar cf - .ssh/authorized_keys2 .ssh/id*.pub| ssh remoteserver "tar xf -; chmod 700 .ssh"

replace "remoteserver" with "$1" and put than line in a bash script and you have a simple way to deploy your public key authorization to a severname given as the first argument. When you admin lots of boxes & VMs, growing daily, you have to find shortcuts.

Comment Re:Screen (Score 1) 2362

We tagged this post as "Funny" because "Sad" wasn't an option. There are plenty of good reasons not to use screen, but Ctrl key bindings is not one of them. Those good reasons include:
1. I spend all my time in the GUI anyway.
2. I can't get anything done over SSH, I use VNC.
3. What's screen? I use DOSKey isn't that the same?

Slashdot Top Deals

"Engineering without management is art." -- Jeff Johnson

Working...