Working with Remote Directories Using os and Paramiko

0% of 2 hours and 40 minutes completed.

The os module, available in the Python Standard Library, provides a portable way of using operating system-dependent functionality. This includes being able to:

  • query and modify environment variables
  • examine filesystem contents, including file attributes
  • determine accessibility of files and directories
  • manipulate paths
  • obtain information about processes in general and the currently logged on user in particular

Paramiko is a combination of the Esperanto words for paranoid and friend. It's a third party package available on PyPI and GitHub that implements the SSH v2 protocol for a secure (encrypted and authenticated) connection to a remote server. Paramiko also lets you establish an SFTP client to perform a variety of services, mirroring os module functionality to a certain extent, plus transfer files between systems.

This course examines both os and Paramiko in depth.

After completing this course, you will be able to:

  • Discover content of a directory on the workstation
  • Retrieve file attributes
  • Determine existence of a file or directory
  • Obtain process parameters
  • Connect to a remote server with username and password
  • Perform passwordless connection to a remote server
  • Obtain attributes of a file on a remote server
  • Determine existence of a file
  • Upload files from local workstation to remote server
  • Download files from remote server to local workstation
There are no resources available.
0 attachments
0%
Work with files and processes on your workstation
1 hour 18 minutes 11 Activities: Article  (4)  |  Lab  (3)  |  Video  (4)
0%
Work with files on a remote server
1 hour 16 minutes 12 Activities: Article  (2)  |  Lab  (4)  |  Video  (6)
0%
Copyright
1 minute 1 Activity: Article  (1)  |  Lab  (0)  |  Video  (0)
0%
Survey
5 minutes 1 Activity: Article  (1)  |  Lab  (0)  |  Video  (0)