How to connect your website with SFTP over SSH
Before to start, check that your hosting company supports SFTP connexion
The ftp client I'm using in this tutorial is FlashFXP
Connect to your cPanel
1) Create a SSH key
![sftp_01.webp sftp_01.webp](https://xenforo.com/community/data/attachments/37/37013-74cb38cf84b89fd904ee8303c52d3cc6.jpg?hash=dMs4z4S4n9)
![sftp_02.webp sftp_02.webp](https://xenforo.com/community/data/attachments/37/37014-3610f505cb946733010f5be7399c781e.jpg?hash=NhD1BcuUZz)
2) Authorize the new key
![sftp_03.webp sftp_03.webp](https://xenforo.com/community/data/attachments/37/37015-a2cdcb2ccfc33f696a897f82d2a3f660.jpg?hash=os3LLM_DP2)
3) Download the new key
![sftp_04.webp sftp_04.webp](https://xenforo.com/community/data/attachments/37/37016-8110862832a07bf97f339e069521bb43.jpg?hash=gRCGKDKge_)
![sftp_05.webp sftp_05.webp](https://xenforo.com/community/data/attachments/37/37017-d49b1bf299e4e4e14a361021d7d63d4f.jpg?hash=1Jsb8pnk5O)
4) Import it to your ftp client
![sftp_06.webp sftp_06.webp](https://xenforo.com/community/data/attachments/37/37018-7efbedf61a3e372e6d41d873aa68a538.jpg?hash=fvvt9ho-Ny)
![sftp_07.webp sftp_07.webp](https://xenforo.com/community/data/attachments/37/37019-908905f2637f4e122e74d52b1ed2ba18.jpg?hash=kIkF8mN_Th)
![sftp_08.webp sftp_08.webp](https://xenforo.com/community/data/attachments/37/37020-2f13a4dc1cf448c1471a72c0098af718.jpg?hash=LxOk3Bz0SM)
5) Manager your website connexion
![sftp_09.webp sftp_09.webp](https://xenforo.com/community/data/attachments/37/37021-d64f2b0946015f9b039abd3739ef446c.jpg?hash=1k8rCUYBX5)
In this step, the important points are to use your cPanel username as connexion username and to use the correct port for sftp connexion (for example: 1291)
6) End
You should now be able to connect to your website now without typing any password but still being secured
Before to start, check that your hosting company supports SFTP connexion
The ftp client I'm using in this tutorial is FlashFXP
Connect to your cPanel
1) Create a SSH key
![sftp_01.webp sftp_01.webp](https://xenforo.com/community/data/attachments/37/37013-74cb38cf84b89fd904ee8303c52d3cc6.jpg?hash=dMs4z4S4n9)
![sftp_02.webp sftp_02.webp](https://xenforo.com/community/data/attachments/37/37014-3610f505cb946733010f5be7399c781e.jpg?hash=NhD1BcuUZz)
2) Authorize the new key
![sftp_03.webp sftp_03.webp](https://xenforo.com/community/data/attachments/37/37015-a2cdcb2ccfc33f696a897f82d2a3f660.jpg?hash=os3LLM_DP2)
3) Download the new key
![sftp_04.webp sftp_04.webp](https://xenforo.com/community/data/attachments/37/37016-8110862832a07bf97f339e069521bb43.jpg?hash=gRCGKDKge_)
![sftp_05.webp sftp_05.webp](https://xenforo.com/community/data/attachments/37/37017-d49b1bf299e4e4e14a361021d7d63d4f.jpg?hash=1Jsb8pnk5O)
4) Import it to your ftp client
![sftp_06.webp sftp_06.webp](https://xenforo.com/community/data/attachments/37/37018-7efbedf61a3e372e6d41d873aa68a538.jpg?hash=fvvt9ho-Ny)
![sftp_07.webp sftp_07.webp](https://xenforo.com/community/data/attachments/37/37019-908905f2637f4e122e74d52b1ed2ba18.jpg?hash=kIkF8mN_Th)
![sftp_08.webp sftp_08.webp](https://xenforo.com/community/data/attachments/37/37020-2f13a4dc1cf448c1471a72c0098af718.jpg?hash=LxOk3Bz0SM)
5) Manager your website connexion
![sftp_09.webp sftp_09.webp](https://xenforo.com/community/data/attachments/37/37021-d64f2b0946015f9b039abd3739ef446c.jpg?hash=1k8rCUYBX5)
In this step, the important points are to use your cPanel username as connexion username and to use the correct port for sftp connexion (for example: 1291)
6) End
You should now be able to connect to your website now without typing any password but still being secured