chown your wp-content directory and all its contents to your web server user (e.g. www-data)
Add this to your wp-config.php file:
Now you can update plugins and themes directly in the admin without being asked for FTP information.
This is useful if you’re on a server that doesn’t have FTP or SFTP.