FTP Authentication with Public Key?

7

1

Is it possible to login via ftp to my dedicated server using a private/public key pair? i.e without using a password?

develroot

Posted 2011-09-09T18:07:36.463

Reputation: 719

Yes, using scp it is possible.

– Sathyajith Bhat – 2011-09-09T18:17:09.637

Answers

6

FTP can use SSL, which supports client authentication using X.509 certificates. However, while many FTP servers support FTPS, I don't know of any which support client certificates. (In addition, client authentication is complicated in SSL – in many cases, you would have to create and maintain your own certificate authority and stuff. Not many clients support this kind of authentication, either.)

Much easier is to use SFTP, the SSH file transfer protocol. It uses exactly the same keys as "normal" SSH would. On Windows, WinSCP and FileZilla support SFTP.

user1686

Posted 2011-09-09T18:07:36.463

Reputation: 283 655

thank you, I know about SFTP. the problem is that is way more slower than normal ftp.. – develroot – 2011-09-09T18:42:32.490

is there any command line based version of winscp or filezilla is availble ? – Mandar Pande – 2012-10-25T13:17:47.383

Yes, and it's called winscp. For SFTP, you can use psftp from PuTTY. – user1686 – 2012-10-25T15:33:50.713