Enable SSH on Arch Linux

21 January 2017-A quick tutorial to enable SSH Server on Arch Linux. In case you want to connect to remote computer via SSH, you will need to install OpenSSH first. To quickly install OpenSSH on Arch Linux, use the following command
sudo pacman -S openssh

[root@arch-pc ~]# pacman -S openssh   resolving dependencies...looking for conflicting packages...
Packages (3) dnssec-anchors-20150403-1  ldns-1.7.0-2  openssh-7.4p1-2
Total Download Size:   1.13 MiBTotal Installed Size:  6.43 MiB
:: Proceed with installation? [Y/n] y


Done. Now check if ssh running on Arch Linux. Make sure the status is active
systemctl status ssh
root@openmediavault:~# systemctl status ssh��� ssh.service - OpenBSD Secure Shell server   Loaded: loaded (/lib/systemd/system/ssh.service; enabled)   Active: active (running) since Fri 2017-01-20 14:13:00 WIB; 1 day 23h ago Main PID: 611 (sshd)   CGroup: /system.slice/ssh.service           ������  611 /usr/sbin/sshd -D           ������13307 sshd: root@pts/0           ������13606 -bash           ������13946 systemctl status ssh
Jan 22 11:56:40 openmediavault sshd[11381]: Did not receive identification string from 10.34.0.221Jan 22 12:11:58 openmediavault sshd[11612]: Did not receive identification string from 10.34.0.221Jan 22 12:27:18 openmediavault sshd[11831]: Did not receive identification string from 10.34.0.221Jan 22 12:42:46 openmediavault sshd[12065]: Did not receive identification string from 10.34.0.221Jan 22 12:58:05 openmediavault sshd[12258]: Did not receive identification string from 10.34.0.221Jan 22 13:13:30 openmediavault sshd[12499]: Did not receive identification string from 10.34.0.221Jan 22 13:28:55 openmediavault sshd[12690]: Did not receive identification string from 10.34.0.221Jan 22 13:44:15 openmediavault sshd[13555]: Did not receive identification string from 10.34.0.221Jan 22 13:44:29 openmediavault sshd[13307]: Accepted password for root from 10.34.0.235 port 4...sh2Jan 22 13:44:29 openmediavault sshd[13307]: pam_unix(sshd:session): session opened for user ro...=0)Hint: Some lines were ellipsized, use -l to show in full.
Run SSH
systemctl start ssh
Stop
systemctl stop ssh
Enable ssh during boot
systemctl enable ssh


EmoticonEmoticon