def scp_get(self, src, dst):
cmd = [ '<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>' ]<EOL>if self._key is not None:<EOL><INDENT>cmd.extend(['<STR_LIT>', self._key])<EOL><DEDENT>remote = '<STR_LIT>'<EOL>if self._user is not None:<EOL><INDENT>remote += self._user + '<STR_LIT:@>'<EOL><DEDENT>remote += self._ip + '<STR_LIT::>' + src<EOL>cmd.append(remote)<EOL>cmd.append(dst)<EOL>try:<EOL><INDENT>subprocess.check_output(cmd, stderr=subprocess.STDOUT)<EOL><DEDENT>except subprocess.CalledProcessError as ex:<EOL><INDENT>raise RuntimeError('<STR_LIT>'<EOL>% (ex.returncode, ex.output.strip()))<EOL><DEDENT>
Copy src file from local system to dst on remote system.