Slashdot Mirror


Why Aren't We Using SSH For Everything?

An anonymous reader writes: A post at Medium asks why, in this age of surveillance and privacy-related bogeymen, we aren't making greater use of SSH for our secure computing needs?

"SSH is one of the most accessible secure protocols ever, second only to HTTPS of course. Let's see what we have so far: Binary protocol, mandatory encryption, key pinning, multiplexing, compression (yes, it does that too). Aren't these the key features for why we invented HTTP/2?

Admittedly, SSH is missing some pieces. It's lacking a notion of virtual hosts, or being able to serve different endpoints on different hostnames from a single IP address. On the other hand, SSH does have several cool features over HTTP/2 though, like built-in client authentication which removes the need for registration and remembering extra passwords."

203 comments

  1. Because no. by Anonymous Coward · · Score: 5, Informative

    >Admittedly, SSH is missing some pieces

    Should read, "Admittedly, SSH is missing some crucial features, that make its use in this context impossible."

    1. Re:Because no. by hey! · · Score: 5, Insightful

      The lack of features may be a feature.

      The more features something has, the more likely an oversight in the design or implementation will prove to be a liability.

      --
      Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
    2. Re:Because no. by ShanghaiBill · · Score: 1

      The more features something has, the more likely an oversight in the design or implementation will prove to be a liability.

      The more features something lacks, the more likely a work-around hack will prove to be a liability.

    3. Re:Because no. by kelemvor4 · · Score: 1

      The more features something has, the more likely an oversight in the design or implementation will prove to be a liability.

      The more features something lacks, the more likely a work-around hack will prove to be a liability.

      Just use the right tool for the job and you don't have that problem (in this case).

    4. Re:Because no. by Anonymous Coward · · Score: 0

      yes it's NOT used as often as it should be and where it should be used, but OTOH let's NOT bloat the fsck of it.

      It's NOT ssh's job to understand virtual host's, etc. That's the job of the host or other shim pieces of software.

  2. Medium.com by Ecuador · · Score: 1, Flamebait

    Thank you for mentioning it is medium.com on the summary. That's how it should be done, since we hate being click-baited to such websites.

    --
    Violence is the last refuge of the incompetent. Polar Scope Align for iOS
    1. Re:Medium.com by IamTheRealMike · · Score: 2

      What's wrong with Medium? It's essentially just a blogging platform, right?

    2. Re:Medium.com by Just+Some+Guy · · Score: 0

      Medium's just another blogging platform. Why does it matter whether it's explicitly pointed out, any more than Wordpress or Tumblr or other blog hosts?

      --
      Dewey, what part of this looks like authorities should be involved?
    3. Re:Medium.com by tompaulco · · Score: 1, Interesting

      Nothing wrong with blogging platforms. Nothing even wrong with interesting blogs having advertisement attached so that they can make a little money off of their interesting blogs. However, when it is the advertisement that is the entire focus of the blog and the blog owner is merely scrambling for some sort of information that looks interesting in order to fool you into clicking on their ads, then there is plenty wrong with that.
      But alas, it is unfortunately the 99% that give the other 1% a bad name.
      I keep hearing this annoying DJ on the radio who spends probably 5 minutes per hour trying to entice listeners with a snippet of news and then directing them to his blog to read the full article. With as much advertising as he does for that blog, I sure hope they are charging him a couple thousand dollars a week. Of course his blog probably only brings in a few hundred a month.

      --
      If you are not allowed to question your government then the government has answered your question.
    4. Re:Medium.com by IamTheRealMike · · Score: 0

      Medium doesn't have ads, so I'm not sure where you're going with that ...

    5. Re:Medium.com by bug1 · · Score: 1

      Medium doesn't have ads, so I'm not sure where you're going with that ...

      If you havent been to Medium, you would not know that.

      I believe he was contrasting this story against stories with poor summaries with a link to some random url you havent been to before.

      Perhaps read slower ?

    6. Re:Medium.com by arglebargle_xiv · · Score: 4, Funny

      What's wrong with Medium? It's essentially just a blogging platform, right?

      So is Slashdot, if you're Bennett Haselton.

  3. I do by Dan+East · · Score: 5, Funny

    I use SSH for everything. I use it between my cell phone and the wall charger. I use it between my thermostat and my furnace. Probably most importantly, I use it between my my remote control and TV. Never can be too careful these days.

    --
    Better known as 318230.
    1. Re: I do by Anonymous Coward · · Score: 0

      Toilet to b-hole API?

    2. Re:I do by wbr1 · · Score: 5, Funny

      Looks like you are onto something. Its the SSH of things. I think I need to start a CloudSSH provider now and leverage the intrinsic value of the buzzword.

      --
      Silence is a state of mime.
    3. Re:I do by Anonymous Coward · · Score: 0

      That's nothing - I use SSH 2.0!

    4. Re:I do by AchilleTalon · · Score: 1

      I cook eggs and bacon each morning with SSH.

      --
      Achille Talon
      Hop!
    5. Re:I do by Caesar+Tjalbo · · Score: 5, Funny

      2015 is the year of SSH on the desktop.

      --
      "I'm not much interested in interoperability. I want substitutability. I want to be able to throw your software out."
    6. Re:I do by Anonymous Coward · · Score: 1

      I cook eggs and bacon each morning with SSH.

      Doesn't that make you vulnerable to Shellshock?

    7. Re:I do by Anonymous Coward · · Score: 0

      Hello, your friendly Neighborhood Security Assembly here. We like your idea. please contact us at info@nsa.gov for arranging a direct connection with our security systems to ensure the continued availability of your platform to the public.

      kind regards,
      Michael S. Rogers

    8. Re:I do by by+(1706743) · · Score: 2

      I use it between my my remote control and TV. Never can be too careful these days.

      By echoing commands over ssh, I have my Raspberry Pi control my TV (HDMI CEC), you insensitive clod!

    9. Re: I do by Anonymous Coward · · Score: 1

      Secure Sh*t Hole?

    10. Re:I do by Anonymous Coward · · Score: 2, Funny

      That's nothing - I use SSH 2.0!

      2.0? you lamer...
      Us superleet types are on our own supersekret version...6.9apl3...totally rewritten in APL..It does indeed do everything (we took our inspiration from systemd), it achieved a degree of semi-sentience sometime last Tuesday, hell it now even feeds the cat..

    11. Re:I do by rainmaestro · · Score: 1

      Don't forget to airgap your TV and only use remote controls that you built yourself from open-source blueprints. Everybody knows the remote manufacturers secretly capture your button presses.

    12. Re:I do by Virtucon · · Score: 1

      I'm glad I'm not the only one doing this. I also do those things you mention but now I've upgraded to my new digital flush SSH enabled toilet and toilet paper dispenser. No longer do I worry about my shit being seen unencrypted.

      --
      Harrison's Postulate - "For every action there is an equal and opposite criticism"
    13. Re:I do by Anonymous Coward · · Score: 1

      The problem with with SSH enabled toilets, is there always will be a crack in the user interface that can be exploited.

    14. Re: I do by Anonymous Coward · · Score: 0

      SSH makes me feel more like a woman.

    15. Re:I do by Anonymous Coward · · Score: 0

      Without SSH I wouldn't be able to safely finger or fork my woman

    16. Re:I do by Anonymous Coward · · Score: 0

      ...you insensitive cloud!
      TFIFY

    17. Re:I do by Ol+Olsoc · · Score: 1

      I use SSH for everything. I use it between my cell phone and the wall charger. I use it between my thermostat and my furnace. Probably most importantly, I use it between my my remote control and TV. Never can be too careful these days.

      Don't look now, but the Internet of Things is right behind you

      Then you'll be +5 insightful instead of +5 funny.

      --
      The shepherds did so well protecting the flock that the sheep no longer believed that wolves existed.
  4. Because it's not safe either by Anonymous Coward · · Score: 5, Interesting

    Recent Snowden documents shed doubt on whether the NSA isn't actually able to crack ssh, too. http://www.spiegel.de/international/germany/a-1010361.html

    1. Re:Because it's not safe either by gweihir · · Score: 5, Interesting

      More likely the NSA can use some misconfigurations and crack some (really old) defective clients or servers that are still on protocol v1 or the like. OpenSSH should be pretty secure, but some commercial implementations really suck, and not only with regards to security.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    2. Re:Because it's not safe either by Anonymous Coward · · Score: 1

      It's still better than plaintext because then you are not the lowest hanging fruit. A security feature does not have to be fully perfect to be useful.

    3. Re:Because it's not safe either by MightyMartian · · Score: 3, Interesting

      The article suggests heavily that a properly configured SSH client and server with secured cert chain is likely safe from prying. The problem with SSH, as with all things, is the use of older distros that may not be updated and not building a proper CA to sign certificates.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    4. Re:Because it's not safe either by AchilleTalon · · Score: 4, Insightful

      Someone must realize NSA leaked documents by Snowden are now out dated in some areas. Some security related bugs were patched since then.

      --
      Achille Talon
      Hop!
    5. Re:Because it's not safe either by viperidaenz · · Score: 0, Troll

      Yes, OpenSSH should be pretty secure, after-all OpenSSL was so secure.

    6. Re:Because it's not safe either by Anonymous Coward · · Score: 5, Informative

      Despite the similarity of the names, OpenSSH and OpenSSL are maintained by entirely different teams. Of note is that the organization which maintains OpenSSH recently forked OpenSSL into LibreSSL which, once it stabilizes, is expected to behave more safely.

    7. Re:Because it's not safe either by sabri · · Score: 2

      OpenSSH should be pretty secure

      And that's the part that worries me.

      --
      I'm not a complete idiot... Some parts are missing.
    8. Re:Because it's not safe either by caseih · · Score: 1

      This is the first I've heard of using a Certificate Authority in an SSH context. So I had to look this up. Appears that recent versions of OpenSSH (5.4) have added support for signing ssh keys. Interesting. I doubt many enterprises have deployed OpenSSH new enough to support this sort of thing. RHEL 6 certainly doesn't. RHEL7 should. Seems like a nice security addition. Instead of checking fingerprints (which no one ever does), we can check the signing of the cert to make sure we recognize that. I can see how this could dramatically simplify things and make it easier to detect man in the middle.

    9. Re:Because it's not safe either by caseih · · Score: 5, Interesting

      If anyone else hadn't heard about using a CA with ssh, as I hadn't, they might find this short tutorial interesting:

      https://www.digitalocean.com/c...

      Wish this was available back in my uni days when I managed many dozens of Linux workstations. Managing keys was always a pain.

    10. Re:Because it's not safe either by sconeu · · Score: 2

      In addition, the OpenSSH guys are really, REALLY paranoid. They come from the OpenBSD team.

      --
      General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
    11. Re:Because it's not safe either by Anonymous Coward · · Score: 0

      OpenSSH should be pretty secure

      And that's the part that worries me.

      Well, that is as sure as you ever will be.
      Unless you want a reputable organization to confirm what encryption is good. I'm sure NSA gladly helps you choose.

    12. Re:Because it's not safe either by MikeBabcock · · Score: 1

      From the documents I saw, they're cracking passwords and pre-shared keys in SSH and IPSec not keyed connections.

      --
      - Michael T. Babcock (Yes, I blog)
    13. Re:Because it's not safe either by Anonymous Coward · · Score: 0

      This is the first I've heard of using a Certificate Authority in an SSH context. So I had to look this up. Appears that recent versions of OpenSSH (5.4) have added support for signing ssh keys. Interesting. I doubt many enterprises have deployed OpenSSH new enough to support this sort of thing. RHEL 6 certainly doesn't. RHEL7 should. Seems like a nice security addition. Instead of checking fingerprints (which no one ever does), we can check the signing of the cert to make sure we recognize that. I can see how this could dramatically simplify things and make it easier to detect man in the middle.

      Well thanks, that's probably why I've never heard of it either...

      To the GP: If it's not in RHEL (most recent version - 1) it practically doesn't exist for a pretty big chunk of real world Linux environments.
      It's like I told him he can just ctrl+v to paste in Windows command prompt... except I meant Windows 10.

    14. Re: Because it's not safe either by Anonymous Coward · · Score: 0

      Except plaintext can't be kept. Encrypted text is legal for the NSA to store as long as they like, and they are allowed to try and crack it. They operate on the assumption that if you are trying to hide, you must have something worth hiding.

    15. Re:Because it's not safe either by gweihir · · Score: 2

      The track-record for OpenSSH shows it. This is one excellent piece of security software. Must remember to donate this year to them again. I don't use OpenBSD, but OpenSSH alone makes it worth giving them something, for the countless hours of work and worry they have saved me.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    16. Re:Because it's not safe either by gweihir · · Score: 1

      Your expertise extends to all of comparing names syntactically? That is impressive! And not in a good way.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    17. Re:Because it's not safe either by gweihir · · Score: 4, Interesting

      So they are brute forcing weak SSH passwords. Not impressive, anybody can do that and there is even a bot-net that does it, look up "low-intensity zombies". As to pre-shared keys, there is a known vulnerability of embedded devices that can make their keys vulnerable if they are generated in a low-entropy situation. That has been fixed AFAIK and does not affect proper computers.

      As to IPsec: First it is known that the IPsec standard was sabotaged by the NSA by making it overly complicated and complex, doubtless in order to make implementation and configuration mistakes more likely. Second, I have no idea what "non keyed" means for IPsec. Maybe you mean PSK? That can again be attacked if keys are badly chosen. No surprise.

      Really, the NSA will of course to what ordinary hackers can also do, but use sound practices and they will need to to an expensive and high-risk targeted attack and even that may fail. The goal here is not to make it impossible for them to get in, the goal is to make it far to expensive in most cases, to they cannot do dragnet-surveillance. One of the hugely dangerous things they are doing is that they collect data on everybody. If somebody becomes, say, a president in some place and they do not like that person, they can go through their archives and sabotage democracy with what they find. It may even be enough that people think they can do this. That makes them a clear and present danger to democracy, freedom, the rule of law, etc. Or in short: Terrorism is peanuts in comparison with the huge threat these people represent.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    18. Re:Because it's not safe either by puenktli · · Score: 1

      On the other hand, new bugs might have been introduced since. And you can never value out currently existing bugs that NSA knows about. Heartbleed all over again!

    19. Re:Because it's not safe either by viperidaenz · · Score: 1

      Considering OpenSSH was vulnerable to heartbleed because it uses OpenSSL, the name is not the only thing they have in common.

    20. Re:Because it's not safe either by MikeBabcock · · Score: 1

      Why did you even reply to my post?

      I'm not sure who you think you're explaining all that to but it wasn't me.

      --
      - Michael T. Babcock (Yes, I blog)
    21. Re:Because it's not safe either by gweihir · · Score: 1

      Don't flatter yourself.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    22. Re: Because it's not safe either by Anonymous Coward · · Score: 0

      OpenSSH was never vulnerable to heartbleed, please educate yourself before making such claims.

    23. Re:Because it's not safe either by gweihir · · Score: 1

      You claim OpenSSH was vulnerable to heartbleed? How would that work?

      OpenSSH uses OpenSSL crypto, but _not_ OpenSSL SSL/TLS. Why would it? The SSH protocol is entirely different from SSL/TLS. Hence OpenSSH was never even close to be vulnerable to heartbleed. But I guess you made your claim without knowing the first thing about OpenSSL or OpenSSH.

      Really, some actual clue is required to participate in this discussion, pattern matching with names does not cut it at all! Otherwise complete nonsensical claims like yours will emerge.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  5. SSH actually does handle some of those limitations by Anonymous Coward · · Score: 2, Informative

    SSH can be used for virtual hosting environments just fine with things like force-command chrooting automatically when a user logs in based on username or pubkey. The protocol is not hostname aware, so it cannot handle "different hostnames from a single IP", you have to have a different user account name in order to do similar tricks. I do not think that is a limitation though, since you are talking to the underlying system, not to a content serving system like a web server.

  6. SSL, SSH, S/MIME by X10 · · Score: 0

    I use ssh a lot. and ssl. and s/mime.

    --
    no, I don't have a sig
  7. Windows by Lennie · · Score: 5, Informative

    If anything is missing, it's probably only missing on Windows.

    Support on Linux and Mac is jut fine, I think.

    Windows:
    - client support is kind of OK
    - virtual filesytem support is kind of OK

    The biggest missing solution:
    - Windows server support. There are some expensive solutions, not sure how well they work.

    --
    New things are always on the horizon
    1. Re:Windows by Anonymous Coward · · Score: 1

      Does Windows do virtual (whatever that is) filesystems? Their WebDAV implementation is hilariously bad, it doesn't even do files larger than 50MB by default. You can change that by hacking the registry, but MS set that pathetic limit for a very good reason. Theirs works by downloading the entire file to a secret spot on C: first (hello folks with a small boot SSD and a big HDD), and then opening that. While that download is going on, everything else comes to a crashing halt. That download seems to grab a giant lock on all access to C:\, and everything from $Logfile to $PAGEFILE.SYS can shut up and wait.

    2. Re:Windows by jones_supa · · Score: 2

      There's a program called ExpanDrive which abstracts a bunch of network file systems for Windows. I've been using it for SSHFS, but there is also WebDAV support among others.

    3. Re:Windows by Anonymous Coward · · Score: 0

      If anything is missing, it's probably only missing on Windows.

      Support on Linux and Mac is jut fine, I think.

      Exactly. I have used ssh for "everything" for a decade and half already. Moving files, remote word processing across town, accessing email. Anything goes when you can forward X. Might be tricker with windows - but I don't do windows and haven't used it since version 3.1.

    4. Re:Windows by Phronesis · · Score: 1

      The biggest missing solution: - Windows server support. There are some expensive solutions, not sure how well they work.

      I've been using the Bitvise sshd server on Windows for about 10 years with no problems. It's free for noncommercial personal use and $100 (plus $20 per year for upgrades) per host for a full license if you're using it for business or commercial purposes. This doesn't seem "expensive" to me, but YMMV of course.

    5. Re:Windows by drkstr1 · · Score: 1

      If anything is missing, it's probably only missing on Windows.

      Support on Linux and Mac is jut fine, I think.

      Exactly. I have used ssh for "everything" for a decade and half already. Moving files, remote word processing across town, accessing email. Anything goes when you can forward X. Might be tricker with windows - but I don't do windows and haven't used it since version 3.1.

      How do you get around the lag issue? Even on a good connection down the street from my office, the lag is unbearable for me. One thing I thought might help (if anyone knows how) is to turn down the eye candy when forwarding X. If anyone has any insight on the issue, please share!

      --
      Fanboy Status: Apache Flex, C#, Eclipse, KDE, Pirate Party, Ron Paul, Slackware, Windows 7
    6. Re:Windows by lister+king+of+smeg · · Score: 2

      Depends sometimes I just use it as a proxy using proxychains and, or i will mount the filesystem and use local copies of programs to work on the remote files in both cases I don't have to use the remote app the forwarding X is not a issue. If I do use app remotely its on my server where I just use a no frills low eye-candy desktop environment and enable compression on my ssh session besides nano, elinks and emacs don require X.

      --
      ---Saying gnome 3 is better than windows 8 not so much a compliment as it is damning with light praise.
    7. Re:Windows by Anonymous Coward · · Score: 0

      How do you get around the lag issue? Even on a good connection down the street from my office, the lag is unbearable for me. One thing I thought might help (if anyone knows how) is to turn down the eye candy when forwarding X. If anyone has any insight on the issue, please share!

      It's called using a text editor to write and LaTeX for word-processing.

    8. Re:Windows by MooseMiester · · Score: 1

      Virtual file system support to Linux boxes with Windows (server or client) is HORRIBLE, sure they claim to support WebDAV but as one who has tried it it falls apart the second the files are large, and the servers are not on the same intranet. I think they do this on purpose to sell SharePoint which is, of course ShareCraptastik.

      MS can't even create a decent FTP client, which is pretty absurd when you think about it.

      --
      Murphy was an optimist
    9. Re:Windows by Anonymous Coward · · Score: 0

      Theirs works by downloading the entire file to a secret spot on C: first (hello folks with a small boot SSD and a big HDD), and then opening that.

      I'm going to have to hit you with a big "Citiation Needed" on that one. I manage a WebDAV service on RedHat and I support a lot of Windows users, many of which are using low-bandwidth connections and small SSDs - to the extent that this behaviour would be an immediate and obvious problem. I will agree with you that the Windows WebDAV connector is pants-on-head retarded but would like to see evidence of this local cacheing behaviour you describe.

  8. PITA by Anonymous Coward · · Score: 0

    SSH is nice, but it can be a pain in the ass to set up. This is probably the biggest reason I don't use it often. Of course, if I used it more I probably wouldn't be whining about it being a pain in the ass. However, unless you are constantly admining a lot of *nix machines that are using SSH, one of *nix' strengths can be it's undoing. Every time I set up SSH I have to relearn how to do it from scratch because I've forgotten since the last time I set it up. I had the same issue with ipchains and iptables, and Samba - once you get them working you really don't have to touch them again for years, usually. Great, for sure, but it's longer than my memory is capable of retaining those details.

    Are you suggesting creating SSH tunnels connecting everything? Encrypting traffic is a good thing, but I think efficient decentralized hosting is a higher priority. What good is security if it's trivial to attack the end points?

    1. Re:PITA by Noah+Haders · · Score: 0

      agreed with PITA, and as a second note, if people are needing to relearn the wheel every time, then it's a recipe for mistakes and security holes. Not calling out the AC, just sayin in general.

    2. Re:PITA by geantvert · · Score: 4, Informative

      Hummm... configuring openssh is really not difficult on most modern Linux distributions.
      Install the openssh packages, execute ssh-keygen once per user and you are basically done.

      The only tricky part for some novice users is to copy the public key to the server (in .ssh/authorized_keys) but recent versions of openssh provide the ssh-copy-id tool that can do that for you.

       

    3. Re: PITA by Anonymous Coward · · Score: 0

      Remote root access is allowed by default on at least some distros.

    4. Re:PITA by Anonymous Coward · · Score: 0

      dcli (a distributed shell) from Oracle (i.e. on Exadata) also makes key distribution painless, with an easy command-line option.

    5. Re: PITA by Sardaukar86 · · Score: 2

      Remote root access is allowed by default on at least some distros.

      So take that up with the maintainers of the (braindead) distros you didn't mention and get something done about it. Your complaint has nothing whatsoever to do with the OpenSSH software itself.

      --
      ..Mullah or Pope, Preacher or Poet, who was it wrote: "Give any one species too much rope and they'll fuck it up"?
    6. Re: PITA by steveg · · Score: 1

      Which don't?

      I always check it, and every distro I've tried has root login set to yes. I don't try as many distros as I used to though.

      --
      Ignorance killed the cat. Curiosity was framed.
  9. We are, you aren't by Anonymous Coward · · Score: 0

    Everyone I work with has SSH+SOCKS set up to a central set of servers, then we reach out from there.

  10. Layered with, not instead of, HTTP/2 by allquixotic · · Score: 5, Interesting

    One of the coolest client-side features of most SSH clients (at least OpenSSH and PuTTY support it) is the ability to turn any SSH connection into a SOCKS5 proxy, provided the server will let you. If your Internet connection has a restrictive stateful firewall on it that blocks your access to many useful legitimate sites, you can just stunnel out over TLS and then have the ability to go outbound on any port (including SSH's default port of 22) using your SOCKS5 proxy. I've used RDP over SSH over TLS before to get around restrictive filters.

    1. Re:Layered with, not instead of, HTTP/2 by Dagger2 · · Score: 4, Informative

      And if SOCKS isn't enough, you can also do ssh -w 42:42 to link a pair of tun interfaces between the two sides. (Slightly less cool because you have to manually configure networking on both ends for it.)

      And then the summary decides to hold compression up as the super amazing feature that nobody has ever heard of...

    2. Re:Layered with, not instead of, HTTP/2 by MrChips · · Score: 1

      And if you have influence over the server, have it listen on port 443. Use sslh to share 443 with https if necessary. This will usually get you out from behind a web browsing only internet connection.

    3. Re:Layered with, not instead of, HTTP/2 by cascadingstylesheet · · Score: 1

      One of the coolest client-side features of most SSH clients (at least OpenSSH and PuTTY support it) is the ability to turn any SSH connection into a SOCKS5 proxy, provided the server will let you.

      Yep. I was using that nine or ten years ago, with Cygwin, to tunnel my http traffic from work through my home computer. Worked like a charm.

    4. Re:Layered with, not instead of, HTTP/2 by Anonymous Coward · · Score: 1

      There's a nice shell script that automates the whole process of setting up the tun interfaces on both sides:

      https://github.com/jpsutton/sandbox/tree/master/openssh-vpn

  11. Cygwin works fine. by ron_ivi · · Score: 5, Informative

    I know back in 1995 when Cygwin came out it got a reputation of being pretty flakey.

    But it's come a long way in the last 2 decades.

    These days, pretty much any time you think you have a "hmm, Linux can do this but I don't know how to do it on Windows", Cygwin is probably a very good possibility.

    1. Re:Cygwin works fine. by ehiris · · Score: 1

      Yes, work very well but AD integration is kind of a pain. Managing users and groups between the emulator and windows is poorly supported.
      I had some issues with it related to people wanting to use it for windows sftp that led my management to having me move all my cygwin/ssh based windows monitoring to WMI, which just sucked. Pretty much switched jobs because of it.

    2. Re:Cygwin works fine. by Anonymous Coward · · Score: 0

      You didn't want to use WMI to manage Windows boxes, but did want to install Cygwin on them and use SSH? It is a good thing you switched jobs; you sucked at the old one. You are probably great at Linux support, but stay away from Windows if that was your answer...

    3. Re:Cygwin works fine. by ron_ivi · · Score: 1

      Some might argue that's the fault of AD, not cygwin or ssh.

    4. Re:Cygwin works fine. by phizi0n · · Score: 1

      These days I would rather run linux in a VM if I need it for something instead of messing about with cygwin.

    5. Re:Cygwin works fine. by ron_ivi · · Score: 1

      Sure --- but this guy's use-case was using SSH to log in to a Windows box and do something to Windows --- which the VM mostly prevents. And if is wasn't a requirement to mess with Windows, I'd rather skip the VM and just run Linux directly.

    6. Re:Cygwin works fine. by Anonymous Coward · · Score: 0

      Do not underestimate hand-rolled monitoring/maintenance. WMI can't deploy scripts unthought of.

    7. Re:Cygwin works fine. by Anonymous Coward · · Score: 1

      Some might argue that's the fault of Cygwin for not implementing a helpful feature and not AD who you know is not going to change just to support some app.

  12. WTF slashdot? by Anonymous Coward · · Score: 0

    The article is "SSH how does it even?". What the fuck slashdot? How do you mis-judge your audience this badly?

    1. Re:WTF slashdot? by greg1104 · · Score: 1

      Someone was aiming at "cool story, bro".

  13. When you've got a hammer... by Anonymous Coward · · Score: 1

    ... everything looks like a nail.

  14. Summary partly answered its own question by davidwr · · Score: 1

    It's lacking a notion of virtual hosts

    That's a major reason right there. There was a time when some web servers couldn't do virtual hosts with https: well or at all.

    That, and the usual reasons why HTTPS etc. aren't used more (server-side overhead, etc.).

    --
    Knowledge is how to play a game, intelligence is how to win, wisdom is knowing what game to play.
    1. Re:Summary partly answered its own question by Anonymous Coward · · Score: 1

      It's lacking a notion of virtual hosts

      That's a major reason right there.

      Nope - an annoyance that is minor because the problem is so temporary. Soon enough we'll use IPv6, and every virtual host will have its own address because the provider has his own /64 network and cannot possibly get constrained. A "virtual host" will simply be a "host" that happens to share CPU power with some other hosts.

    2. Re:Summary partly answered its own question by oobayly · · Score: 1

      Nope - an annoyance that is minor because the problem is so temporary. Soon enough we'll use IPv6, and every virtual host will have its own address

      I really wish that was true, but seeing as BT had to install a parallel leased line to provide IPv6 - luckily we didn't have to pay for it - I can't see consumer providers bothering their arses to upgrade anytime soon.

    3. Re:Summary partly answered its own question by Anonymous Coward · · Score: 0

      It's lacking a notion of virtual hosts

      That's a major reason right there.

      Nope - an annoyance that is minor because the problem is so temporary. Soon enough we'll use IPv6, and every virtual host will have its own address because the provider has his own /64 network and cannot possibly get constrained. A "virtual host" will simply be a "host" that happens to share CPU power with some other hosts.

      There is a non-trivial configuration management problem of tracking what address corresponds to what site that virtual hosting solves.

    4. Re:Summary partly answered its own question by shutdown+-p+now · · Score: 1

      TCP also lacks the notion of virtual hosts, but it doesn't preclude it from being used as a base. There's no reason why you can't use SSH as the underlying "security layer" protocol, and then stick HTTP on top of that pretty much as is - complete with hostname in the request (and hence, virtual hosts).

  15. Because it's slow and featureless by Just+Some+Guy · · Score: 5, Insightful

    SSH connections take For. Eh. Ver. relatively speaking:

    % time ssh localserver exit
    ssh localserver exit 0.02s user 0.02s system 2% cpu 2.061 total

    Subsequent requests using the same connection are quick enough:

    % time ssh localserver exit ssh localserver exit 0.00s user 0.00s system 20% cpu 0.039 total

    But compare to an HTTPS connection to a remote host:

    % cat curlcfg
    verbose
    trace-time

    url = "https://www.google.com/"
    output = "/dev/null"
    head

    url = "https://www.google.com/"
    output = "/dev/null"
    head

    % curl -K curlcfg
    ...

    A brand new request to a remote server takes just 263ms, and a second request only 81ms. Considering that the server is 25ms away, that makes it a bit faster than a cached SSH connection to a local machine.

    But even more than that, SSH in this context is a transport, not a protocol. It allows you to build and manage secure connections, but you still have to write a protocol on top of it ("I'll send this command, and you reply with..."). Even if you "cheat" and use SFTP, you're still missing out on fixes to the thousands of little issues people have worked out with HTTP over the years. What's the SFTP equivalent of If-Modified-Since? How will redirects to remote servers work? What's your cross-domain scripting policy? How are you going to handle anonymous connections?

    Use SSH for SSH. Use HTTP for HTTP. They're separate things for good reasons.

    --
    Dewey, what part of this looks like authorities should be involved?
    1. Re:Because it's slow and featureless by Anonymous Coward · · Score: 0

      HTTP(S) is used to serve content. SSH is generally used for console administration and longevity. You cannot compare the two.

    2. Re:Because it's slow and featureless by tnk1 · · Score: 5, Interesting

      Yes.

      There have been discussions where I work about setting up encrypted connections for some of the data that we're passing over the Internet. At first it was taken for granted that we'd use SSL or some form of encrypted link to do so.

      Then someone very smart mentioned that the data is already sent in a manner in which it is difficult, albeit not impossible, to reconstruct usefully. It might be possible for someone like a state actor or organized crime to spend the time and resources on reconstructing the data, but without any personal information or financial transaction information in the stream, it ended up not even mattering at all anyway.

      The flip side is that we really, really want the data to be processed quickly. That means not spending the time and effort on decryption processing overhead where our options are either accepting lower quality of service or alternately spending more on processing power.

      Point is that we know that the NSA or FSB or North Korea or the Mafia could intercept and and reconstruct our data, but ultimately we don't care if they can, we don't know why they'd bother, and we don't promise our customers that we'll prevent that. What we do have are QoS guarantees, not to mention a general need for QoS so we don't seem shitty.

      Make no mistake, for sensitive information, you should have encryption, despite the overhead. We do use it for anything that would be sensitive, such as authorizations, personal information, and transactions. Even then, we don't kid ourselves about SSL preventing some sort of determined attack by someone with sufficient resources. At that point, there is only so much you can do.

      Security risk assessment is not an exercise about what is possible, it about what is *probable* and then assigning your limited security resources to defend against the most likely, but not always most glamorous threats.

      For instance, the Sony hack was likely a common combination of social engineering, malware, and shitty risk management with the internal networks. Encrypting the connections would have probably done fuckall for them, because the hackers weren't intercepting traffic, they were actually breaking in with passwords or remote exploits. Having admins who knew how to compartmentalize their shit (and not click on malware) and maybe keep their passwords in an encrypted keychain with some multifactor authentication thrown in would have been priceless.

      Internal networks are a cesspool of open shares, with proprietary or sensitive information liberally slathered around, waiting to be found. Everyone assumes the "firewall" or the "encrypted network" will protect them. What actually happens is that too many people are storing too much information on systems that are too numerous and heterogeneous for anything but the most dedicated internal IS department to keep track of. That is, unless there are some intelligent risk assessment and useful programs (like actual training and well enforced security procedures).

    3. Re:Because it's slow and featureless by tlambert · · Score: 2

      SSH connections take For. Eh. Ver. relatively speaking:

      gethotbyaddr + getpeername + gethostbyname

      Try configuring your DNS correctly; the reason it's fast with Google as a remote host is that their DNS is correctly configured.

    4. Re:Because it's slow and featureless by unrtst · · Score: 1

      Parent is one side of the "why not". The other is, "why *would* we use ssh for everything?".

      The summary (I'm not going to bother reading the article) makes it sound like they want to use ssh in place of HTTPS. That's stupid. We have secure protocols for many things that each fit correctly (ipsec, https, sftp, ssh, various-vpns (ssl/tls/etc), s/mime, pgp/gpg, etc).

      The summary says, "SSH does have several cool features over HTTP/2 though, like built-in client authentication which removes the need for registration and remembering extra passwords."
      WTF? I'm guessing they're referring to public key authentication, which HTTPS has (and I'd assume would work in HTTP/2 as well). You can use client based ssl certs for auth. It's a PITA, just as it would be to use ssh keys - the client side management of said info would need to be solved in a very dumbed down and friendly way.

      Some other things it has (and I assume they imply that HTTPS does not have?):

      * Binary protocol. ssh just sets up a secure channel. It's not a binary protocol for all the other bits (like shell commands), which are all encrypted plain text. Ditto to HTTPS/SSL/TLS... where's the difference here? HTTP/2 proposal would have a binary protocol, though I don't really see much benefit to that.

      * mandatory encryption. ssh = nope. You can, but you could also allow the null cipher. IE. it has to be configured for that way of operations. HTTPS/SSL/TLS - enable HSTS header and do a permenant redirect on port 80 to 443, done.

      * key pinning. Oh, you mean like this: https://www.owasp.org/index.ph...

      * multiplexing. I'll admit this may be a benefit, but I see little benefit over simply using multiple connections with keepalive. Prove there's an actual performance benefit and then we'll talk. Meanwhile, as parent mentioned, ssh connection establishment is VERY SLOW in comparison to HTTPS.

      * compression. You mean like this, "SSLCompression On". http://httpd.apache.org/docs/c...

      Please note, I'm not saying HTTP/2 is bad, nor that the features in HTTP/2 fall to the same points above. I'm saying those points do not apply, apply poorly, or already have a better solution in HTTPS as compared to SSH.

    5. Re:Because it's slow and featureless by Just+Some+Guy · · Score: 1

      * compression. You mean like this, "SSLCompression On".

      Which isn't a good idea anyway.

      --
      Dewey, what part of this looks like authorities should be involved?
    6. Re:Because it's slow and featureless by Anonymous Coward · · Score: 0

      Your first connection should not take that long.
      Put 'UseDNS no' in your sshd_config and try again.

    7. Re:Because it's slow and featureless by Anonymous Coward · · Score: 0

      What's the SFTP equivalent of If-Modified-Since?

      mtime, such as used by rsync+ssh

      But they're different beasts. Sure that works as a drop-in replacement for FTP, but HTTP frequently generates dynamic content and performs actions, not just serving up data. You'd need an entirely new subsystem to implement something HTTP-like over SSH.

    8. Re:Because it's slow and featureless by Anonymous Coward · · Score: 0

      RC4/CS2 w/ fixed key. Connection setup time is something like an extra 10ms with a 10 byte overhead. No additional bytes are required past initial setup.

    9. Re:Because it's slow and featureless by unrtst · · Score: 2

      SSH connections take For. Eh. Ver. relatively speaking:

      gethotbyaddr + getpeername + gethostbyname

      Try configuring your DNS correctly; the reason it's fast with Google as a remote host is that their DNS is correctly configured.

      No, the reason HTTPS is fast (with respect to a comparison to SSH + gethostbyaddr/etc) is because the webserver isn't doing ANY** reverse DNS. The config change needed would be putting "UseDNS no" in sshd_config.

      There are other slow downs as well. For example, HTTPS normally has nothing to do with authentication, but SSH almost always makes a bunch of attempts for various auth types (GSSAPI, host based, public key (DSA, RSA, ECDSA), keyboard interactive, password). There's a fair bit more back-end-forth for ssh. Just do "ssh -vvv exit | grep -i '\(sent\|receive\)'", and compare that to "openssl s_client -connect www.google.com:443".

      ** in almost all cases this is true, and especially if performance is valued. The most common time it is used is for log resolution (usually done in post-processing) and IP allows by DNS subdomains (which is frowned upon for multiple reasons).

    10. Re:Because it's slow and featureless by Anonymous Coward · · Score: 0

      I know the authentication handshaking is part of what causes the slowness, but I figure this is still a good spot to plug HPN-SSH (sourceforge link). That is, a set of patches to OpenSSH that increase throughput in simple ways:

      1) Multi-threaded cipher implementations - (seriously, OpenSSH does not do this out of the box! And, it yields probably the greatest improvement in performance)
      2) Auto-adjusting TCP buffer window sizes
      3) A "none" cipher that still uses secure authentication to establish a connection...although it is generally unnecessary, since I've been able to saturate a 10Gbps link with it running the standard AES ciphers in multithreaded mode...

    11. Re:Because it's slow and featureless by Anonymous Coward · · Score: 0

      > our options are either accepting lower quality of service
      > or alternately spending more on processing power.

      We could just go back to the Sherlock Holmes-era standard for delivery of the post -- one or two or three times per day, no more delay than that.

      Plenty of time for processing.

      And a more civilized pace as well.

    12. Re:Because it's slow and featureless by shutdown+-p+now · · Score: 1

      But even more than that, SSH in this context is a transport, not a protocol. It allows you to build and manage secure connections, but you still have to write a protocol on top of it ("I'll send this command, and you reply with...").

      Or you could just layer HTTP as is on top of SSH. Which would also give answers to all the other questions that you have posed.

      The point about speed is a good one, though.

    13. Re:Because it's slow and featureless by Anonymous Coward · · Score: 0

      Your test is flawed as you're letting the time it takes for your shell to launch which on many Linux distros this is now very high. Apparently I need to know about my load average, packages needing to be updated, etc every time I launch a new shell...

      You should configure your SSH to serve the output of a simple shell script instead of launching a shell and you should specify which encryption algo you want. Maybe turn on compression, too.

  16. Automatic by Anonymous Coward · · Score: 0

    In any event, having automatic browser/server built in support for something like SSH or HTTP/2 is a good thing. It wouldn't be horrible if browsers chose to implement some sort of setup with SSH as well as the HTTP/2 standard, but even that implementation would require some sort of standardization. Cool idea. I think that an Apache plugin for SSH and browser support would be a neat alternative. I mean, that's the thing, right? For everyone to adopt it, it has to be completely transparent. To the point that they don't even really realize they are adopting anything. Including the people installing and maintaining the servers. Not all web servers are admined or set up by geniuses. If the server configuration and set up is too complicated global adoption would fail as well.

  17. Integration into OS by StripedCow · · Score: 1

    I've been wondering for some time now why TLS (SSH) is not integrated into the OS, to extend the TCP/IP stack on a low level.

    --
    If Pandora's box is destined to be opened, *I* want to be the one to open it.
    1. Re:Integration into OS by 0123456 · · Score: 1

      I've been wondering for some time now why TLS (SSH) is not integrated into the OS, to extend the TCP/IP stack on a low level.

      Hint: you don't need it when all mass-market modern operating systems I've used have IPSEC built in.

      Of course IPSEC is an abomination that's a billion times easier to misconfigure than to configure correctly, and still suffers from the same authentication issues as HTTPS. If they hadn't thrown the kitchen sink in the spec, we'd probably all be using encrypted communications by now. Hey, did anyone see the NSA skulking around the IPSEC committee?

    2. Re:Integration into OS by sconeu · · Score: 1

      Because TLS is not SSH?

      TLS 1.x is derived from SSL, not SSH.

      --
      General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
  18. Re:Actually... by Anonymous Coward · · Score: 5, Funny

    Why aren't we using SSH to monitor the computer's microphone?

    We ARE using SSH to monitor your microphone.

    Sincerely,
    The [3 characters redacted]

  19. We ARE using ssh and https for everything by iamacat · · Score: 5, Interesting

    telnet and ftp practically died a while back, http is on the way out. In most corporate environments, other protocols such as X are local only and remote use is over ssh tunnels. IMAP/SMTP takes place over TLS when using decent providers. I guess there is a question of whether SSH and HTTPs should be merged. But a lot of work has been put in both and would be difficult to replicate and make as secure from the start. No hurry.

    The only exceptions are organizations with lax security (like Sony apparently) and cases where security or integrity is completely not an issue. I guess if you broadcast a video as unencrypted UDP over a local network, that's fine.

    1. Re:We ARE using ssh and https for everything by Just+Some+Guy · · Score: 1

      http is on the way out

      LOLWAT? Given the ubiquity of JSON-over-REST as a common API for just about everything, HTTP is the exact opposite of on the way out. If anything, it's absorbing and replacing many other protocols (even when it shouldn't).

      --
      Dewey, what part of this looks like authorities should be involved?
    2. Re:We ARE using ssh and https for everything by Just+Some+Guy · · Score: 1

      Ignore. HTTP vs HTTPS, yes. I'm still waiting for my coffee to kick in.

      --
      Dewey, what part of this looks like authorities should be involved?
    3. Re:We ARE using ssh and https for everything by Anonymous Coward · · Score: 0

      http is on the way out.

      Yeah right, if that were the case /. would surely be using.

    4. Re:We ARE using ssh and https for everything by Alioth · · Score: 2

      Unfortunately ftp has far from died. There are so many other organizations I deal with that haven't been hit with the ssh/sftp clue stick and can't do anything other than ftp. Or worse still, ftps which is a firewall administrator's nightmare.

      We even deal with one company who not only refuses to use sftp, but they refuse ftp in passive mode and want us to connect to an ftp server of theirs that only supports active mode. Their admin reckons ftp in passive mode is insecure and won't deal with sftp. Sigh. They are of course a Windows-only shop. Most of the companies who are stuck on ftp are Windows shops.

  20. Public Key, not SSH. by Anonymous Coward · · Score: 3, Interesting

    SSH as a protocol was designed for interactive login, and it has some issues when used for other applications. But there is one key aspect of it that needs to break out of SSH, the public key cryptography part.

    When creating an account on a web site, rather than entering a User ID and password the browser should generate a public-private pair, and send the public part to the other side. Logins can then be done just like SSH does, with a cryptographic exchange.

    The "lost password database" goes away completely. If you got the database on the far end it would only contain public keys, which would not allow logins. The whole "everyone must change their password" nonsense goes away.

    So don't force SSH on us, but let's all work to get more public key based logins.

    1. Re:Public Key, not SSH. by viperidaenz · · Score: 3, Insightful

      The "my hard drive crashed and now all my private keys are gone so I've irreversibly lost access to all my accounts" problem comes up though.
      You also need a secure method of either transferring keys between devices or linking new keys to existing accounts.

    2. Re:Public Key, not SSH. by amorsen · · Score: 1

      This problem is exactly the same for passwords, at least if you follow decent security practices and never reuse passwords.

      It is actually worse for passwords, since you can use the same private key securely with all sites. It is simple to backup a single private key, not so simple to backup your entire ever-changing database of passwords.

      --
      Finally! A year of moderation! Ready for 2019?
    3. Re:Public Key, not SSH. by Anonymous Coward · · Score: 0

      The "my hard drive crashed and now all my private keys are gone so I've irreversibly lost access to all my accounts" problem comes up though. You also need a secure method of either transferring keys between devices or linking new keys to existing accounts

      Which leads immediately to the other failure mode: "ZOMG I just accidentally uploaded all my private keys to GitHub..."

    4. Re:Public Key, not SSH. by Anonymous Coward · · Score: 0

      So? As long as someone has any access at all to their own stuff, they can fuck it up. Do you believe that the existence of that failure mode is "proof" that the OP is wrong and a perfect solution is needed?

      Because good fucking luck with finding it.

    5. Re:Public Key, not SSH. by Junta · · Score: 1

      the public key cryptography part.

      The thing is, that is already available in any protocol employing TLS. Client side certificates are the same as ssh keypairs. There's some capability in x509 certificates not in ssh keypairs, but all that can be ignored.

      But if you dig into the current in-vogue two-factor stardard (U2F), they actually are implementing what you describe. "During registration with an online service, the user's client device creates a new key pair. It retains the private key and registers the public key with the online service"

      --
      XML is like violence. If it doesn't solve the problem, use more.
    6. Re:Public Key, not SSH. by wiredlogic · · Score: 1

      This, like all password/key managers, completely breaks if you do lose the database or don't have it available.

      --
      I am becoming gerund, destroyer of verbs.
    7. Re:Public Key, not SSH. by Anonymous Coward · · Score: 0

      ... the browser should generate a public-private pair, and send the public part to the other side. Logins can then be done just like SSH does, with a cryptographic exchange.

      Client certificate authentication has existed in HTTPS for a while now (+10 yrs) RTFM

    8. Re:Public Key, not SSH. by viperidaenz · · Score: 1

      No it's not.

      The "lost password database" goes away completely

      That's the bit that creates the problem of losing access.

    9. Re:Public Key, not SSH. by amorsen · · Score: 1

      I don't get what you are saying. I did not say the things you quoted.

      I have my SSH private key saved securely. That is easy, it does not take up any room at all. My password database on the other hand is not backed up; I am not willing to make the compromises necessary to do so. I will just have to recreate passwords everywhere in case my drive crashes.

      Life would be a lot easier if sites would accept my SSH key or my PGP key as ID.

      --
      Finally! A year of moderation! Ready for 2019?
  21. Depressing by Anonymous Coward · · Score: 0

    How far /. has fallen.

    this article doesn't deserve a dignified discussion its absurd and misguided please don't encourage them further

  22. Trust by mrflash818 · · Score: 3, Insightful

    I think, because only a fraction of 'net users are security conscious.

    The rest just use the 'defaults' of their apps and search result links for things like email , online shopping, and online banking, and trust(?) that the people providing the access to their email, online banking, and online shopping, kept them safe.

    --
    Uh, Linux geek since 1999.
    1. Re:Trust by Anonymous Coward · · Score: 0

      You're almost right. The people don't trust that companies keep them safe. The people trust that the credit card companies will reimburse them for any credit card fraud. Basically, the people trust that security breaches won't affect them personally. So they're trusting things like laws and regulations to keep them safe, not just security settings in software.

  23. Answering the question by PaddyM · · Score: 1

    Why aren't we? Because using ssh doesn't prevent people from posting their private keys to github and being shocked, outraged even, that their entire infrastructure is now compromised?

  24. I see we are recycling reddit posts now by Anonymous Coward · · Score: 0

    I see we are recycling reddit posts now

    1. Re:I see we are recycling reddit posts now by lister+king+of+smeg · · Score: 1

      Oh I thought it was a Ycombinator Hacker News post first. Besides each site has different communities with different values and cultures it is intresting to see the different conclusions they will come to.

      --
      ---Saying gnome 3 is better than windows 8 not so much a compliment as it is damning with light praise.
  25. because setting up a SSH cert is still a PitA by acroyear · · Score: 1

    seriously, have you ever tried to get a cert installed properly in J2EE? Node? PHP/Apache? Ever tried to get PGP working right on t-bird?

    There is nothing about the process that is straightforward in any way (including the cert signing stuff). Thus, most websites will simply find it easier to not bother. Let those who can pay for experts pay for it, but until expertise becomes "push this button" easy, and still almost free, it isn't worth it for typical web traffic.

    --
    "But remember, most lynch mobs aren't this nice." (H.Simpson)
    -- Joe
    1. Re:because setting up a SSH cert is still a PitA by amorsen · · Score: 1

      This is exactly why it would be nice to use SSH instead. SSH key handling is easy.

      The slowness and excessive round trips that SSH connections require makes it entirely impractical to replace HTTPS, of course, but I would LOVE if the key handling parts were copied.

      --
      Finally! A year of moderation! Ready for 2019?
  26. Oh, wait, my bad! by Ecuador · · Score: 2

    I confused medium.com with the other site that is often the target of /. article links. Dammit now I am stuck, I can't remember it, it has a simple name as well, it is one with "scientific" topics but really crap content in a fancy css scrolling article... Sorry about that...

    --
    Violence is the last refuge of the incompetent. Polar Scope Align for iOS
    1. Re:Oh, wait, my bad! by Chelloveck · · Score: 2

      I confused medium.com with the other site that is often the target of /. article links. Dammit now I am stuck, I can't remember it, it has a simple name as well, it is one with "scientific" topics but really crap content in a fancy css scrolling article...

      Sounds like a perfect description of medium.com to me...

      --
      Chelloveck
      I give up on debugging. From now on, SIGSEGV is a feature.
  27. Re: SSH actually does handle some of those limitat by Anonymous Coward · · Score: 0

    The protocol handles environment variables. That's not much different than HTTP headers.

  28. The NSA would love it. by flajann3290 · · Score: 1

    Since, according to some sources, the NSA have cracked the SSH protocol, you probably DON'T want to use it "for everything". Perhaps this question is a shill?

    1. Re:The NSA would love it. by Yosho · · Score: 2

      Got any reliable citations for those sources, or is it just the nebulous "some"? I mean, some sources say the NSA has brainwave scanners and can tell what you're thinking from a van outside your house. But those guys are nuts.

      The protocol is an open standard, and anybody who has looked at OpenSSH's source code has "cracked" it. It's not terribly complex. If you're transmitting over an unencrypted connection or using a compromised cipher or key, anybody can figure out what you're doing.

      The real issue (and what you're probably thinking of) is whether the NSA has backdoors in or has cracked different encryption ciphers that are commonly used over SSH. If they have, that's a much more widespread problem than just SSH, because those ciphers are used elsewhere, too (like in HTTPS).

      --
      Karma: Terrifying (mostly affected by atrocities you've committed)
    2. Re:The NSA would love it. by Anonymous Coward · · Score: 0

      Got any reliable citations for those sources, or is it just the nebulous "some"? I mean, some sources say the NSA has brainwave scanners and can tell what you're thinking from a van outside your house. But those guys are nuts.

      I believe those sources are this week's Der Spiegel article citing the NSA themselves.

  29. Becuase using one thing for every purpose sucks. by Anonymous Coward · · Score: 0

    SSH is not a magic bullet. It is designed for secure remote administration and it does that extremely well.

  30. Another idea... by marciot · · Score: 5, Funny

    Condoms are pretty good for safe sex. I think we should be using condoms to protect our bank accounts, for giving everyone safe drinking water, for screening passengers at airports and for securing your valuables in hotel rooms.

    1. Re:Another idea... by Smurf · · Score: 1

      Condoms are pretty good for safe sex. I think we should be using condoms to protect our bank accounts, for giving everyone safe drinking water, for screening passengers at airports and for securing your valuables in hotel rooms.

      I can assure you: leave a used condom on top of your valuables and no one who enters that hotel room will touch them.

    2. Re:Another idea... by Anonymous Coward · · Score: 1

      Condoms are pretty good for safe sex. I think we should be using condoms [...] for screening passengers at airports [...]

      It'd probably be as secure as the current setup, and slightly less disgusting.

    3. Re:Another idea... by Anonymous Coward · · Score: 0

      we should be using condoms [...] for screening passengers at airports

      Don't we already?

  31. Non-interactive ssh is fine - e.g. git push by Anonymous Coward · · Score: 0

    What issues are there for "other applications"? Mostly everyone uses ssh for git push, for example, and it works quite fine...

  32. I Tried to Compile it by Anonymous Coward · · Score: 0

    What are all the Golang dependencies?

  33. Issues. by dayton967 · · Score: 1

    One problem with ssh-key client authentication, is the trust of the public key, now both there is x509 and openssh's certificate based authentication systems, but neither are globally adopted by all clients and servers. This leads to the "how do you absolutely know that the key listed in authorized_keys is a valid ssh key or if someone has added one to it. But you without widescale support of SSHFP, there's no method of really trusting the servers keys either, if you are connecting to a server for the first time, can you actually trust the fingerprint, and if the fingerprint changes how do you know if it's a valid change or not.

    A second problem is that with key-agents, allows for the key to be used to connect to other systems, so if someone obtains your "insecure" private key, they could have access to each server that trusts that key, directly or indirectly.

    A third, which isn't a problem but somewhat of missing documentation, is that of the Sub Services, So many more features could be generated with better documentation available, an example could be to provide a replacement for the time services (not ntp), and I have used it in the past to output stats from various services, but the documentation is missing.

    The last thing I will say, on the server side not only deprecate ssh v1, but it's time to completely obsolete and remove it.

  34. Just Call Me Mr. Ssh by Greyfox · · Score: 1

    Opportunistic end-to-end encryption was originally in the IPv6 Sec. Somewhere along the way it went missing. Along with the FreeSwan project which had it working pretty well for IPV4 a decade and a half ago.

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

    1. Re:Just Call Me Mr. Ssh by Anonymous Coward · · Score: 0

      Opportunistic end-to-end encryption was originally in the IPv6 Sec. Somewhere along the way it went missing.

      It's called IPSec. It's there. If you want opportunistic crypto, you need some assured way that you are talking to who you think you are talking, otherwise opportunistic crypto is totally insecure.

      IPSec + DNSSEC for key distribution is how you get secure crypto. It works and the protocol is superior to SSH. But that is not part of IPv6 because it is completely different network layer. Kind of like complaining why IPv6 is not part of ethernet standard.

  35. why by Tom · · Score: 1

    Why Aren't We Using SSH For Everything?

    Because only morons use the same tool for everything. Experts use the best tool for the job at hand.

    And besides, most of us use SSH for a lot of things. For remote management, copying files, for accessing our git repositories and probably 20 other things.

    --
    Assorted stuff I do sometimes: Lemuria.org
  36. BIG FAT SECURITY Issue by Anonymous Coward · · Score: 0

    ssh stores keys in ~/.ssh

    At the same time we still use the retarded "user" concept of Unix. Now, a browser, PDF reader or LibreOffice or Gimp exploit is sufficient to get the key. Granted, it is protected by passphrase, but these are often not very strong. One character of prose is typically much less than 1 bit of entropy if you are up against a well-funded (read: well-skilled) adversary.

    Even better, an infected firefox could directly attach to other processes of the same user using the /proc/mem file system.

    From this you can guess how NSA-GCHQ acquires ssh keys. A single visit of SD is probably sufficient, given the rogue nature of their behaviour.

    We baldy need to sandbox ALL processes in order to shore up security. Also, the SE Linux approach of labelling resources and allowing only processes with appropriate privileges to access the ssh keys must be implemented.

    1. Re:BIG FAT SECURITY Issue by Anonymous Coward · · Score: 0

      "We baldy need to sandbox ALL processes in order to shore up security. Also, the SE Linux approach of labelling resources and allowing only processes with appropriate privileges to access the ssh keys must be implemented.
      "

      GRADM of grsecurity too.

  37. More likely by Anonymous Coward · · Score: 0

    They use some sort of exploits to attach to /proc/mem when ssh runs and has the plaintext key. A single firefox exploit in SD would work wonders against the "Linux terrorists" like you and me.

  38. BINGO by Anonymous Coward · · Score: 1

    The problem of SSL/TLS is exactly the feature-overload.

    Do we really need to have asymmetric crypto exposed via an automated interface ???

    Because that implies a massive piece of code just to parse the ASN1 mumbo-jumbo. Tons of bugs were in ASN1 parsers alone. Most developers dont know how to properly check a SSL/TLS connection for a MITM attack, actually.

    When I do banking, why cant I just use a symmetric cipher my bank has mailed to me in some sort of moderately secure physical envelope ?

    And when I really need to do some sort of key exchange over the net, maybe manually running GPG is the better approach ?

    1. Re:BINGO by achraf52 · · Score: 2

      Not every web service can mail you a physical symmetric cipher, banks maybe, but they focus on making online banking much like PayPal than providing the hardest security they can implement. On the other hand, the SSL/TLS protocol does just what described (symmetric key delivery) in a pretty automatic way, by providing the browser a public key, the browser generates an encryption key locally, encrypts it with the server's public key, then sends it to the server, which will use it for future communications with the client.

    2. Re:BINGO by hey! · · Score: 4, Insightful

      I think you just answered the poster's question, by the way. SSH is quite good for what it does, but what it does doesn't cover every conceivable need.

      A better question might be,"Why aren't we using SSH *in more situations where it might be useful*?"

      --
      Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
    3. Re:BINGO by Anonymous Coward · · Score: 0

      "Why aren't we using SSH *in more situations where it might be useful*?"

      For instance replacing every single instance of Telnet. Because using telnet is to security what homeopathy is to birth control.

    4. Re: BINGO by Anonymous Coward · · Score: 0

      Thats why banks offer service that third party can request user authentication via bank service. You can as well do the payment directly trough bank that way.

      Serivice ask user choose his/her bank from list, directs user to the bank site where user authenticates itself and complete payment if wanted, bank informs service that authentication/payment is completed and directs back to service.

  39. Or by Anonymous Coward · · Score: 0

    They managed to slip something into gcc along the lines of the Tompson attack.

    This is a gang of something like 1 million gang members all over America. They can do things you never dreamed of. Unpunished.

    1. Re:Or by MightyMartian · · Score: 1

      And you have some evidence of this, right?

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
  40. Winderz by Anonymous Coward · · Score: 0

    One word for why ssh is not literally "everything" : Windows

    Sure, there are ssh clients/servers for Windows, but ssh is not a native Windows protocol. Without that, it won't ever be "everywhere." Another example of the "we know best" attitude and lack of listening/insite from top managers who are at this point so indoctrinated/co-joined with Microsoft that Bill Gates' left arm sprouts from an RDP session on their side when they need to wipe.

    The powers to be at my work have actually tagged SSH as a volunerability on our network due to root being able to access all ssh keys on a system. Without being able to secure those keys from root, they are slowly phasing it out. (Yes, they are so clueless to think they can hide root-owned files from root on UNIX -- these are the same folks saying RDP is more secure ... and the same folks a very large storage place for your money! -- YES, be very very afraid!)

    1. Re:Winderz by lister+king+of+smeg · · Score: 1

      I wish Microsoft would bite the bullet and just drop telnet and fork Openssh for use on windows, at this point there is no good reason for them not to.

      --
      ---Saying gnome 3 is better than windows 8 not so much a compliment as it is damning with light praise.
    2. Re:Winderz by Anonymous Coward · · Score: 0

      Yes, there is.
      Fork OpenSSH? Nope, not a bad idea. PuTTY is also nicely MIT licensed, so it would be great for Microsoft to do this.
      Drop Telnet? No. A Telnet client is close enough to a raw TCP client that Telnet is useful as a handy way to send TCP traffic for TCP troubleshooting. As long as some TCP traffic isn't SSH encrypted, keeping the Telnet client is useful.
      And having a Telnet client that is readily available but only after going through a tedious process to "Install" it, is just plain annoying. I regularly wish that Vista (and subsequent) hadn't done that.

  41. Binary protocol by Anonymous Coward · · Score: 0

    "Binary protocol" isn't really a good thing or a bad thing, it's just a thing.

  42. Re:IP by OrangeTide · · Score: 1

    Instead of being first hand journalism, sites like Slashdot and Reddit aggregate news and lets people discuss it.

    At least old timey newspapers would hire journalists. Here we just regurgitate stuff we find. I don't really get the whole Reddit/Slashdot was first kind of competitiveness in the light that neither site creates much original.

    --
    “Common sense is not so common.” — Voltaire
  43. Best cipher and config for SSH? by Anonymous Coward · · Score: 0

    Clearly, merely using SSH is not nearly enough. What are the best practices for SSH configuration? Cipher type, key length, other options, etc.

    I've done some searches on this but haven't come up with much.

  44. Re: SSH actually does handle some of those limitat by Anonymous Coward · · Score: 0

    Perhaps, but the semantics are different.

    Proxying and caching is another HTTP feature that is common place that might be hard to do in SSH. Sure, ssh can redirect and pipe. But there isn't a very good way to encapsulate multiple ssh sessions without both ends knowing about the structure of the proxying.

  45. Well, I already am but confusion.... by Celarent+Darii · · Score: 1

    If you are using a SSH tunnel or similarly with a VPN, you are already doing 'everything' over SSH, that is to say the whole network connection. Even my X11 server is using it right now.

    However HTTP/S, SMTP and the like are protocols, not transport mechanisms.

  46. Re: I agree. by Anonymous Coward · · Score: 0

    I used it to fuck your gf with. You really have to be careful.

  47. and yet,.... by Anonymous Coward · · Score: 0

    It us almost always windows that is cracked.

  48. Why can't the linkspamming stop? by Anonymous Coward · · Score: 0

    Even if the serial spammers start spamming anonymously, the site remains unreadable.

  49. WinSCP sucks. by buckfeta2014 · · Score: 1

    It's sucked for a long ass time. I've tried it with HPN on and off, and tried setting it between SCP and SFTP modes, the thing is nowhere near as fast as it should be.

    --
    Buck Feta. You know what to do.
    1. Re:WinSCP sucks. by Anonymous Coward · · Score: 0

      That's because it's not that well optimized.

      There is basically one guy working on it and all the important bits are using PuTTY code anyway, which is definitely not optimized for file transfer.

      But they are both free and they work; Donate Code, Money or STFU.

    2. Re:WinSCP sucks. by Anonymous Coward · · Score: 0

      Use Cygwin and build HPN SSH from source. Much, much faster.

  50. Just NO. by Anonymous Coward · · Score: 0

    because monocultures are bad. haven't we seen enough bad shit from monocultures last year. You have to look no further to heartbleed as to why this is a fucking aweful idea.

  51. fuck off hammelton by Anonymous Coward · · Score: 0

    Is this just not Benedict Bumblefuck again?

  52. compression, cipher, application by raymorris · · Score: 2

    Turn on compression with -C and select a fast cipher with -c

    ssh -C -c blowfish-cbc,arcfour -X

    Also, some applications (Firefox) seem to do all their own per-pixel rendering rather than using appropriate X primitives. For those applications, VNC with a a minimum color palette may work much better, or choose a different application that does the same job.

    Speaking of choosing different applications, consider CLI options. A CLI interface is quite usable at about 64 kbps. I use the GUI only for a browser and email, and occasionally virt-manager. The browser and email can use the socks proxy feature of ssh, so that only leaves virt-manager as the only application I ever forward.

    1. Re:compression, cipher, application by drkstr1 · · Score: 1

      This helped. Cheers and thank you!

      --
      Fanboy Status: Apache Flex, C#, Eclipse, KDE, Pirate Party, Ron Paul, Slackware, Windows 7
  53. Forwarding X? by Anonymous Coward · · Score: 0

    X is going in the trash. HAHAHAHAHAHH YOULL BE OUT OF A JOB HAHHAHAHAH.
    Other newer stuf is replacing it. HAHHAHAHAHAH
    Also all the unix commands you knew tooo
    SYSTEMD it taking that over.
    HAHAHAHAHAHHAH YOUR GOIGN TO BE OUT OF A JOB AHHAHAHAHAHAHAHHA

    Systemd rules. Wayland/Mir/notX rules!
    And you will be FORCED to use them SUCKA FUCK!

  54. Re:Actually... by Anonymous Coward · · Score: 0

    The title is just as misleading:

    Why Aren't We Using SSH For Everything?

    Exactly. Why aren't we using SSH as a text editor? Why aren't we using SSH to monitor the computer's microphone? Heck, why aren't we using SSH to fry eggs on the stove?

    Excellent idea. I think we need to add the capabilities of awk, sed, sort, uniq, and while we're at it lets include systemd into ssh, just so we get everything in it's appropriate place.

    Or is it that we should include it all into systemd? It all gets so confusing when you try and shove everything into a dependence on something else.

  55. People haven't educated themselves by Anonymous Coward · · Score: 0

    Look, to be blunt people don't know shit. They probably should read the book by Michael Lucas, "SSH Mastery." But they're pobably too stupid and lazy to do it.
    https://www.michaelwlucas.com/nonfiction/ssh-mastery

  56. well..i guess that was a rethorical question by Anonymous Coward · · Score: 0

    first, don't put all eggs into one basket.

    second, ask your mom if the thinks using ssh exclusively would be fun for her.

  57. Re: IP by Anonymous Coward · · Score: 0

    Just like an owl regurgitat'n its preys innards, we serve it to the masses like mothers milk... nasty filthy plop I say. Not like ole time tree fodder news one could clean the bottoms with...although pixels aren't Charmin... maybe truetype fonts are easier on the bum

  58. Re:Actually... by Anonymous Coward · · Score: 0

    The NSA: concerned about your privacy since June 2013.

  59. This is Stupid by Anonymous Coward · · Score: 0

    Metaphorically, you're trying to use a hammer to put in a screw, where several more apprpriate screwdrivers already exist.

    SSH stands for Secure Shell. It was intended to be a secure replacement for telnet, providing text based terminal access over a secure channel. It has since been hacked to do a lot more and it is amazingly useful. But it is also woefully inadequate for a use everywhere approach and will never be able to accomplish such versatility. It was never inteneded to do what it already does, let alone "everything".

    Your primarility talking about replacing HTTP with SSH, but there is no need. We already have HTTPS. We already have IPSec. We already have IPv6 with IPSec. The right tools are alreday available, you just have to inplement them. Hacking SSH to do one more thing that it was never intended to do is an epic waste of time and effort that is EXACTLY what I would expect from juniors in the field.

    Why aren't we using SSH for everything? Because it's a stupid idea, that's why!

  60. Re:Actually... by Tatarize · · Score: 1

    Given that they easily cracked SSH why use it for much of anything. Properly we'd want/need something stronger. And you can't really exchange keys over the internet in a really safe way. Though, I'm hugely in favor of replacing general public key encryption schemes for those password schemes to access websites. Just encrypt my account with the key on file, if I can read what my email is, I must be me.

    --

    It is no longer uncommon to be uncommon.
  61. Re:Actually... by Anonymous Coward · · Score: 0

    Cracked SSH? SSH is a protocol. There's nothing to crack, except your empty skull. If you want to crack something, try some 8 kb RSA keys. Good luck!

  62. https by Anonymous Coward · · Score: 0

    HTTPS is not a security protocol. It's a security certificate. Close to irrelevant in this matter.

  63. In Other Words by Anonymous Coward · · Score: 0

    SSL/TLS is a piece of JUNK for Essential Services like Twitter and G-mail.

    REAL security is done the hard way via couriers and physical post transfer of keys.

    And yeah, you dont need to explain to me what SSL/TLS does in an insecure way.

    Get off my lawn and leave me alone with my FIALKA machine.

  64. Encryption bit by Anonymous Coward · · Score: 0

    So why isn't there an encryption bit in the IP header? Why do we insist on doing encryption so far up the stack?

  65. BINGO by Anonymous Coward · · Score: 2, Informative

    Or we could just finally implement DNSSEC, and put the keys (Or, rather, the fingerprint) in the DNS.

    Someone is about to point out that DNS can be subverted and hijacked, even with DNSSEC.

    Well, considering that SSL keys are commonly *emailed* to people, if anyone has subverted your DNS, or anyone's DNS, you're screwed anyway. At least with DNSSEC, it requires hacking into the actual registrar account and changing records there, instead of just tricking the least-secure SSL-issuer's DNS. (And registrars already have pretty good protection against that, considering that stealing domain names was a hobby a few years ago. And if they don't, you can always change registrars, whereas you can't stop insecure SSL-issuers you've never met from existing and issuing bogus keys for you.)

    And with people getting *mailed* SSL keys actually means if the DNS is stolen for a few minutes, which people would never notice (Especially if the attackers are smart enough to just redirect MX records, and hand over every piece of mail *except* the SSL keys.), everyone can run MiTM attacks against people for a *decade* with the key they got mailed. (You could get the key revoked, but only if you know it exists, and pretending that key revocations actually worked.) Whereas with the keys in the DNS, as soon as you fix the DNS, it's fixed, everything's over.

  66. SSH for Windows by Anonymous Coward · · Score: 0

    If anything is missing, it's probably only missing on Windows.

    Support on Linux and Mac is jut fine, I think.

    Windows:
    - client support is kind of OK
    - virtual filesytem support is kind of OK

    The biggest missing solution:
    - Windows server support. There are some expensive solutions, not sure how well they work.

    Cygwin provides an ungodly amount of functionality for windows, including ssh, sshd, and X windows secured by ssh. Admittedly, you have to have a unix/linux clue. But it definitely rewards the effort.