SSH
-
class
compas.com.SSH(server, username)[source] Bases:
objectInitialse an SSH object.
- Parameters
username (str) – Username.
server (str) – ssh server address.
- Returns
None
Methods
__init__(server, username)x.__init__(…) initializes x; see help(type(x)) for signature
close()Close the SSH object.
Create SSH client with Paramiko.
local_command(command[, folder])Enter a local BASH command.
receive_file(remote_file, local_file)Recieve a remote file from the ssh server.
send_file(local_file)Send a local file to the ssh server.
send_folder(local_folder)Send a local folder to the ssh server.
server_command(command)Send a BASH command to run on the ssh server.
sync_folder(local_folder, remote_folder)Sync using rsync, a local folder to a remote folder on an ssh server.