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."

117 of 203 comments (clear)

  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).

  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 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.
    3. 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 ?

    4. 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 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.
    2. Re:I do by AchilleTalon · · Score: 1

      I cook eggs and bacon each morning with SSH.

      --
      Achille Talon
      Hop!
    3. 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."
    4. 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?

    5. 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!

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

      Secure Sh*t Hole?

    7. 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..

    8. 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.

    9. 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"
    10. 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.

    11. 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 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.

    6. 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.
    7. 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.

    8. 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.

    9. 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.
    10. 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)
    11. 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.
    12. 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.
    13. 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.
    14. 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!

    15. 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.

    16. 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)
    17. 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.
    18. 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. 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 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.

    4. 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
    5. 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.
    6. 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
  7. 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

  8. 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 ron_ivi · · Score: 1

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

    3. 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.

    4. 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.

    5. 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.

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

    ... everything looks like a nail.

  10. 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 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).

  11. 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 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).

    2. 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.

    3. 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.

    4. 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?
    5. 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).

    6. 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.

  12. 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.
  13. 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]

  14. 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 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.

  15. 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 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.
    4. 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.
    5. 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.

    6. 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?
  16. 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.
  17. 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.

     

  18. 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?

  19. 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?
  20. 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.
  21. 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)
  22. 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.

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

    Someone was aiming at "cool story, bro".

  24. 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.

  25. 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?

  26. 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
  27. 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.
  28. 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.
  29. 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
  30. 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.

  31. 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.
  32. 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
  33. 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.
  34. 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.
  35. 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"?
  36. 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.
  37. 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.

  38. 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.