Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. ssh -i sentiment.pem Todo@54.555.555.555
  2.  
  3. scp Todo@54.555.555.555:/home/ubuntu/sentimentfolder /Users/Toga/Desktop/sentimentlocal
  4.  
  5. WARNING: UNPROTECTED PRIVATE KEY FILE!
  6. Permissions 0644 for 'sentiment.pem' are too open.
  7. It is recommended that your private key files are NOT accessible by others.
  8. This private key will be ignored.
  9. bad permissions: ignore key: sentiment.pem
  10. Permission denied (publickey).
  11.  
  12. WARNING: UNPROTECTED PRIVATE KEY FILE!
  13. Permissions 0660 for 'sentiment.pem' are too open.
  14. It is recommended that your private key files are NOT accessible by others.
  15. This private key will be ignored.
  16. bad permissions: ignore key: sentiment.pem
  17. Permission denied (publickey).
  18.  
  19. scp Todo@54.555.555.555:/home/ubuntu/sentimentfolder /Users/Toga/Desktop/sentimentlocal
  20.  
  21. Permission denied (publickey).
  22.  
  23. # mkdir -p ~/.ssh
  24.  
  25. # mv ~/Downloads/ec2private.pem ~/.ssh
  26.  
  27. # chmod 400 ~/.ssh/ec2private.pem
  28.  
  29. # vim ~/.ssh/config
  30.  
  31. Host *amazonaws.com
  32. IdentityFile ~/.ssh/ec2private.pem
  33. User ec2-user
  34.  
  35. # ssh ec2-54-23-23-23-34.example.amazonaws.com
  36.  
  37. scp -r -i /Users/Toga/Desktop/rollup/Personal/Serial_Project_Starter/sentiment/sentiment.pem ubuntu@ec2-xx-xx-xx-xx.compute-x.amazonaws.com:~/sentiment /Users/Toga/Desktop/sentimentlocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement