Package nl.vpro.util

Class Ssh


  • public class Ssh
    extends Object
    Wrapper around the command line tools 'ssh' and 'scp'.
    Since:
    3.1
    Author:
    Michiel Meeuwissen
    • Constructor Detail

      • Ssh

        public Ssh​(String remoteHostName,
                   String remoteHostUser,
                   String privateKeyFile)
      • Ssh

        public Ssh​(String remoteHostName,
                   String remoteHostUser)
    • Method Detail

      • exec

        public void exec​(String... command)
      • upload

        public void upload​(File localFrom,
                           String remotePath)
      • download

        public void download​(String remotePath,
                             File localTo)