Tag Archives: ssh

Multipass Key-Based Authentication

By | December 23, 2020

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 »

Implementing a SFTP Client Using Python and Paramiko

By | April 28, 2016

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

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 »