Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have just set up ubuntu server. I want it to act as my git repository for my work. I have installed openssh and have been able to connect by just providing the account password. i.e

name@ipaddress

which works fine. I have read on some sites that people set up public and private keys in order to secure communication. Not knowing much about ssh, I would like to know: is it necessary for me to do this in order to secure the connection?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

Is it necessary? No.

Is it a good idea? Probably

Having the key instead of a password means that you're no longer susceptible to brute-force attacks for SSH logins. Requiring both is two-factor auth which is even better.

share|improve this answer
    
Thanks for the response. I have just created and added my laptops public key to the server. Do I need to add the servers puclic key to my laptop to secure both ways? –  geminiCoder Nov 1 '12 at 19:29
    
@geminiCoder Not unless you plan on SSHing from your server to your laptop. –  MDMarra Nov 1 '12 at 19:30
add comment

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.