Here you will be using sftp in filezilla to connect using a key. This guide assumes that key based authentication is already enabled in the server(confirm with your server provider if you are not an admin) and you have generated key pair in your local machine. If not, you can follow my guide here to generate a key pair.
Now you will have your private key file in your machine and the public key in the server to which you will be connecting. So the next job is to configure filezilla to use private key to connect to server. You can follow below shown steps for that:
1. open Filezilla and go to Edit >> Settings.
2. Click on the option "SFTP" in the left window pane. Click on "Add Key" button in the right pane and then select the private key in your machine(if it is inside .ssh folder, you can use the "search" option in the new window and enter .ssh in the field, after selecting the home directory). The default location will be .ssh/id_rsa as mentioned in my other guide specified in the link above.
3. Once the key is added, simply close it and take "File" >> "Site manager" in Filezilla and then click "New site".
4. Enter server ip/hostname in "Host" field, ssh port in "port" field, Protocol as "SFTP-SSH File Transfer Protocol", Logon type as "Normal", username in "User" field and leave the password field empty.
5. Now simply click "connect" to get connected without needing to enter the password.
Feel free to post if you have any doubts.






0 comments:
Post a Comment