TAILIEUCHUNG - .Pro OpenSSH phần 9

Điều này cho phép khách hàng X để xác thực đến máy chủ X trong một thời trang đáng tin cậy hơn. Các phím vẫn bình thường (không có SSH) truyền đi trong Sau khi cấu hình kết nối, nhấp vào biểu tượng mạng để lựa chọn kết nối của bạn. | CHAPTER 9 SCRIPTING WITH OPENSSH 225 echo You have entered an invalid POST entry br exit REMOTE_USER scripter SSH_PATH usr bin ssh print REMOTE_USER@ system command BR n print br n results shell_exec SSH_PATH system -l REMOTE_USER command print pre print nl2br results print pre Figure 9-2 shows the output from running the PHP example with the uptime command. Figure 9-2. Output of a simple SSH PHP application Web applications that utilize SSH to perform commands and gather data are both useful and dangerous. Planning is the key to success with this type of scripting implementation. Also remember to restrict the commands that a public key can use by using the command options. The web front end provides an easy-to-use SSH client for users on Windows systems without another client installed. Additionally many web applications can now be run from cell phones and PDAs. This can really help out when being onsite is not an option. Summary Scripts are without a doubt my favorite thing that a proper OpenSSH architecture can provide. While OpenSSH does not have a whole lot to do with scripting it enables so much work to be automated and repeated with consistency that otherwise would be difficult if not impossible to achieve. 226 CHAPTER 9 SCRIPTING WITH OPENSSH Once I started using scripts in conjunction with OpenSSH and keys I was amazed at how much more work I could get done. I went from managing around 30 servers poorly to managing hundreds with little incident. Of course if you are migrating from a remote shell environment you are used to these types of luxuries but I was normally working with Telnet and FTP which lack the scripting capabilities provided by OpenSSH. You also might have noticed that I did not use SFTP once during the scripts in this chapter. There is certainly nothing stopping you from using SFTP in shell bash or on the Web but I often find it cumbersome in comparison to SCR I find that SFTP is nice for interactive users but normally from a script SCP will

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.