Slashdot Mirror


SSH, The Secure Shell

If you administer remote systems, check your email from the road, or just have a sense of paranoia about your home network, you're probably somewhat familiar with SSH. If you need to know more, though, danny writes "SSH, The Secure Shell will be another 'must have' O'Reilly volume for many system administrators. Read on for my full review." SSH, The Secure Shell author Daniel J. Barrett, Richard E. Silverman pages 540 publisher O'Reilly & Associates rating 8 reviewer Danny Yee ISBN 0-596-00011-1 summary Comprehensive look at the ubiquitous SSH protocol, from installation to advanced uses.

A comprehensive study of what is now a key part of many network systems, SSH, The Secure Shell is a valuable resource for system administrators and users. Its explanations are clear and thorough: I'm not sure about the "definitive" claim, but Barrett and Silverman do go into considerable detail, often to the limits of "if you want to play with this you really ought to look at the source code." Perhaps most importantly, The Secure Shell is organised so one can easily skip unwanted detail and find just those portions that are relevant. As a result, it can be used in different ways -- read through to learn about ssh and what it can be used for, or just consulted as necessary to answer particular questions or solve particular problems.

Chapter one puts ssh in context, looking at its history and related technologies, and chapter two introduces basic client operation. Anyone who uses ssh and scp as simple telnet and ftp replacements and isn't curious about how they work can stop reading here -- and doesn't really need their own copy of The Secure Shell. Chapter three is an "under the covers" look at ssh. After a three-page introduction to cryptography (not really suitable for the reader with absolutely no background), it explains the ssh1 protocol and then how ssh2 differs from that and the extra features it offers. There is also a brief overview of the cryptographic algorithms commonly used in ssh implementations, and an explanation what ssh secures and what it doesn't.

The rest of the book is more implementation-specific: the primary implementations covered are SSH, SSH2, and OpenSSH. Being a lazy user of packages, I skipped chapter four, on installation and compile-time configuration. Chapter five is a guide to server configuration, working systematically through the sshd configuration file options.

The next four chapters are aimed at power users, covering client use in much greater depth. Chapter six explains key management: what identities are, how to create them, how to manage them with ssh agents, and how they can be used (to automate logons, most obviously, but fancy things can be done with multiple identities). Chapter seven goes through client configuration in detail, working through the configuration file options, chapter eight covers account configuration on the server-side (including forced commands), and chapter nine looks at port and X11 forwarding.

For those overwhelmed by all of this, chapter ten describes a sample "recommended setup" for everything from compilation to client configuration. Chapter eleven covers some special topics -- unattended SSH, FTP forwarding, mail over SSH, Kerberos, using SSH through a gateway host -- and chapter twelve is a troubleshooting FAQ.

Chapter thirteen is an overview of other implementations, with a table of products, and four short chapters then cover specific Windows and Mac clients. Of the three Windows clients covered here, two are proprietary and the third is only distributed as a bzipped tar file: it would have been good to have a chapter on one of the free and more user-friendly Windows clients, perhaps PuTTY or TTSSH, both of which get a "recommended" tag in the table of products.

You might want to purchase SSH, The Secure Shell from Barnes and Noble or read some of Danny's 600+ other book reviews. Want to be a famous book reviewer? You can read your own book reviews in this space by submitting your reviews after reading the book review guidelines.

