How to setup OpenSSH on Arch Linux
I thought it would be nice if I could connect to Arch Linux through my Imac. Well OpenSSH is the way to do this fairy easy.
Here’s what I did to make the magic happen:
1. Install OpenSSH
sudo pacman -S openssh
2. To let other people ssh to your machine you need to adjust /etc/hosts.allow, add the following:
# let everyone connect to you (this is what I use, it maybe a security risk when one is a lot on a public internet connection)
sshd: ALL
# OR you can restrict it to a certain ip
# sshd: 192.168.0.1
# OR restrict for an IP range
# sshd: 10.0.0.0/255.255.255.0
# OR restrict for an IP match
# sshd: 192.168.1.
3. Optional, add sshd to the “DAEMONS” section of your /etc/rc.conf: DAEMONS=(... ... sshd ... ...) 4.Dont forget to restart the daemon (as root):
# /etc/rc.d/sshd restart
That’s it! Now you should be possible to SSH into your Arch box through a client with the following commond (On OS X that is…)
ssh -l [username] [ip-adress]
Good Luck!!!
Source: Arch Linux ArchWiki pages: https://wiki.archlinux.org/index.php/SSH

thanks!