Chapter 7: Interacting with FTP, SFTP, and SSH Servers
In this chapter, we will learn about the modules that allow us to interact with FTP, SFTP, and SSH servers. These modules will make it easier for developers like you to connect to different types of servers while performing tests related to the security of the services that are running on these servers.
As a part of this chapter, we will explore how the computers in a network can interact with each other and how they can access a few services through Python scripts and modules such as ftplib
, paramiko
, and pysftp
. We will also learn how to implement SSH clients and servers with the asyncSSH
and asyncio
modules. Finally, we are going to check the security in SSH servers with the ssh-audit
tool.
The following topics will be covered in this chapter:
- Connecting with FTP servers
- Building an anonymous FTP scanner with Python
- Connecting with SSH and SFTP servers with the
paramiko
andpysftp
modules - Implementing...