If Fred's public key starts "BEGIN SSH2 PUBLIC KEY" then turn it into the one-line form first.$ sudo adduser --gecos 'Fred Smith' --disabled-password fred $ cd /home/fred $ sudo mkdir .ssh $ sudo cp ~/fred.public.key .ssh/authorized_keys $ sudo chmod 0700 .ssh $ sudo chown -R fred.fred .ssh
Not in fact any relation to the famous large Greek meal of the same name.
Wednesday, 13 April 2016
How to create an SSH-only shell account in Ubuntu
Because I keep forgetting.
Subscribe to:
Posts (Atom)
Labels
About Me
- Peter Hartley
- Cambridge, United Kingdom
- Waits for audience applause ... not a sossinge.