Monday, December 10, 2012

sftp - uploading files to Amazon EC2

sftp -i {key} {user}@{host}
(Ex. sftp -i key.pem ubuntu@ec2-111-11-11-111.compute-1.amazonaws.com)

cd {upload_destination_directory}

lcd {upload_source_directory}

mput {filename a, filename b, ... filename n}


Popular commands:
  • ls - list the current directory on the remote machine
  • cd - change directories on the remote machine
  • mkdir - make a directory in current directory on remote machine
  • lls - list the current directory on the local machine
  • lcd - change directories on the local machine
  • lmkdir - make a directory in current directory on local machine
  • get - get files from the remote machine
  • put - put files on the remote machine
  • mget - get multiple files from the remote machine
  • mput - put multiple files on the remote machine
  • help - display commands available in sftp



No comments:

Post a Comment