I\'m hosting a wordpress site on ec2 and I\'m trying to update my theme through the admin screen. Its asking me for Hostname and ftp username and password. Is ec2-xxx.comput
You could simply use 127.0.0.1 as hostname and check FTP in Wordpress ftp settings. To resume what has been said:
user is the same you actually use to SSH/SFTP
password needs to be set/updated logging in via SSH and typing sudo passwd your-user-name
sudo passwd your-user-name