I am trying to set up SFTP access to my site and having problem.

Thankfully I found following link which was useful to set up Public Key Authentication on my GNU/Linux laptop.


Important Steps:

I had to generate SSH keys on my server and authorize the public key.

Then I had to download SSH private key to laptop.

Then I had to check whether .ssh directory already existed.

ls ~/.ssh

It did not exist, so I had to create it.