1

I've set up an EC2 instance and can get in via ssh through terminal (I'm on a Mac).

I want to be able to get in via cyberduck and sftp, and can with the ec2-user@mydomain.com login but then I don't have sufficient privileges to actually do anything.

When I try to login via cyberduck with root@mydomain.com it won't let me, says

Illegal sftp packet len: 1349281121.

I created a new user but don't know how to get a .pem file uploaded for them.

T Percival
  • 8,526
  • 3
  • 43
  • 43
BenUNC
  • 155
  • 1
  • 1
  • 8

2 Answers2

1

You are better off giving access to the user or group for the file they need to access than to allow root login via SSH.

You can do this with chmod and chown tools via terminal.

datasage
  • 19,153
  • 2
  • 48
  • 54
0

You can only login over SFTP as the ec2-user user, so you'll need to SSH into the machine first, change the permissions, then you can upload files.

Alternatively, you can use scp on the command line.

Ryan Parman
  • 6,855
  • 1
  • 29
  • 43
  • Sorry for the need for clarification, but what should I change the permissions to? – BenUNC Sep 20 '13 at 12:12
  • is there any danger in changing them to 777 for the entire folder? It worked, but I don't want to open a huge security vulnerability just because it worked... – BenUNC Sep 20 '13 at 14:14
  • You can switch to `0777` while uploading, then change it back when you're done. You generally want the directory itself to be `0755` and the files inside to be `0644`. – Ryan Parman Sep 21 '13 at 22:36