Tag Archives: ssh

Multipass Key-Based Authentication

By | December 23, 2020

Reading Time: 4 minutes In this article I will show how to create a Multipass virtual machine that has an additional user which can connect to the virtual machine authenticating using a private key. To accomplish this I will use cloud-init when creating the virtual machine. The cause for this is to allow creation and provisioning of Multipass virtual… Read More »

Running Shell Commands on Multiple Computers

By | August 17, 2016

Reading Time: 3 minutes This post is mostly notes in my own notebook, in order for myself to remember something I have found useful. Given my virtual laboratory that I created in an earlier post, it soon becomes tedious to run the same commands over and over again on the different nodes in the virtual laboratory. So I started… Read More »

Implementing a SFTP Client Using Python and Paramiko

By | April 28, 2016

Reading Time: 3 minutes This post shows how to use the Python library Paramiko to implement a SFTP client that can be used to programatically send and receive files over SFTP. As when using Paramiko for SSH communication, authentication is performed using either username and password or username and a private key. Preparations The preparations are identical to those described in my previous post on SSH… Read More »

Execute Shell Commands Over SSH Using Python and Paramiko

By | April 24, 2016

Reading Time: 4 minutes This post shows how to use the Python library Paramiko to implement a SSH client, programmatically connect to another computer over SSH and execute a shell command on that computer. Authentication is performed using either username and password or username and a cryptographic key. Paramiko have many more features than the ones I use in the… Read More »