22 of 174 comments (clear)

  1. PuTTY by asavage · · Score: 5, Informative

    PuTTY is a great free product. I have to use it for school as telnet access is blocked. It is probably for the best though.

    1. Re:PuTTY by T3kno · · Score: 3, Informative

      I love PuTTY, it's small, fast and has a lot of nice features, and best of all it's free. It's the first thing I do to any Windoze box I come in contact with. Launch about 5 PuTTY sessions and forget about Windoze.

      --
      (B) + (D) + (B) + (D) = (K) + (&)
    2. Re:PuTTY by jilles · · Score: 4, Informative

      Putty and its lesser known brother winscp2 are great tools. Also great is mindterm (google it). It is actually a Java application that can also be deployed as an applet. The great thing about the applet version is that you can launch it from any Java enabled browser and use it to connect to your system securely. Great when you are stuck in an internet cafe or somewhere else with limited browsing facilities.

      --

      Jilles
    3. Re:PuTTY by rherbert · · Score: 3, Informative

      It looks like MindTerm is no longer free - try the Java Telnet/SSH applet/application.

  2. An essential tome in any sysadmin's library by southpolesammy · · Score: 4, Informative

    I can't tell you how many times I've earmarked, copied, lent out, and otherwise thumbed through that book. Even after a few years now, I still find gems that I can find uses for in my daily grind.

    I'd also check out the following books for great sysadmin knowledge:

    "The Practice of System and Network Administration", Limoncelli & Hogan
    "UNIX System Administration Handbook", Nemeth, Snyder, Seebass, & Hein
    "Programming Perl", Wall, Christiansen, and Orwant
    "Essential System Administration", Frisch

    --
    Rule #1 -- Politics always trumps technology.
  3. And this book provides what extra value? by dills · · Score: 3, Interesting

    I guess I don't see why somebody would buy this book. I own several O'Reilly books, but I can't figure out why somebody would buy this. For the average and below-average admin, ssh is fine with the default install. For the above-average admin, they don't need the info spoon-fed, and there doesn't appear to be any "quick reference" value.

    1. Re:And this book provides what extra value? by maiden_taiwan · · Score: 5, Informative
      I'm biased -- being one of the authors -- but the book does contain non-spoon-fed info for the experienced sysadmin. For instance, the case studies in chapter 11 (read it for free) discuss integrating SSH with Kerberos, port-forwarding FTP, etc., down to an excruciating level of detail. Sure, an SSH guru could figure this stuff out... after a few days of trial and error... but we've saved you the trouble.

      People might find the default installation to be fine for basic use, but installation is only the first step of a journey. If all you want is "ssh -l user host" and "scp myfile foo@example.com:", that's great, but SSH has many other interesting uses and subtle behaviors.

  4. PuTTY rules by RealisticWeb.com · · Score: 5, Informative

    the free and more user-friendly Windows clients, perhaps PuTTY or TTSSH,

    I have to second that opinion of PuTTY. Every time I am forced to use a windoze boxen to log into my server, I always use putty. It is very small (less than floppy size), is a standalone executable so it doesn't touch your registry, and it handles YAST just fine. You can get it from versiontracker. I highly recoment it.

    --
    Sigs are out of style, so I'm not going to use one...oh wait..
    1. Re:PuTTY rules by Nos. · · Score: 4, Informative
      so it doesn't touch your registry

      Assuming Windows 2000, check HKCU\Software\Simon Tatham

      Since it is a single file, where do you think it stores the session information? However, Putty is a wondeful program and is my Windows SSH client to home.
    2. Re:PuTTY rules by anthony_dipierro · · Score: 4, Insightful

      It is very small (less than floppy size), is a standalone executable so it doesn't touch your registry, and it handles YAST just fine.

      As was mentioned by someone else, it does touch your registry, but only if it can. What I like about it most is I can put it in my network drive at school and use it from all the computer labs without installing anything. Before I found putty I had to resort to a slow, ugly, broken java applet.

      Just remember, unless you memorize the fingerprint, ssh doesn't protect against man-in-the-middle attacks when you switch client computers.

    3. Re:PuTTY rules by Our+Man+In+Redmond · · Score: 4, Insightful

      is a standalone executable so it doesn't touch your registry

      I beg to differ. It saves its information in HKEY_CURRENT_USER\SimonTatham\PuTTY (at least it does on my Win2000 Pro box).

      And yes, PuTTY does rock. At any given time I have about half a dozen PuTTY sessions open on my desktop, with various connections to my development servers and home box. Not quite as good as having a Linux box to work on, unfortunately, but about as close as you can reasonably get. Like the man says, it's called PuTTY because it makes Windows usable.

      --
      Someone you trust is one of us.
  5. Woohoo! by Indras · · Score: 4, Funny


    A snail for my O'Reilly zoo! Lets hope he can get along with all the other animals... or maybe he'll get eaten. Ah, who knows!

    --
    The speed of time is one second per second.
  6. My favourite OpenSSH feature by coleSLAW · · Score: 5, Informative

    The best thing in the newest version of OpenSSH just has to be the `-D ' switch. It provides a SOCKS4 proxy on the local port which dynamically proxies to the remote machine. How cool is that? It provides an instant VPN tunnel to your remote network!

    --

    == I am not Me.

  7. Buy it cheaper at half.com or bookpool.com by Seth+Finkelstein · · Score: 5, Interesting
    Take a look at this price comparison from http://www.bestbookbuys.com/

    half.com - $23.00
    bookpool.com - $24.50
    Barnes and Noble ... $31.96

    Sig: What Happened To The Censorware Project (censorware.org)

  8. Got the book.... by Satan's+Librarian · · Score: 5, Informative
    and what it has that's not easy to come by is a comprehensive description of SSH from both a user's and an administrator's viewpoint that's really readable. Of course, the internet drafts are the primary source of hardcore information, but it's nice to scan the book for additional insight on some things.

    I've found the book to be extremely useful, but then I'm working on a multiplatform GUI SSH2 client myself so my opinion may be a bit skewed.

    1. Re:Got the book.... by 47PHA60 · · Score: 3, Insightful

      agreed; I am especially happy with the sections on the anatomy of an SSH1 and SSH2 session. For administrative use and documentation, the descriptions are as comprehensive as the draft standard, but much more clearly written.

  9. My *own* favourite OpenSSH feature by wirefarm · · Score: 3, Informative

    From work, SSH home - then open X Window or GTK, KDE programs that exist only on your home machine (gtk_gnutella, mozilla outside your corporate firewall, nmapfe, you name it...)

    X connections over ssh are braindead easy, secure and quite simply kick ass.

    Cheers,
    Jim in Tokyo

    --
    -- My Weblog.
  10. PuTTY rules by jabbo · · Score: 4, Informative

    My entire staff uses PuTTY and I've fixed site problems from halfway around the globe (in Cambodia and Laos, no less) using it. It is a godsend like none other. Even on machines where I cannot save items to local disk, the 'run from current location' feature on Windows lets it work fine, and then I leapfrog in with an RSA key...

    The forcible-keying and cipher selection options in 0.52 play nicely with OpenSSH 3.0+, which in my opinion elevates PuTTY above ttssh. The only competition is the Mac version, 'Nifty Telnet-SSH'.

    Of course, nothing is as convenient as my ssh-agent process that spawns my X sessions at home. Since all my machines are RSA-keyed, and most are ONLY RSA-key accessible, access is transparent for me and damn near impossible for Bad Guys. (I allow an internally-usable backdoor for staff at the office without using RSA keys, but only on a couple machines necessary for their work... it's funny that now, if I screw up an OpenBSD upgrade, I get complaints about mutt not working. Everyone assumes Outlook is a POS, but they know I'm responsible if they can't use Mutt from a PuTTY session at some Kinko's or DoD machine!)

    --
    Remember that what's inside of you doesn't matter because nobody can see it.
  11. Get a new version by RealisticWeb.com · · Score: 4, Informative

    Putty feels nice, but putty is ssh v1 only

    Either you are using an old version, or you havent figured out how to use a "menu system". Let me refer you to the developers FAQ page:

    A.1.1 Does PuTTY support SSH v2?

    I hope that clears that up

    --
    Sigs are out of style, so I'm not going to use one...oh wait..
  12. And next from O'Reilly by Anonymous Coward · · Score: 5, Funny

    "tr" - the definitive guide
    The ifconfig bible
    /etc/aliases in a nutshell
    The System Administrator's guide to "ls"
    find - the command that finds things

    Plus, for Windows users:

    Notepad for power-users
    The DOS "cd" command - navigating directories from the command line
    format - making unformatted discs usable for the storage of files.
    Start->Shut Down - Switching off your computer for dummies.

  13. ssh.com's SSH Secure Shell for Windows by %systemroot% · · Score: 3, Interesting
    ...is quite good, and it's free for noncommercial use (check the website for what their lawyers mean by that.)

    I am quite pleased with the latest version for workstations (3.1) in that they have finally implemented somewhat-intelligent URL handling (i.e. clicking on a URL brings up the link in a new window in your default browser) and the look of the app can match the XP look with the click o' a checkbox, for those who care about such things.

    Additionally, the Explorer-like secure file transfer window is a godsend for folks like me who:

    are too paranoid to have an ftpd running on their servers, and

    appreciate how it Just Works.
    If you, say, use your Windows gaming machine to occasionally ssh in and mutt or pine through your mail on your *nix server, I'd recommend checking it out. (No, I have no affiliation with ssh.com, I just like the product.)

  14. A great use for ORA's safari by astrashe · · Score: 3, Informative

    O'Reilly's Safari lets you read books online. It's a lot cheaper than buying the books, and for things you don't absolutely need on your shelf, it's a good deal.

    It's really easy to use basic SSH, but managing keys and using the more advanced forms of authentication is more of a hassle. You can read the docs, search the web for tutorials, or you can spend a safari point (a couple of bucks) to get full access to the book online.

    I haven't read the book, but I imagine that it would be helpful for people who want to do things like run automatic backups over the network through a SSH tunnel.