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.

174 comments

  1. a more affordable alternative already exists by tps12 · · Score: 2, Funny

    man ssh

    --

    Karma: Good (despite my invention of the Karma: sig)
    1. Re:a more affordable alternative already exists by Anonymous Coward · · Score: 0

      you're not that far off

      actually owning this book (I do own it) puts some great information at your finger tips, but that same information is readily available to the amatuer web reader. I ended up using it very little as I modified this code for an automated ssh library.

    2. Re:a more affordable alternative already exists by Anonymous Coward · · Score: 0

      stop your idiotic fucking karma whoring! get a life!

  2. O'Reilly strikes again... by ThatTallGuy · · Score: 1

    Just send me one copy of everything they put out.

    1. Re:O'Reilly strikes again... by Anonymous Coward · · Score: 0

      Really.. Sometimes I wish they would start up a subscription program. Pay a one time (or yearly most preferably) fee, and receieve a copy of every print.

    2. Re:O'Reilly strikes again... by orange7 · · Score: 1

      Certainly! Just send me your credit card number =)

      A.

  3. 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 nirvdrum · · Score: 1

      I like the port forwarding features of it too. Since I use a DSL line, and my school only allows the sending of mail from the network, it makes for a nice ad hoc vpn.

      --
      If there was a "-1 Not Funny", that'd be my most used mod.
    3. Re:PuTTY by dasunt · · Score: 2

      Five Putty Sessions, or just 1 Putty Session with 1 instance of Screen?

    4. 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
    5. Re:PuTTY by Chacham · · Score: 1

      Putty is just a silly copy of am image from elsewhere, trying to go other places.

    6. Re:PuTTY by archen · · Score: 1

      Yeah, putty is nice and I've been trying to push it where I work. Unfortunatly no one ELSE seems to like it. Apperently people feel threatened if they can't see a bunch of usless buttons and icons on an app. Hopefully PuTTY will make some advancements on the maximize options - right now it does a horrible job stretching.

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

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

    8. Re:PuTTY by jilles · · Score: 2

      Yes you are right. Too bad, it used to be quite a nice application. Pitty that it requires Java 2 though.

      The nice thing about mindterm was that it didn't require Java 2 so you could even launch it from a crappy box with only netscape 4 on it. However, with netscape 4 (nearly) burried and MS no longer shipping a jvm, the days of jdk 1.1 seem numbered and it is entirely understandable that people adopt the much better 1.3+ generation of JVMs.

      BTW. a google search for mindterm applet still reveals some sites offering old applet versions of mindterm :-).

      --

      Jilles
    9. Re:PuTTY by rjamestaylor · · Score: 0
      You know all you do is play Solitare. Quit hiding your Vegas-style 3-card draw behind PuTTY sessions!

      The HR person called. Told them you're the best Solitare player I've ever seen. Definite management material, I told her. She asked about your Hearts ability, though, so you'll need to brush up a bit. Oh, and I told her Mines gave you a headache -- didn't want her to think you were technically inclined. Went well, I think.

      --
      -- @rjamestaylor on Ello
    10. Re:PuTTY by einhverfr · · Score: 2

      Yeah. Beats the crap off installing Cygwin and OpenSSH over an ISDN line shared by 30 computers....

      --

      LedgerSMB: Open source Accounting/ERP
    11. Re:PuTTY by Puppet+Master · · Score: 1
      Omnicom Technologies. has a great telnet/ssh client called AlphaCom.

      Registration is only $25.00 per user and it can do damn near anything.

      My friend and I helped develop/debug the ssh and the pass-thru printing for this program. Plus it has a very cool server command structure where you can load up any Windows program from a Unix prompt. I wrote a shell script that when run, opens up a users IE and takes them to a web page.

      Out of all the low cost telnet/ssh clients I've seen, this is by far the best one.

      --
      The day Microsoft creates a product that doesn't suck, it will be known as the Microsoft Vaccuum Cleaner!
    12. Re:PuTTY by slashdoter · · Score: 2
      I use Cygwin/and rxvt/openssh at work all day and love it, but your right it's a bitch to download everything when compared with Putty's 20 sec download and configure time. But damn, putty sucks when it comes to copy and pasting commands. Just MHO
      I just add this line to my .profile in the cygwin home dir and it works very much like putty.

      rxvt -bg black -fg grey -cr white +ls -sr -sl 10000 -e /bin/bash

      --
      Does anyone actually have a Java program designed to control air traffic, or for the operation of a nuclear facility?
    13. Re:PuTTY by mejh · · Score: 1

      I use TeraTerm with the TTSH plugin at home. Also free. And IMHO looks a lot nicer than PuTTY.

    14. Re:PuTTY by hellsop · · Score: 1

      If the internet kiosk is runing a version of windows, clicking on the "putty.exe" download link offers an interesting and useful option, even to those at kiosks without start buttons and task bars... The remaineder is left as an exercise to the reader.

    15. Re:PuTTY by einhverfr · · Score: 2

      Sure. It is the main one I use too, but try installing it in an internet cafe in Central America over an ISDN shared by 20 computers and several VOIP phones... That is a good way to go insane.

      --

      LedgerSMB: Open source Accounting/ERP
  4. 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.
  5. 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 eyegor · · Score: 2, Interesting


      For the most part I agree with you, it's not necessary for most Unix admins in order to get up and running with SSH. The man page and readme work just fine for that.

      For those who want do more esoteric things (or are interested in learning HOW it works, it provides good, clear explanations of what is done or what CAN be done and how to do it.

      While it's probably not the first O'Reilly book I'd recommend, it's still quite useful.

      --

      Don't anthropomorphize computers, they don't like it.
    2. 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.

    3. Re:And this book provides what extra value? by Phil+Gregory · · Score: 2

      I'm probably an average admin. (Possibly below-average--I only admin a couple boxes at work and about five at home.) I found the book to be quite interesting. I learned far more about the underlying SSH protocol than I had known previously, as well as numerous other things like all of the possibilities available with RSA keys. (I've subsequently used RSA-key-based forced commands for a couple things at work.) Since reading the book through, I've referred back to it a number of times. I find it to be a handier reference than the man pages sometimes and the constant comparisons of OpenSSH, SSH1, and SSH2 are nice--most of the computers I deal with are OpenSSH, but there are a couple running SSH2.


      --Phil (Very satisfied ssh user.)
      --
      355/113 -- Not the famous irrational number PI, but an incredible simulation!
    4. Re:And this book provides what extra value? by Anonymous Coward · · Score: 0

      I still have to find a clear and detailed reference about forcing commands (and its abilities and debilities doing it) to a given public/private pair, how to manage same command with various options, etc. for instance to use a public/private key-pair in order to tunneling CVS through SSH.

    5. Re:And this book provides what extra value? by audities · · Score: 1

      Does it include passwordless login instructions using ssh-agent or via other methods?

    6. Re:And this book provides what extra value? by analog_line · · Score: 2

      There isn't any quick-reference value to the book, because mostly because ssh has its own decent quick-reference in its man pages and the list of options you get just by typing "ssh". What this book is great for, and the reason why I bought it (and am in the middle of working my way through it, so a nice coincidence that a review of it got posted here) is that it's a great in-depth explanation of exactly how it works (for those who are either distrustful or just plain curious), and it exhaustively explains what all the various options mean, as opposed to stating what they do. For both the curious, and those who aren't intimately aquainted with the various security features that SSH allows you to do, it's really an invaluable reference. I was forced to find all this out the hard way, and I wish I'd known about this book back then as it would've saved me time, and would've made my life a lot easier. Now, I'm glad to have it to fulfill my curiosity about how it all works, without forcing me to read the code.

    7. Re:And this book provides what extra value? by jaxon6 · · Score: 1

      The chapter was a good read. Specifically, OpenSSH and kerberos. At this url, http://www.sxw.org.uk/computing/patches/openssh.ht ml, you can get the patches for sshv2 and krb5 support. At MIT, we use it to ssh from machine to machine without being prompted for a password. It's a very nice setup.

      --
      Do you see the sig? Do you have it in your sights? Why yes, Miss Moneypenny...
    8. Re:And this book provides what extra value? by maiden_taiwan · · Score: 1

      Yes, in great detail. You can also find answers to this FAQ on the book's official website and FAQ.

    9. Re:And this book provides what extra value? by ted_nugent · · Score: 1

      I agree that it is the most comprehensive source on this subject - much more informative than the other ssh book.

      --

      Free the West Memphis Three!

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

      VERY WRONG. Putty is a standalone executable because it stores EVERYTHING in the windows registry. I love the program, but I really wish it used config files by default instead of stashing everything (options, saved sessions, server keys, whatever) in the registry.

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

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

    5. Re:PuTTY rules by zm · · Score: 1

      OK, whoever modded the parent up as "informative" better check the facts a little. Putty has supported ssh2 for a while now.

      --
      Sig ?
    6. 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.
    7. Re:PuTTY rules by honold · · Score: 0

      putty stores all of its settings in the registry

      "Question: Does PuTTY support storing its settings in a file instead of the Registry?
      Answer: Not at present, although it's on the wish list."

    8. Re:PuTTY rules by edbarrett · · Score: 1
      The only competition is the Mac version, 'Nifty Telnet-SSH'.

      AFAICT, NiftyTelnet only does SSH1. Which sucks, because MacSSH (fc2 anyway; I just found out fc3 was out!) hasn't been real reliable on my Quadra 840AV. And it only does SSH2.

    9. Re:PuTTY rules by Laptop+Dancer · · Score: 1

      You can use putty without having it modify the registry. Use the plink.exe utility (separate download from the site) from any command line or .bat file. You pass all the tunneling info as command line parameters, and can even pass in login info (not the best practice), and a command to be executed once the login is complete (keep alive script). The chief advantage to using the GUI is the telnet client which is *vastly* superior to the Win32 telnet client. I use it to talk to Solaris all day- "duplicate session" is a personal favorite and it property handles gls colors.

    10. Re:PuTTY rules by Anonymous Coward · · Score: 0

      So anyone else has seen it can leave phantom sessions on the server if abruptly closed? (Alt+F4, for instance)?

    11. Re:PuTTY rules by Webmonger · · Score: 2

      I like and use putty, but it doesn't support SSH (X) forwarding. For that, I use TTSSH.

    12. Re:PuTTY rules by ncc74656 · · Score: 2
      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.

      I threw it up on my webserver. I can punch the URL into IE on a random public system, tell it to run instead of save, and it'll fire right up. It's never failed to run on any public system I've run across. (You'd think they'd set up some sort of security to keep people from running downloaded EXEs, but I haven't seen it happen yet.)

      --
      20 January 2017: the End of an Error.
    13. Re:PuTTY rules by DrSkwid · · Score: 2

      who needs a share

      http://www.proweb.co.uk/~matt/putty.exe

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    14. Re:PuTTY rules by anthony_dipierro · · Score: 2

      Doesn't downloading your ssh client from some random unencrypted internet site kind of defeat the purpose?

    15. Re:PuTTY rules by zm · · Score: 1

      Putty does support both X and regular local/remote forwarding.

      --
      Sig ?
    16. Re:PuTTY rules by anthony_dipierro · · Score: 1

      I threw it up on my webserver. I can punch the URL into IE on a random public system, tell it to run instead of save, and it'll fire right up.

      You're using https, I hope.

    17. Re:PuTTY rules by ncc74656 · · Score: 2
      I threw [PuTTY] up on my webserver...

      You're using https, I hope.

      Why? All my webserver is doing is sending a file, which is the same thing that it does if you visit my website. PuTTY doesn't exactly run too well under Linux, so the worst that can happen is that a bunch of people access it at once and use up all my outbound bandwidth. That could happen with anything else on the server (as happened with this slashdotting). The systems that ought to be secured are other people's publically-accessible Windows boxen on which I run PuTTY to access my Linux server at home. Someone else could easily come along and download & run some particularly nasty malware that could do substantial damage. That those systems aren't secured is a common occurence that works to my advantage.

      (Actually, since most of my website is made up of server-parsed HTML, there's a bit more processing going on to send out this than is involved in sending out this.)

      --
      20 January 2017: the End of an Error.
    18. Re:PuTTY rules by anthony_dipierro · · Score: 2
      You're using https, I hope.
      Why?

      So you're sure that the program your client receives is the same as the program your server sends, not a trojaned version which turns off encryption, for example.

    19. Re:PuTTY rules by Anonymous Coward · · Score: 0

      While you are correct, I think the bigger point he was noting was that it is a single file which does not have to be installed/uninstalled. Therefor can be moved/deleted at will because no registry problems will occur by deleting the file.

      Hmm. Reading that, I made just a "little" bit of sense. =-)

    20. Re:PuTTY rules by DrSkwid · · Score: 2

      hmm kind of I suppose
      got to be a pretty good job to pre-emptively dns hijack *before* i got me client from my own web server

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    21. Re:PuTTY rules by anthony_dipierro · · Score: 1

      Oh, sorry, I didn't realize it was *your* web server. I thought it was just some random website you had found.

    22. Re:PuTTY rules by ncc74656 · · Score: 2
      You're using https, I hope.

      Why?

      So you're sure that the program your client receives is the same as the program your server sends, not a trojaned version which turns off encryption, for example.

      ...and how does that trojaned version get onto the server? If salfter.dyndns.org is 0wn3d, I have bigger problems to deal with than a corrupt SSH client. I suppose someone could clone my website, hack dyndns.org to get the DNS entry for salfter.dyndns.org to point to the cloned site, and put a trojaned PuTTY on the cloned site that would know the IP address of the real salfter.dyndns.org...but who the hell's going to go to that kind of bother? Mine is just a personal website of maybe average quality (depending on whose opinion of it you seek). There are plenty of other targets that would be much more attractive for someone to take over.

      (Now that I've thought about it a bit, though, I suppose an end-run around such an attack would be to use the IP address instead of the name. It's easy enough to remember. Someone who's determined could crack these guys and reassign my IP address to another system...but then that basically knocks my machine off the net (so no harm will come to it), and (again) who would care enough to want to bother doing that?)

      FWIW, the PuTTY download page isn't running on a secure server. It supplies various checksums for the files which you can use for verification, but (as Simon Tatham points out) the programs that do that verification aren't themselves verifiable. There is a point beyond which an eye for security turns into paranoia...nothing is ever 100% secure. At some point, you need to weigh the odds of something bad happening against the measures needed to protect against that something.

      One final note: Keeping a copy of PuTTY on a secure site would entail getting a certificate from someone like Verisign, and they don't exactly have the best reputation in the world.

      --
      20 January 2017: the End of an Error.
    23. Re:PuTTY rules by anthony_dipierro · · Score: 1

      and how does that trojaned version get onto the server?

      It doesn't have to get onto the server. Anyone in between can change the packets. That's the whole point of ssh, right, that you don't trust the people in between?

      If salfter.dyndns.org is 0wn3d, I have bigger problems to deal with than a corrupt SSH client.

      salfter.dyndns.org, or your ISPs dns server, or anyone along the route between any of them...

      There are plenty [senate.gov] of [disney.com] other [mpaa.org] targets [riaa.com] that would be much more attractive for someone to take over.

      Sure, and that's why you'd probably be fine just using telnet. Why do you need ssh in the first place?

      It supplies various checksums for the files which you can use for verification, but (as Simon Tatham points out) the programs that do that verification aren't themselves verifiable.

      It's highly unlikely that my checksum program works correctly for every file except a version of PuTTY which wasn't even created at the time I downloaded it.

      There is a point beyond which an eye for security turns into paranoia...nothing is ever 100% secure.

      I agree. But once you've switched from telnet to ssh you're already running into the paranoia realm. Who are you afraid of that can't pull off a simple dns hack?

      One final note: Keeping a copy of PuTTY on a secure site would entail getting a certificate from someone like Verisign, and they don't exactly have the best reputation [slashdot.org] in the world.

      As I said, I agree that nothing is 100%. I just think that the point of using ssh is to protect against the people between you and your server. Downloading your ssh client using http and not verifying it seems to me to defeat that purpose. In my mind, I'd just as well use telnet.

    24. Re:PuTTY rules by pknut · · Score: 1
      The data that PuTTY leaves around can be fairly easily cleaned up though. However, ideally this shouldn't been needed. From the PuTTY FAQ:

      PuTTY will leave some Registry entries, and a random seed file, on the PC. If you are using PuTTY on a public PC, or somebody else's PC, you might want to clean these up when you leave. You can do that automatically, by running the command

      "putty -cleanup"

    25. Re:PuTTY rules by Webmonger · · Score: 2

      Cool. It didn't last time I tried it. Guess TTSSH gets put out to pasture. . .

    26. Re:PuTTY rules by DrSkwid · · Score: 2

      y i realised last night maybe ppl missed the point.

      my point was that the guy kept a coppy of putty on a share on hi slan. my contention is that I keep a copy of putty on a known url so wherever I am I can get to it if i need to.

      I've also written a little script that will determine my DHCP ISP assigned IP from behind my firewall and post it to my co-lo so if my IP changes I can find out.

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    27. Re:PuTTY rules by Ben+Hutchings · · Score: 2

      But Internet Explorer doesn't check that the domain named by a certificate is the domain name that it used to contact the host. So anyone with a certificate from one of the 'trusted' CAs can use it for a hijacked domain name, and IE users won't know any better.

      If PuTTY itself was signed with MS SignCode, that might help a bit, as IE will show you the name on the certificate, but I dare say it would be possible for the wrong people to get a certificate with the same name as that on the certificate used for the real PuTTY - which is what happened to Microsoft last year.

    28. Re:PuTTY rules by anthony_dipierro · · Score: 1

      But Internet Explorer doesn't check that the domain named by a certificate is the domain name that it used to contact the host.

      Yes it does. Go to https://slashdotsucks.com/ if you don't believe me.

    29. Re:PuTTY rules by Ben+Hutchings · · Score: 2

      I haven't had a chance to check this again myself, but I've definitely seen a demonstration of the problem in IE 5.5 (referred to on BugTraq or NTBugTraq). Perhaps it's fixed in IE 6.0?

    30. Re:PuTTY rules by anthony_dipierro · · Score: 1

      I didn't realize you were referring to a bug. Works for me in 6.0...

  7. 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.
    1. Re:Woohoo! by wirefarm · · Score: 2

      A snail for my O'Reilly zoo!...or maybe he'll get eaten.

      Damn Mandrake users!

      Cheers,
      Jim in Tokyo

      --
      -- My Weblog.
    2. Re:Woohoo! by Anonymous Coward · · Score: 0

      Did you parents drop you on your head to amuse themselves or the other mentally deficient children in your in-bred family?

    3. Re:Woohoo! by antdude · · Score: 2

      Now, O'Reilly needs an ant ;).

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    4. Re:Woohoo! by robocord · · Score: 1

      Check out the bright orange O'Reilly books about Oracle. One of them has an ant on it. It creeps me out...I hate ants.

    5. Re:Woohoo! by antdude · · Score: 2

      Is this the one?

      http://oracle.oreilly.com/news/oraclebest_0301.h tm l

      If so, then those aren't ants :).

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  8. my favorite by Anonymous+Cowrad · · Score: 0

    This one is up there with TCP/IP Network Administration when it comes to books that never leave me.

    But wasn't this published a long time ago?

    --

    --
    pants ahoy
    1. Re:my favorite by Anonymous Coward · · Score: 0

      yes, my w2k tcp/ip book is the first book I go to
      when there is a problem on my network.

  9. Top Gun SSH by conradp · · Score: 2, Funny

    Ah, but does the book talk about my favorite SSH client, Top Gun ssh for PalmOS? It lets me configure a UNIX server from a palm-enabled cell phone while lying on the beach!

    Admittedly using vi with Graffiti is a bit of a challenge...

    --
    "To be absolutely certain about something, one must know everything or nothing about it." -- Olin Miller
    1. Re:Top Gun SSH by realdpk · · Score: 2

      TGSSH is convenient, but I do wish it had a couple of additional features. It'd be nice if sessions stayed up while changing applications and if it was a bit quicker taking input (from a keyboard, that is).

      Try ed with TGSSH, much easier. ;)

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

    1. Re:My favourite OpenSSH feature by Anonymous Coward · · Score: 0

      How do you do this if your local machine is behind a firewall?

    2. Re:My favourite OpenSSH feature by Alan · · Score: 2

      Learn the magic of port forwarding with ipmasqadm, and use that to port forward connections to port 22 (or whatever port you choose) to your internal local workstation on port 22 when they are coming from your work workstation. In pseudo code, using external port 2222, your firewall would look something like this:

      ALLOW FROM TO port 2222
      FORWARD from port 2222 TO port 22
      DENY FROM ALL port 2222

      And voila, only connections from your work IP are allowed in. Of course, you may have to go through more rigorious methods if your work has masquerading going, and you don't trust your work-mates to not try to hax0r your system :)

    3. Re:My favourite OpenSSH feature by Alan · · Score: 2

      Stupid slashdot eating my fancy formatting. This is what I meant:

      ALLOW FROM <work ip> TO port 2222
      FORWARD from <external ip> port 2222 TO <home internal workstaion ip> port 22
      DENY FROM ALL port 2222

      Next time I'll check the preview properly :P

    4. Re:My favourite OpenSSH feature by Anonymous Coward · · Score: 0

      Hmm.. I've never used SSH for more than just a basic shell. Thanks for the info! I just may purchase this book (or be stingy and read the FAQs.. mmm faqs) and learn some more.

      Very interesting anyway, thanks.

  11. Re:feh by huckda · · Score: 2, Interesting

    nice timely addition, team slashdot

    Timely or not, I appreciate most of the book reviews here because I don't have time to read each and every one of the books that come out, nor could I affoard all of them that I would like to read.

    Being a teacher who is multi-tasked into system administration by the powers-that-be, I have enough on my plate already, and if a review is strikingly important to what I already do, and can shed some light on the topic, then I make an effort to get acquainted with that book and use it's insight.

    Late for some is more than timely for others.

    --Huck

    --
    "Just Smile and Nod." --Huck
  12. Ah SSH... by PepsiProgrammer · · Score: 2

    Opening a SSH connection to you desktop wirelessly from your zaurus is a truely wonderfull thing to behold, I just did it to the first time last night, it was breathtaking.

    --
    "The United States has no right, no desire, and no intention to impose our form of government on anyone else." - Bush 05
    1. Re:Ah SSH... by linatux · · Score: 0

      Surely nobody trusts M$ Passport enough to actually buy and sell using it!

      Then again, force IS implied ...

    2. Re:Ah SSH... by TheSync · · Score: 2

      Oh yeah, what about using VNC on Palm V over CDPD wireless from an Amtrak train to diagnose an ailing NT box ;)

    3. Re:Ah SSH... by PepsiProgrammer · · Score: 2

      Interesting, but then again all NT Box's are ailing

      --
      "The United States has no right, no desire, and no intention to impose our form of government on anyone else." - Bush 05
  13. Hee by delta407 · · Score: 1

    Chapter three is an "under the covers" look at ssh.

    What, RTFS? Or was a full too long and they decided to remove all the whitespace? </sarcasm>

    Oh well... it might be interesting. Though, I'm not adverse to reading C either. :-)

  14. nice skillz captain optimist by Anonymous Coward · · Score: 1, Funny

    take your happy polite optimism somewhere else, thanks!

    8)

    1. Re:nice skillz captain optimist by Anonymous Coward · · Score: 0

      hear hear

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

    1. Re:Buy it cheaper at half.com or bookpool.com by Erore · · Score: 1

      Buy it from O'Reilly directly. Trust me, they need the money and a book purchased directly from them leads to profits twice as high. Not that O'Reilly is making any profit these days.

    2. Re:Buy it cheaper at half.com or bookpool.com by lwbecker2 · · Score: 1

      An even cheaper way to get it (or the information in it) is from O'Reilly's Safari electronic book site. Less than $10 per month for several books, and it is searchable, etc. and you can print out key sections if you want... Safari Books Online

    3. Re:Buy it cheaper at half.com or bookpool.com by St.+Vitus · · Score: 1

      How about supporting companies who look out for their customers' privacy?

      The Tattered Cover - $39.95

      -Steve

    4. Re:Buy it cheaper at half.com or bookpool.com by AboveAverage · · Score: 1

      I have been buying books from bookpool for 7 years now and am very happy with their service.
      The shipping is timely and at a good rate. :)

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

  17. ... top off with SSH Agent for fit & finish! by Anonymous Coward · · Score: 1, Insightful

    O'Reilly's book is great. OpenSSH is magnificent. But it's SSH Agent that's the breath of life for all that, bringing it within reach for Joe Moron's grannie too.

  18. 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.
    1. Re:My *own* favourite OpenSSH feature by ncc74656 · · Score: 2
      X connections over ssh are braindead easy, secure and quite simply kick ass.

      VNC works pretty well over SSH as well. I can log into my home server, power up my home workstation from the server, wait a couple of minutes for it to start up, and use VNC-over-SSH to access my Win2K box at home from anything that can run a VNC client. I have VNCviewer and the Cygwin port of OpenSSH on an 8MB DiskOnKey with room to spare. (You don't need the complete Cygwin environment...put ssh.exe and cygwin1.dll in the same directory (maybe some more files that I don't recall offhand), open a command window, and then run SSH in the usual manner.)

      --
      20 January 2017: the End of an Error.
  19. 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.

    1. Re:Umm...no by southpolesammy · · Score: 1

      Journalism 101

      Rule #1...check your references.
      Rule #2...double check them.

      Darn it...February 2001, 1st ed. My bad. Guess it just seems like longer.

      --
      Rule #1 -- Politics always trumps technology.
    2. Re:Umm...no by skelley · · Score: 1

      It sure looks identical to the book I bought in Mar2001. I'll call the person I lent mine to and compare ISBN numbers.

      The biggest problem is that ssh has changed rapidly enough that this book is fairly outdated. It is good if you are an sysadmin with no ssh experience, but don't expect it to cover the latest and greatest.

      Posting a review now seems untimely as this book should be in a revision cycle.

  20. 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.
  21. Fingerprints by wirefarm · · Score: 2

    ...unless you memorize the fingerprint, ssh doesn't protect against man-in-the-middle attacks...

    Get in the habit of remembering just the first few bits of the fingerprint for frequently-accessed sites - it just takes a second or two and *greatly* increases your security. (I have a little mnemonic I use for my home server, the IP of which frequently changes...)

    But then again, I'm paranoid and only use SSH to connect two machines, both of which are on my desk...)

    Cheers,
    Jim in Tokyo

    --
    -- My Weblog.
  22. Not necessarily by JediTrainer · · Score: 2

    Unfortunately a lot of the time those numbers are fairly artificial.

    Most online sites I know make up for low prices by nailing you with high shipping and handling charges (per item) when you check out.

    A better price comparison would take this into account too.

    --

    You can accomplish anything you set your mind to. The impossible just takes a little longer.
    1. Re:Not necessarily by __aaahtg7394 · · Score: 2

      half.com (for sure, not certain about the other two) lists shipping right next to the item price. Very Straightforward, very handy.

      i happily recommend them for buying books, etc, when you dont care that the author receive a cut on a used book (when you do, find the publisher and order there).

    2. Re:Not necessarily by Anonymous Coward · · Score: 0

      Canadian? try this, it takes into account
      taxes, shipping, availability, etc...


      http://www.pricemoose.com/cgi-bin/transform.pl?I D= 0-596-00011-1


      Since Chapters and Indigo became one its been
      difficult to find deals lately.

  23. books were meant to be free by aozilla · · Score: 2

    Steal it from Barnes and Noble - $Free

    --
    ok then your [sic] infringing on my copyright! Could you as [sic] me next time before STEALING my comments for your own?
    1. Re:books were meant to be free by jukal · · Score: 1, Offtopic

      posting idiotic comments is free. I see two of them while typing this.

  24. 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..
    1. Re:Get a new version by Anonymous Coward · · Score: 0

      Yes but that's only in the (very) unstable developement versions. For now, those of us that have to do real work, have to depend on protocol version 1 if we use PuTTY.

    2. Re:Get a new version by JebusIsLord · · Score: 1

      huh? I've had stable ver.2 support for well over a year now. Where have you been?

      --
      Jeremy
  25. ssh = somewhat secure shell by Anonymous Coward · · Score: 0

    How many advisories and updates have their been for ssh in the last year? Two years?
    I've never used it an never will.
    I use cipe and deslogingw for vpn, or deslogin for shell access.
    SSH sucks anyway, it inherited all the r- services bloat and problems.

    1. Re:ssh = somewhat secure shell by Anonymous Coward · · Score: 0


      The commercial version of SSH by Tatu Ylönen [ssh.com], OTOH, is completely secure and bugfree.

      Yeah, right, heard this before.

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

  27. Web mail popping ssl by CETS · · Score: 1

    Does anyone know of a web based email service (i.e yahoo) that will allow you to connect to a pop server running SSL?

    1. Re:Web mail popping ssl by Anonymous Coward · · Score: 0

      Try http://www.cotse.com

    2. Re:Web mail popping ssl by Anonymous Coward · · Score: 0

      You can roll your own.

      Goto sourceforge.net make a search for "email server" Go through the list until you find one that suits you. I can't recommend a specific one, because they seem to be all different but I tried eCorei and NOCC. That Squirrel one might work for you also.

    3. 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
    4. Re:Web mail popping ssl by CETS · · Score: 1

      I'm not talking about connecting to a web site with SSL, but having the web site's email system connect to my ssl enabled pop server on port 995.

    5. Re:Web mail popping ssl by CETS · · Score: 1

      From fastmail faq: Port : The port the POP server lives on. Almost always 110. We currently don't support retrieving POP over SSL to FastMail. Ignore this setting for HotMail accounts. For MSN (non-HotMail) accounts use port 80. The bold is what I'm looking for in a web based email client.

    6. Re:Web mail popping ssl by rinsoblue · · Score: 1

      Try www.cotse.com.

      Rinso

  28. Old Book by Anonymous Coward · · Score: 0

    Binary Freedom reviewed this a year ago!

    http://www.systemtoolbox.com/bfarticle.php?conte nt _id=47

    Has that much changed with SSH?

  29. Re:feh by gazbo · · Score: 2
    Being a teacher who is multi-tasked into system administration by the powers-that-be
    Where do I recognise that from?
  30. Re:SSH, O Escudo Seguro by Anonymous Coward · · Score: 0

    Temos de continuar a ajudar o movimento the Open Source. So quando vencemos companias como Microsoft, e' que podemos descansar!

  31. Get a real app! Re:PuTTY by Anonymous Coward · · Score: 0

    PuTTY looks like it was designed by cavemen. If you want a decent GUI app for the 21st century, get the SSH Secure Shell Client from ssh.com. It's free, and it runs circles around PuTTY.

    Anonymous? Nobody's anonymous on the Internet!

    1. Re:Get a real app! Re:PuTTY by Anonymous Coward · · Score: 0
    2. Re:Get a real app! Re:PuTTY by lpontiac · · Score: 2
      PuTTY looks like it was designed by cavemen

      Huh? 99.9% of the time all you see is characters in a window. Can't complain about a terminal doing that.

      get the SSH Secure Shell Client from ssh.com [ssh.com]. It's free

      No it's not. Except for hobbyist and educational use.

  32. MODS ON CRACK YET AGAIN by Anonymous Coward · · Score: 0

    Typical /. greenhorns. Someone presents a valid point, morons don't understand it and mod it down. Same thing happened back in 1939.

    To the poster before, I agree with you.

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

  34. Glazes over the topic by Anonymous Coward · · Score: 1, Insightful

    I have read this book, and I have to say it is virtually useless. Read the draft specification (available on www.ssh.com) and get out your sniffer if you want the real nuts and bolts of the protocol; It's alot cheaper. This book does not detail protocol operation at any length. It insults the reader with analogic descriptions with no detail.

    Read the O'Reilly book if you want to know how to set up specific SSH implementations.

    1. Re:Glazes over the topic by maiden_taiwan · · Score: 1
      You are correct that the book focuses on SSH in use, not on the innermost depths of the draft specification. Anyone who wants that information is better served by reading the specs, as both you and we recommend (first page of the "Inside SSH" chapter).

      Our book's stated goal about protocol information is "to teach you enough about SSH to make an intelligent, technically sound decision about using it." [41]

      We heartily welcome any specific criticisms of our explanation of SSH internals, so we can update the book as needed. Our email addresses are dbarrett@oreilly.com and res@oreilly.com, as given on the last page of the book under "About The Authors."

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

  36. Good, good. by Anonymous Coward · · Score: 0

    OpenSSH works out of the box for the average user, yes, but I have seen some really odd configuration bits that some people get into. I'm not sure how well this book goes into configuration and wicked juju, but hey, at the least, it's another great work to read in the bathroom.

    That said, SSH itself rox0rz. Though I'm the single user of my home network, my boxes only allow SSH connections - none of that telnet stuff. It's a very good practice to get into, as there's not much of a performance hit from using SSH instead of telnet.

    All in all, we should be trying to wean people off of telnet. Telnet is still useful for some applications, but SSH should be stressed for most of the things telnet was used for in ages past.

    (And, as someone pointed out, Putty, for MS boxes, rocks. It's a very quick download - "Blah blah blah clients blah blah!" isn't an excuse if you have MS boxes on your network! :))

  37. A really good SSH client by AllMightyPaul · · Score: 0, Redundant

    A really neat SSH client is available here. I love it.

    http://www.chiark.greenend.org.uk/~sgtatham/putt y/

  38. False sense of security... by Xiver · · Score: 1, Interesting

    SSH1 support : you can sniff User and Pass, and even the data of an SSH1 connection. ettercap is the first software capable to sniff an SSH connection in FULL-DUPLEX

    http://ettercap.sourceforge.net/

    If you build it they will crack it.

    --
    10: PRINT "Everything old is new again."
    20: GOTO 10
    1. Re:False sense of security... by Anonymous Coward · · Score: 0

      Ummm, SSH2? You are so elite, i would have to use four threes.

  39. Re:feh by neo8750 · · Score: 1
    nor could I affoard all of them that I would like to read.


    See this is were that little place in town called a library comes into play. You don't have to pay for the books just return them on time.

  40. Got it- love it by Laptop+Dancer · · Score: 1

    As always, another great O'Reilly book. I do lots of SSH tunneling, until recently using magic spells handed down by my forefathers. This book revealed the special sauce- now I know what I'm doing.

  41. Costs $10.00 per month to subscribe by Anonymous Coward · · Score: 0

    See subject.

  42. Seriously, the free docs are excellent by Anonymous Coward · · Score: 0

    I recommend that anyone remotely interest in ssh read the man pages first. almost everything you want to know is in there.

  43. export registry branch to file by aok · · Score: 1

    If you need the config as a file so that you can
    transfer all your configuration details just export
    the entire PuTTY registry branch into a file.

    I had to help another developer setup an ssh session
    with a bunch of tunnels setup and it was easiest for
    me to just export the branch (in this case, just for
    the particular session) for them to import into their
    own registry.

  44. Open Source, Open Doc by Anonymous Coward · · Score: 0

    I'll read the book when O'Reilly makes it open source.

  45. I didn't like it. by crucini · · Score: 2

    I looked at this book in the bookstore, and everything was either obvious or useless. Maybe this book would have helped me when I didn't know anything about ssh, but between the man pages and Google groups everything you need is available.
    What really irritated me was the authors' handling of timeouts and keepalives. It's quite common to be stuck behind a firewall that closes all idle TCP connections. The ssh keepalive functionality does not address this - it's for disconnecting dead sessions, not keeping sessions alive. You need to send some "filler" packets through the TCP connection when it's idle.

    This is a frequently asked question. The answer of this book is that you shouldn't send keepalive packets because if "the sysadmin" configured a firewall to kill idle connections, you should just accept this restriction. I hope I don't have to explain how completely wrong this is. Increasingly big organizations have a firewall configured by people who are totally unresponsive.

    Anyway, I solved the problem by applying this patch.

    One of the book's authors responds to this question on Usenet with the same unhelpful answer found in the book.

    1. Re:I didn't like it. by Anonymous Coward · · Score: 0
      I looked at this book in the bookstore, and everything was either obvious or useless.


      Everything? You read a whole 500 page book in the bookstore, closely enough to judge it worthless? I am impressed.

    2. Re:I didn't like it. by rsilverman · · Score: 1

      I looked at this book in the bookstore, and everything was either obvious or useless.

      How fortunate that your amazing speed-reading powers allowed you to fully digest, analyze, and dismiss the entire 550-page book while "looking at" it in a store. It's a shame the several tens of thousands of people who actually bought and read the book, gave it a 4.5-star rating on Amazon, and made it one of the top 10 best-selling books in the O'Reilly catalog last year, did not have the benefit of your astounding mental powers.

      The answer of this book is that you shouldn't send keepalive packets because if "the sysadmin" configured a firewall to kill idle connections, you should just accept this restriction...

      The book does not say this; it says something similar but different, which you have misquoted and presented out of context. The text first points out that it is not a good idea to just blindly start overriding the firewall/NAT restrictions put in place by your networking people. For instance, if your gateway is sharing a limited number of outbound TCP connections over a large set of internal clients, then the connection timeout may serve a necessary purpose which you should not just be ignoring without thought or permission. Just because you can do a thing, does not mean that you should.

      The text then goes on to say, "For the occasions when it's really necessary, the right way to accomplish this sort of keepalive behavior is...", and discusses some solutions.

      One of the book's authors responds to this question on Usenet with the same unhelpful answer found in the book.

      Inasmuch as it helps people to actually understand what they're proposing to do, and its possible consequences (including being reprimanded or fired for deliberately flouting corporate network policy), I think my responses on the topic have been quite helpful. In addition, I have also made practical suggestions on how to defeat such timeouts if the situation warrants it, as well as relevant features that have appeared since the book's publication (such as the OpenSSH ClientAliveInterval mechanism).

    3. Re:I didn't like it. by crucini · · Score: 2
      How fortunate that your amazing speed-reading powers allowed you to fully digest, analyze, and dismiss the entire 550-page book while "looking at" it in a store. It's a shame the several tens of thousands of people who actually bought and read the book, gave it a 4.5-star rating on Amazon, and made it one of the top 10 best-selling books in the O'Reilly catalog last year, did not have the benefit of your astounding mental powers.

      You cite volume of sales as a figure of merit. So which do you believe is typical of a person who purchased the book?
      1. He looked at the book before buying, in enough depth that he was fairly sure he liked the book. Implication: the typical purchaser had "astounding mental powers" - or is it less astounding to form a positive opinion?
      2. He did not read much of the book before buying. Implication: the purchase was based on other factors than the content of the book; therefore the book's standing as a best-selling book is not relevant to its merits.
      The book does not say this; it says something similar but different, which you have misquoted and presented out of context.
      I don't have the book - you presumably do. Instead of complaining about my bad paraphrase and offering your paraphrase, you could have (and still can) set the record straight with the actual text.
      Inasmuch as it helps people to actually understand what they're proposing to do, and its possible consequences (including being reprimanded or fired for deliberately flouting corporate network policy), I think my responses on the topic have been quite helpful.

      Certainly that's a good idea, and you've been helpful in another sense - merely having the patience to answer this type of question repeatedly. However, what I meant by "unhelpful" is not helping the querent reach his goal. Browsing again through your posts on the topic, I realize that most of them may have been made before any keepalive[1] patch was available - so you were probably correct in writing "There is no good way around this at the moment."

      However there are good ways around this today, and I think they should be the first answer to someone experiencing mysterious connection failures. There is an accelerating assumption that "the internet" == "the web" and this affects how businesses adopt firewalls. Microsoft is both reacting to and strengthening this mindset with SOAP, which uses pseudo-web traffic. I think ssh clients should be distributed with keepalives enabled. They do no harm when there is no firewall/NAT involved, and they circumvent an increasingly frequent problem. I find the "NAT shortage" theory fairly removed from current reality, given that ssh users are generally a tiny minority. I realize that you may have seen environments where it applies.

      Anyhow, my reaction to the book was highly colored by this issue.
      [1] The useful kind, that actually keeps the connection alive.
  46. SSH = VPN on the cheap! OR cheat the firewall... by oobeleck · · Score: 2
    I have a couple SSH gateways at work.
    Everyone else was struggling with the VPN and were having trouble getting stuff working.
    I started screwing around with port forwarding and now I work from home a lot.
    I am in charge of the Unix/Windows systems. TightVNC and rdesktop are my friends...

    Here are a few examples for people confused by SSH port forwarding:

    TightVNC
    ssh -l username -C -L 7777:internal.vnc.box:5900 ssh.gateway.box
    vncviewer -compresslevel 7 -quality 1 -depth 8 127.0.0.1:7777
    (On Windows the VNC port starts at 5900 on Unix it is 5901 or 5902 or whatever your desktop says it was set to for vncserver...)

    Rdesktop
    ssh -l username -C -L 3389:nt.termserver.box:3389 ssh.gateway.box
    rdesktop localhost

    To forward X from a remote host
    ssh -l username -C -L 8811:internal.unix.box:22 ssh.gateway.com
    ssh -l username -p 8811 127.0.0.1

    To punch a hole in a restrictive firewall (i.e. don't allow ssh gateways...)
    From your workstation that you want to reach from the internet:
    ssh -C -l root -R 22111:your.work.station:22 your.fire.wall
    From your firewall: (Make sure you open the port on the firewall...)
    ssh -p 22111 localhost

    You can run the command every 15 min from cron or whatever on your workstation at work, or put a sleep statement in,
    so you can access it from home.

  47. PuTTY Liscense by Rebel+Patriot · · Score: 2

    Since I'm not on my Windows machine right now, I can't quote the liscense directly, but it is one of the most open liscenses out there. IIRC, it's liscense gives you complete control to edit, modify, compile, modularize, give away, and/or SELL PuTTY. It's not GPL, nor LGPL, but rather a very BSDish liscense. It was the first openly liscensed application I ever saw for a Windows machine.

    --
    Slackware forever. Honestly, what else would you trust when it absolutely positively has to be stable, secure, and easy
  48. SSH Book review by Anonymous Coward · · Score: 0

    I have used that book to setup our unix systems to meet the corp.security mandates. All thru the book it mixes up information from the ssh.com & openssh implementations. I found it to be confusing until I could identify which configs,files,etc went with which software package. And by then I didn't need the book.

  49. Great book if you already know what a key is by Anonymous Coward · · Score: 0
    I had a little trouble with this book at first. I am not sure the authors remember what it was like when they first picked up how to use ssh. They are a bit hard to understand on first reading, especially with the topic of using keys to authenticate. I mostally had a hard time understanding the full process of authenticating with a key. I often did not know which system various command were typed, and this confused me a lot. I ended up gleaning most of my understanding by viewing several IBM developerworks articles at:


    http://www-106.ibm.com/developerworks/library/l-ke yc.html


    http://www-106.ibm.com/developerworks/opensource/l ibrary/l-keyc2/?dwzone=opensource


    (There is a third one out there you will have to find yourself.) These deveoperworks articles made weeks of frustration suddenly clear to me. It seems the process of creating a key, propogating it, and connecting to it via an agent, could have been more straightforward.


    Overall, the confusion of what goes where extends throughout this book. It is not bad when reading from cover to cover, but when looking things up you often have to page back several pages to figure out what context they are talking about.


    It still is a useful book. Once I mastered the use of keys I was able to find some useful tidbits in this book (such as setting up specific commands or limiting to specific hosts for a key in your authorized_keys2 file).



    Finally, OpenSSH is secondary in this book. It might be nice to have a separate book for OpenSSH, but that is probally just a minor point that many would not agree with.


    Rikkers

  50. No dicussion of SSH's vulnerabilities by redwoodtree · · Score: 1

    I'm surprised, does the book make no meantion of SSH's problems? It's not 100% and people shouldn't assume it.

    Also, the differences between SSH1 and SSH2 and the compromises that are out there for SSH1 should make that a key topic in the book (if not a whole chapter!)

    1. Re:No dicussion of SSH's vulnerabilities by maiden_taiwan · · Score: 1
      Of course these topics are covered.

      Section 1.2: "What SSH Is Not"
      Section 3.11: "Threats SSH Doesn't Prevent"
      Section 3.4.1: Protocol Differences (SSH-1 vs. SSH-2)
      etc.

      Please take a look at the book before assuming!

    2. Re:No dicussion of SSH's vulnerabilities by redwoodtree · · Score: 1

      That's why I asked! Thanks