tailieunhanh - Ebook SSH, the secure shell the definitive guide: Phần 2

The next of books suchs as four (Chapters 6–9) cover advanced topics for end users, including key manage-ment, client configuration, per-account server configuration, and forwarding. We complete the Unix sequence with our recommended setup (Chapter 10), some detailed case studies (Chapter 11), and troubleshooting tips. | Page 240 Tuesday February 20 2001 2 09 PM 7 Advanced Client Use In this chapter How to Configure Clients Precedence Introduction to Verbose Mode Client Configuration in Depth Secure Copy with scp Summary SSH clients are marvelously configurable. Chapter 2 introduced remote logins and file copying but covered only the tip of the iceberg. You can also connect with multiple SSH identities use a variety of authentication and encryption techniques exercise control over TCP IP settings and generally tailor the feel and operation of SSH clients to your liking. You can even save common collections of SSH settings in configuration files for ease of use. We ll be focusing on outgoing SSH use running SSH clients to connect to remote hosts using the components highlighted in Figure 7-1. A related topic not covered in this chapter is how to control incoming SSH connections to your account. That sort of access control is a function of the SSH server not the clients and is covered in Chapter 8. . How to Configure Clients The clients ssh and scp are quite configurable with many settings that can be changed to suit your whim. If you want to modify the behavior of these clients three general techniques are at your disposal Environment variables For minor changes to the behavior of scp Command-line options For changing the behavior of ssh or scp for a single invocation Configuration keywords For changes that remain in force until you change them again these are stored in a client configuration file We now present a general overview of these three methods. 240 Page 241 Tuesday February 20 2001 2 09 PM . How to Configure Clients Files Configuration types Configuration types Files 241 - .ssh config - .ssh2 ssh2_config etc ssh_config etc ssh2 ssh2_config Environment variables Command-line options Command-line options Custom session startup Server-side configuration file Server-side authorization files Compile-time flags - .ssh sshrc etc sshrc - .ssh enviroment