Topic "Using WinSCP to upload to an ec2 server"

Author Message
Sapper

Guest


Hey all -

I am trying to upload my site using WinSCP to an Apache server I created on the Amazon EC2 VMI. The problem is, Amazon forces login with ec2-user rather than root, so I cannot gain read/write access in my public_html file. Is there a way to gain root access in WinSCP or change permissions for ec2?

Thanks!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please read FAQ:
http://winscp.net/eng/docs/faq_su
_________________
Martin Prikryl
mcbsys

Guest


EC2-specific instructions worked for me today:

http://www.thatsgeeky.com/2011/10/connect-to-amazons-linux-via-winscp-as-root/

The main trick is to use the special "visudo" program to edit /etc/sudoers. Comment out the "Defaults requiretty" line.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Thanks for sharing this.
Turning off option requiretty is covered in the FAQ too.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
For a general guide for connecting to Amazon EC2 see:
http://winscp.net/eng/docs/guide_amazon_ec2
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License