ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class SCP.SCP(system, config, stype=None)

This class is the public interface by which a <no title> can interact with an SCP client to securely copy files.

Parameters:

  • system: a <no title> object to communicate with the target system

  • config: a <no title> object hold all our configuration

  • stype: optionally the (string) name of the type of SCP to create, overriding anything in the config object

get(remote, local)

Copy the file from the remote location to the local location

put(local, remote)

Copy the file from the local location to the remote location

set_password(password)

Set the password this user should use for their next login attempt