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.

17 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. 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 Anonymous Coward · · Score: 1, Informative

      Putty feels nice, but putty is ssh v1 only. The v1 protocol is flawed, and is obselete. Until putty catches up, your security is not what you think it is.

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

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

  6. 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.
  7. Umm...no by fatwreckfan · · Score: 2, Informative

    Actually, the book has been out for over a year now, as can be seen on the O'Reilly site.

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

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

  12. Re:Web mail popping ssl by conradp · · Score: 2, Informative

    I use FastMail and have been very happy with them, they're still small enough that you can contact the developers directly and they respond promptly. I use SSL IMAP but they support SSL for POP as well.

    --
    "To be absolutely certain about something, one must know everything or nothing about it." -- Olin Miller