<s> import sys , paramiko <EOL> if len ( sys . argv ) < <NUM_LIT:6> : <EOL> print "<STR_LIT>" <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> hostname = sys . argv [ <NUM_LIT:1> ] <EOL> username = sys . argv [ <NUM_LIT:2> ] <EOL> password = sys . argv [ <NUM_LIT:3> ] <EOL> source = sys . argv [ <NUM_LIT:4> ] <EOL> dest = sys . argv [ <NUM_LIT:5> ] <EOL> port = <NUM_LIT> <EOL> try : <EOL> t = paramiko . Transport ( ( hostname , port ) ) <EOL> t . connect ( username = username , password = password ) <EOL> sftp = paramiko . SFTPClient . from_transport ( t ) <EOL> sftp . get ( source , dest ) <EOL> finally : <EOL> t . close ( ) </s>
