Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am wanting to setup passwordless authentication to my remote linux server, I was going to generate an RSA public/private keypair. I was thinking about cipher strength like 2048 bit and 4096 bit. This got me to wondering, does the size of my cipher have any impact on my actual internet connection? Or the cipher bog the computer down only because this is where the decrypt and encrypt is taking place? Because when it comes to me exposing server to the public internet I tend to get paranoid that someone may take over the server or something. But I cannot use a VPN because my school block the port(s) use for VPN.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

Two things to keep in mind:

  1. The private key gets sent to the server to verify if it matches the public key.

    This computation has to be done by the server, not the client.

  2. Authentication is only performed when establishing a connection, not afterwards. The actual data encryption always uses symmetric ciphers, since they are much, much faster.

    4096 bit is much more secure than 2048 bit (although the latter should be sufficient), but there will be no tangible speed difference.

share|improve this answer

ssh key is only used for the authentication, not for encrypting the actual ssh traffic, and the key size effect on the traffic is very minimal. the subsequent traffic is encrypted by key exchanges between the client and server and is not affected by your public/private key exchange.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.