File: ssh.py

package info (click to toggle)
python-paver 1.2.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,220 kB
  • ctags: 979
  • sloc: python: 4,678; makefile: 20
file content (11 lines) | stat: -rw-r--r-- 263 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
"""Functions for accessing remote hosts.

At present, these are implemented by calling ssh's command line programs.
"""

from paver.easy import sh

def scp(source, dest):
    """Copy the source file to the destination."""
    sh("scp %s %s" % (source, dest))