Skip to content

hackersandslackers/paramiko-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

648ef4d Β· Jun 18, 2024

History

90 Commits
Jun 18, 2024
Mar 17, 2021
May 23, 2022
May 23, 2022
May 9, 2020
Mar 26, 2020
May 23, 2022
May 23, 2022
May 23, 2022
May 23, 2022
May 23, 2022
Oct 13, 2023
May 23, 2022
Aug 15, 2020
Oct 13, 2023

Repository files navigation

Paramiko SSH & SCP Tutorial

Python Paramiko SCP GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

Paramiko Tutorial

Source code for the accompanying tutorial found here: https://hackersandslackers.com/ssh-scp-in-python-with-paramiko/

Getting Started

Installation

$ git clone https://github.com/hackersandslackers/paramiko-tutorial.git
$ cd paramiko-tutorial
$ make install
$ make run

Configuration

Replace the values in .env.example with your values and rename this file to .env:

  • ENVIRONMENT: Contextual environment the script is being on.
  • SSH_REMOTE_HOST: IP address (or URL) of remote host to SSH into.
  • SSH_USERNAME: Username for connecting to remote host.
  • SSH_PASSWORD (optional): Password of user SSHing into remote host via basic auth.
  • SSH_KEY_FILEPATH: /path/to/local/sshkey
  • SCP_DESTINATION_FOLDER (optional): Remote directory to serve as destination for file uploads.

Remember to never commit secrets saved in .env files to Github.


Hackers and Slackers tutorials are free of charge. If you found this tutorial helpful, a small donation would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content.