Skip to content

21 comments

You can use:

ssh-copy-id william@gibson

From a PC with your public key on it instead of scp-ing your .pub file.

9 points
ruben ALL=(ALL) ALL

Is in the guide although the user is named william

5 points

Specified port is also incorrect.

Port 66677

3 points

This is the kind of thing I should remember - still it keep falling out of my head....

1 points

One tip: don't set the sshd port >1024, because then non-root (and malicious) applications could impersonate it.

3 points

So I set up an arch server for the second time and scribbled down what I needed to do. Maybe it is useful for someone else. Also - feedback appreciated.

2 points

Set the permissions for the authorized_key file to read only. See the arch wiki https://wiki.archlinux.org/index.php/SSH_keys#Securing_the_authorized_keys_file

Only disabling the execute permissions (600) could still allow someone to upload a new key from your computer when that computer would have your key loaded.

You might also want to bring some consistency in your documentation: e.g. you make the william user, but you give sudo to the ruben user, or you set the ssh port to 66677 in the linked page, but when you discuss the firewall rule for ssh you suddenly have 12345 as port.

As a bonus maybe you could add some more links to the Arch wiki for each part (ssh, ssh-keys, ...) that way it will also become very handy to double check.

4 points

Thanks - good suggestions. I sprinkled the post with links and tried to make it more consistent.

2 points
unknown author

Deleted before we saved it.

1 points

Use AIDE (Advanced intrusion detection environment) for file integrity. Configure iptables to whitelist traffic. Add email notification on user logins.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.