Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: SFTP and FTPS |
|---|---|
| Date: | Mon, 01 Jan 2007 18:36:55 +0100 |
Leroy Tennison <leroy_tennison@prodigy.net> writes:
The latter site states 'SFTP uses keys rather than certificates. [snip] SFTP clients must install keys on the server.' If sftp uses keys instead of certificates, what kind of keys are used and why can't they take advantage of chains of trust? If this statement isn't true please explain what's wrong with it.
In public key cryptography (which is the underlying principle in both cases), you must somehow get hold of the other party's public key in a secure manner - you must have the _correct_ public key, and not a key belonging to an impostor. In the ssh/sftp world this is largely left to the user - when you first connect to a server you are presented with the fingerprint of the server's public key and asked whether you want to accept it. In the PKI/ftps world, public keys are cryptographically signed by a certificate authority (CA), after the CA has verified the key holder's identity. The public key and CA signature together form a _certificate_. When you connect to a server and receive the server's certificate, your client can verify the CA signature and thus verify that the contained public key indeed belongs to the server you intended to connect to. For this to actually work, you need to a) somehow get hold of the _CA's_ public key in a secure manner, since you need it to verify the signature on the certificates, and b) be able to trust the CA.
The other question concerns "SFTP clients must install keys on the server". (Again, if this is true) What are they talking about?
If you want to use your own keypair to _authenticate_ yourself to the server, you must preinstall your public key on the server (I.e. put it in ~/.ssh/authorized_keys, in the OpenSSH case). Note that all this is about _authentication_, not transport encryption. -- Leif Nixon - Systems expert ------------------------------------------------------------ National Supercomputer Centre - Linkoping University ------------------------------------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: SFTP and FTPS, Patrick Morris |
|---|---|
| Next by Date: | Is it secure to run a ssh client as root?, Ondrej.Rajmon |
| Previous by Thread: | Re: SFTP and FTPS, Patrick Morris |
| Next by Thread: | Is it secure to run a ssh client as root?, Ondrej.Rajmon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |