Add SSH Account for Public Key Authentication


Add SSH Account for Public Key Authentication

How to add a user for tero (me). You can securely let me log into your computer. Because public key authentication is used, knowing the public key does not allow anyone else to log into your computer.

This article is a work in progress.

© 2005 Tero Karvinen



Install and Enable SSH Server

Install and enable SSH server.



Add an Account

# adduser tero

Don’t add a password for tero, authentication will use ssh public key only.



Add Authorized SSH Public Key

# cd /home/tero/
# mkdir .ssh/
# wget http://myy.helia.fi/~karte/kurssit/teros-insecure-testkey.pub
# cat teros-insecure-testkey.pub >> .ssh/authorized_keys
# chmod -R og-rwx .ssh/
# chown -R tero:tero .ssh/

Well done, now tero should be able to log in.

For any real use, ask for my secure public key.


Posted in Old Site | Tagged , , , , , | Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Picks

  • Boxing Clock for AndroidOcton8 Diving T-ShirtsShaking Tower Panda Android GameLearn Chinese with Android
  • Student projects