8 ms·
One time putty took down our prod rac cluster on Xmas eve, and I spent three days fixing it.. One of the on call engineers had copied some documentation to his
by cyberpunk 3y ago
One time putty took down our prod rac cluster on Xmas eve, and I spent three days fixing it..
One of the on call engineers had copied some documentation to his clipboard which had like:
Dbfile 1 location > /u01/ora/whatever
And accidentally right clicked…
I absolutely blame that software for ruining my Christmas one year, and I can’t really forgive it.
Please use OpenSSH.
- chgs 3y agoBecause pasting in OpenSSH doesn’t work?
- tryauuum 3y agonowadays on my Linux terminal if I paste anything containing a newline (which in the past would cause the commands to execute) I get a pop up asking me to confirm Really saves you from the websites putting paragraphs of malicious code into seemingly a single simple line
- lmz 3y agoYou say that like an accidental middle click from e.g. xterm would be any better.
- djao 3y agoRecent gnome-terminal handles these much more safely. If you paste in a newline, whether from primary or clipboard, the terminal puts a newline into your command, but doesn't press enter for you.
- lmz 3y ago> terminal puts a newline into your command, but doesn't press enter for you. I'm having difficulty imagining this. I know of some who warn on multiline paste, but how exactly is it possible to "put a newline" but not "press enter"? Just emit a newline as output without sending as input?
- djao 3y agoYou can do this without pasting. Ctrl-Q Ctrl-J at the bash prompt inserts a newline into the command line without executing it. This is useful for multiline scripting commands.
- lmz 3y agoThat's a readline feature (quoted insert C-q). So the terminal is smart enough to detect readline and then quote the newlines?
- djao 3y agoNeither gnome-terminal nor bash link against readline. I'm pretty sure they just copied the feature; it's not that they use readline in any way. There's lots of other programs that use C-q for quoting, for example emacs, and readline probably copied it from there in the first place. When pasting text, it's a different code path than quoting. The terminal surely knows when text is being pasted. If nothing else, a simple heuristic based on typing speed is enough to tell apart typing and pasting.
- deleted 3y ago[deleted]
- lmz 3y agoI investigated some more and this is called "bracketed paste" and both the program and terminal must support it (program must enable it). https://invisible-island.net/xterm/xterm-paste64.html https://invisible-island.net/xterm/xterm-paste64.html
- deleted 3y ago[deleted]
- mikelovenotwar 3y ago>One time putty took down our prod rac cluster on Xmas eve... A literal PEBCAK issue, not a putty issue.
- chasil 3y agoI have a physical standby server for precisely this reason. This same action in Microsoft terminal would also have had the same outcome.