Foundations of Python Network Programming
Chapter 16 ■ telnet and SSh 302 There are a few odds and ends in the Telnet object that I need not cover here. You will find the ...
Chapter 16 ■ telnet and SSh 303 if name == 'main': parser = argparse.ArgumentParser(description='Use Telnet to log in') parser.a ...
Chapter 16 ■ telnet and SSh 304 An Overview of SSH The first section of this book talked a lot about multiplexing—about how UDP ...
Chapter 16 ■ telnet and SSh 305 So, SSH has the idea that each server, when installed, creates its own random public-private key ...
Chapter 16 ■ telnet and SSh 306 To behave like the normal SSH command, load both the system and the current user’s known host ke ...
Chapter 16 ■ telnet and SSh 307 There are generally three ways to prove your identity to a remote server you are contacting thro ...
Chapter 16 ■ telnet and SSh 308 First, SSH can set up a raw shell session for you, running on the remote end inside a pseudoterm ...
Chapter 16 ■ telnet and SSh 309 Also, if you run this command, you will see that the commands you type are actually echoed to yo ...
Chapter 16 ■ telnet and SSh 310 for command in 'echo "Hello, world!"', 'uname', 'uptime': stdin, stdout, stderr = client.exec_co ...
Chapter 16 ■ telnet and SSh 311 class AllowAnythingPolicy(paramiko.MissingHostKeyPolicy): def missing_host_key(self, client, hos ...
Chapter 16 ■ telnet and SSh 312 SFTP: File Transfer Over SSH Version 2 of the SSH protocol includes a subprotocol called the SSH ...
Chapter 16 ■ telnet and SSh 313 Listing 16-7. Listing a Directory and Fetching Files with SFTP !/usr/bin/env python3 Foundations ...
Chapter 16 ■ telnet and SSh 314 Again, consult the excellent paramiko documentation at the URL just mentioned to see the simple ...
Chapter 16 ■ telnet and SSh 315 Summary Remote-shell protocols let you connect to remote machines, run shell commands, and see t ...
317 Chapter 17 FTP File Transfer Protocol (FTP) was once among the most widely used protocols on the Internet, invoked whenever ...
Chapter 17 ■ Ftp 318 A second issue is that an FTP user tends to make a connection, choose a working directory, and do several o ...
Chapter 17 ■ Ftp 319 The client begins listening on a new port for the data connection, and then it informs the server about th ...
Chapter 17 ■ Ftp 320 The welcome message will generally have no information that could be usefully parsed by your program, but y ...
Chapter 17 ■ Ftp 321 ftp.retrlines('RETR README', writeline) ftp.quit() if name == 'main': main() In the listing, the cwd() func ...
Chapter 17 ■ Ftp 322 Listing 17-4. Binary Download with Status Updates !/usr/bin/env python3 Foundations of Python Network Progr ...
«
10
11
12
13
14
15
16
17
18
19
»
Free download pdf