简体   繁体   中英

Amazon EC2 and Cyberduck PEM file

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM