There are some changes in the steps with regards to Jenkins UI. You will have to goto Manage Jenkins > Configure Global Security > TCP Port for Inbound Agent. Change the Fixed option to Random.
Once done, go to Manage Jenkins > Manage Nodes > New Node
Select Permanent Agent, and click on OK
Once done, configure the workDir, as /home/ubuntu/jenkins and then goto Launch Method
In Launch Method, select Launch Agent by connecting it to the master
Finally click on Save.
Finally again click on the newly created Slave. Inside the slave, goto download agent.jar and slave-agent.jnlp
Upload them to your slave on the home directory using Filezilla.
Finally, in the home directory of your slave, Execute the command shown in the jenkins dashboard, from where you downloaded the jar files.
You are now connected to the Jenkins Slave.
Points to remember: open the security group of the slave and the master for each other's IP address, with the All Traffic Condition.