This shows you the differences between two versions of the page.
| Next revision | Previous revision |
| lwc:linux:setup [2021/09/20 19:22] – created John Harrison | lwc:linux:setup [2025/08/01 17:58] (current) – John Harrison |
|---|
| * ''sudo apt install emacs-nox'' | * ''sudo apt install emacs-nox'' |
| * if root has correct public cert: | * if root has correct public cert: |
| * ''sudo cp /root/.ssh/authorized_keys ~/.ssh/. && chown $USER:$USER authorized_keys'' | * ''mkdir -p ~/.ssh && sudo cp /root/.ssh/authorized_keys ~/.ssh/. && sudo chown $USER:$USER ~/.ssh/authorized_keys'' |
| * otherwise: | * otherwise: |
| * ''mkdir .ssh && chdir .ssh && emacs -nw authorized_keys'' | * ''mkdir .ssh && chdir .ssh && emacs -nw authorized_keys'' |
| * add public rsa | * add public rsa |
| * logout, login to test that cert is working | * logout, login to test that cert is working |
| * ''sudo emacs -nw /etc/ssh/sshd.conf'' and change ''PasswordAuthentication'' from ''yes'' to ''no'' | * ''sudo emacs -nw /etc/ssh/sshd_config'' and change ''PasswordAuthentication'' from ''yes'' to ''no'' |
| * ''sudo systemctl restart sshd.service'' | * ''sudo systemctl restart sshd.service'' or for 24.04 ''sudo systemctl restart ssh.service'' |
| | * in home directory <code>git clone https://whyameye@bitbucket.org/whyameye/.emacs.d.git</code> |
| | ==== Optional ==== |
| | * consider [[lwc:linux:postfix|setting up a postfix smtp relay]] |